not using localhost for an api call