limit

Restricts the number of records in a response.

Applies to: latest, timeseries, batchrun, stream, archive

Value: a positive integer. Use 10,000 or less.

limit is combined with after to read a result in pages. It is optional, but strongly recommended for any request that can return many records.

ServiceDefaultMaximum
latest10,000The maximum of your account, by default 10,000.
timeseries10,000The maximum of your account, by default 10,000.
streamNo limit (a whole message is returned). With aggregate: 1000.10,000
batchrun100,00010,000 is recommended.
archiveNo limit10,000 is recommended.

A value above the maximum is refused with the error INVALID_PARAMETER_VALUE. In the HTML view the limit is at most 1000.

On the stream service the limit counts records. When a message holds more records than the limit, it is delivered in several parts. See stream.