Using POST Method for Requests

We provide the option for API users to make POST requests for timeseries, zonal_stats, and probabilities endpoints. This allows users to pass more polygon vertices to the API than is possible with a GET request, which has a size limit. To learn more about HTTP Methods, see this w3schools article.

To utilize this in a python context, see the example below. In this snippet, we did two things differently than with GET. First, we updated requests.get(...) to requests.post(...). Second, we updated params=params1 to json=params1.

Still need help? Contact Us Contact Us