The LIMIT parameter controls the total number of rows returned, and it defaults to 1,000 records per request. It can be used either alone, or with OFFSET in order to page through a dataset.
For example, if you wanted to only return the top ten strongest earthquakes, you could use LIMIT in conjunction with $order:
The TryIt macro has been disabled until future notice while we upgrade this site to SODA3.
When combined with an aggregation via $group, LIMIT is applied after the aggregation. For example, if the aggregation reduces a result set from 10,000 records to 100, the LIMIT is applied to the result set of 100, rather than the original records.
Note: Depending on the version of the API endpoint, it will have different maximums for LIMIT:
$limit of 50,000Details are available in the API documentation for each API. Make sure you pick a limit appropriate to the speed of your connection, as HTTP calls will time out and payloads for high LIMITs can be very large.