toggl / toggl_api_docs

Documentation for the Toggl API
1.39k stars 235 forks source link

Is there a limit of records in 1 request? #416

Closed DimaPes closed 2 years ago

DimaPes commented 3 years ago

Hello, I wonder whether there's a limit of records in 1 request. If there is how can I paginate? I saw this comment here but I wanted to get a confirmation just to be sure image

chrisaligent commented 3 years ago

As far as I know there isn't any global record limit on the v8 API, only the v2 Reports API.

However, Time Entries specifically do have a limit of 1000: https://github.com/toggl/toggl_api_docs/blob/master/chapters/time_entries.md#get-time-entries-started-in-a-specific-time-range

So if you're trying to use the API to load time entries, make sure you process using start/end dates, or (as the documentation recommends) use the Detailed Report API instead.

For our application/integration we're using a combination of Reports V2, plus the V8 API, and the undocumented V9 API (which has some unstable but very important features that the V8 API doesn't include).

joeriharleman commented 2 years ago

Hello @DimaPes!

Thank you for submitting your issue. Unfortunately this repository is largely unmaintained, which means issues remain unseen and do not get dealt with in a respectable manner. We're sorry for not getting back to you sooner.

This issue has been around for a long time so we will close it for now, but please let our excellent 24/5 support staff know you if you have any unresolved issues with our platform, documentation or APIs. They're also really good at noting down feature requests for our development teams. Please find them on our support page by clicking the little icon in the bottom right corner of the screen.

Kind regards, Joeri from Toggl