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?