Преминете към основното съдържание

How to fetch the next page when Geotab API returns a record limit?

AKAPT-2014
Оригинален плакат

Hi everyone,

 

I'm working on extracting two years of odometer/StatusData for multiple pieces of equipment.

To avoid overloading the API, I'm already querying the data month by month, using a standard

Get.

Here is an example of my request:

{ "method": "Get", "params": { "typeName": "StatusData", "search": { "fromDate": "2026-01-01 00:00:00", "toDate": "2026-01-31 23:59:59", "deviceSearch": { "id": "b31" } }, "credentials": { "database": "$(grant_type_geotab)", "sessionId": "@Value(access_token)", "userName": "$(user_id_geotab)" } } }

The problem is that the Get method is limited to 50,000 records, and some months exceed that threshold.

What is the correct way to fetch the next page of results when this limit is reached?

I'm calling this endpoint: https://my.geotab.com/apiv1

If anyone has best practices for paging large volumes of StatusData, I'd really appreciate the guidance.

Thanks!

 

Присъединете се към разговора

You need to be logged in to reply to this post and participate in the Geotab Community discussions.

Най-популярни отговори

Hey @AKAPT-2014​,

 

You can paginate results. Look at the pagination guide here: https://developers.geotab.com/myGeotab/guides/concepts/index.html#pagination

 

And look at the pagination information on the StatusData object here: https://developers.geotab.com/myGeotab/apiReference/objects/StatusData/index.html

 

Let me know if you have any trouble getting that working and I can help you.

 

Thanks,

Tucker

1 Отговор

Hey @AKAPT-2014​,

 

You can paginate results. Look at the pagination guide here: https://developers.geotab.com/myGeotab/guides/concepts/index.html#pagination

 

And look at the pagination information on the StatusData object here: https://developers.geotab.com/myGeotab/apiReference/objects/StatusData/index.html

 

Let me know if you have any trouble getting that working and I can help you.

 

Thanks,

Tucker

Все още имате въпроси?