Clay Icon

Best Practices for Optimizing API Requests and Pagination

·
·

Hi everybody how are you? I would be grateful if you could help me with some questions, I will explain my case. I'm trying to extract information from the clay API, and it works perfect. I define the limit as 200 (since I understand that it is the maximum number of records per page that I should call) and I do a paging process on each endpoint of interest. I extract information from accounting entries, tax documents, chart of accounts, etc. The problem is that by doing this automatically, and having this extraction run automatically, it tells me that I exceed the number of requests to the API. Therefore, ask; What is the maximum number of requests? Is there any way to improve that pagination to reduce my requests?

  • Avatar of Camilo A.
    Camilo A.
    ·
    ·

    I think it is not applicable to indicate a table

  • Avatar of Clay Team
    Clay Team
    APP
    ·
    ·

    Hey Camilo, thanks for reaching out! taking a look at this now

  • Avatar of Clay Team
    Clay Team
    APP
    ·
    ·

    Could you share the link to your table or the enrichment that you're running? the limits depend on that service and the account tier you have with the provider

  • Avatar of Camilo A.
    Camilo A.
    ·
    ·

    I don't know if I understand the question correctly, but I can provide you with the following information. I am extracting the information from different URLs, with my access token. The call that brings the most data is the following URL: https://api.clay.cl/v1/contabilidad/libro_diario/

  • Avatar of Clay Team
    Clay Team
    APP
    ·
    ·

    Yep, not sure what that link you shared is either. Any chance that's from ­clay.earth and not us (­clay.com)?Do you have an account with us?