Move some magic numbers to constants. Prepares URL for API calls