turned api url into an obj