Construct and execute an API call using correct syntax and formatting