Check API name and set correct url