API returning just 20 records

How to return more then 20 records in the api?
Example : https://mlintercambios.erpnext.com/api/resource/Student
In this case is returning just 20 records.
I want all the records.

https://frappe.github.io/frappe/user/en/guides/integration/rest_api.html

See Pagination

Unable to open this page did it move to somewhere else? I need the same solution to return more that 20 records

https://frappe.io/docs/user/en/guides/integration/rest_api

also same docs online Help ‘REST API’

Take a look at this https://frappe.io/docs/user/en/guides/integration/rest_api .
You need to pass parameter limit_page_length (e.x. limit_page_length=999 where 999 must be an int) . The default is 20.

2 Likes

Dear @aldoblack… please help
I created a web form under my custom app and I need to change the limit page from 20 to another big number.
please advise how

You can pass as parameter limit_page_length=999 or whatever number you want.

P.S. Please show the code so I can help with the code.

Set the page size to the number of records you have in the ERP.

listOption.PageSize = Convert.ToInt32(ItemRule[0].Value);

This work for me i pull 11k record at once vi the API.

This will return all the records irrespective of the number

&limit_page_length=None

For example

https://YourIPhere/api/resource/Task?fields=["*"]&limit_page_length=None

2 Likes