Removed trailing whitespace
Indentation
Using global API_URL const
Staging api calls