use php variable for api url