API Responses

Each request to the API, if successful, returns a list of endpoint appropriate response objects. Even if there is only one response result, it will be returned in a list.

For example, the Observations request below returns a single response result. The response is returned as a list with one ObservationsResponse object in it.


    obs_list = aeris.observations(location=loc)

    for obs in obs_list:
        # get the AerisPlace responses object
        place = obs.place

 

That's it for the basics! If you're ready to dive in, you can check out some examples using the topics discussed above on the Examples page.

For more advanced topics, continue on to learn about optiziming your requests, custom endpoints or batch requests.