Paginating through lists Follow

Comments

4 comments

  • Avatar
    Arlene Salgado

    Hi, Charles
    How can I export less than 1000 records with the incremental ticket API??
    I've tried with something like this:
    https://example.zendesk.com/api/v2/exports/tickets.json?start_time=1405469030&per_page=100
    but doesn't works.

  • Avatar
    Dwight Bussman

    Hi Arlene,


    There's a few things going on here:



    1. I don't believe the incremental exports endpoint accepts the per_page parameter.



    2. It looks like you're trying to use /api/v2/exports/tickets, which is a different endpoint from the api/v2/incremental/tickets.json used in this article. 

  • Avatar
    Kashish Dup

    According to article, the maximum record I can get during ticket's incremental export is 1000. What about other incremental export objects?

  • Avatar
    Dwight Bussman

    Hi Kashish,

    Per the incremental exports pagination documentation, all incremental exports pages should return up to 1000 objects.

    "When paginating through an incremental export result set, use the count property to determine when to stop. These endpoints return up to 1000 items per page. If count is less than 1000, then stop paginating. Otherwise, use the next_page URL to get the next page of results."

Please sign in to leave a comment.

Powered by Zendesk