Limit records per page when fetching a list of leads/contacts

Hi,
We try to fetch a list of leads/contacts (included all records) with API requests follow the doc at Freshsales | Refreshingly new CRM & Deal Management Software and Freshsales | Refreshingly new CRM & Deal Management Software

and the limit record per page is mentioned = 25

To avoid the reaching limit for the API requests, so could we remove or increase the limit to get all of contacts/leads in e minimum number of responses?

Eg: We have 3000 contacts.
When we try to get all of the records, we reach API request limits and can not do other necessary requests.

Thanks,

Hi, @khucngoc12

You can fetch 100 (maximum value) per page, like this:

https://domain.freshsales.io/api/contacts/view/3?per_page=100&page=1
https://domain.freshsales.io/api/contacts/view/3?per_page=100&page=2

…and so on

2 Likes

Thank Samuel. It works. :smiling_face_with_three_hearts:

1 Like