api2

api is haven issues on building url wrote a custom function