Tony - implement rout function for api parse