fixing up api url