본문으로 바로가기

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

여전히 궁금한 점이 있으신가요?