I want to take only 1000 of data from canvas API. How can I do that?
Ruvini, I'm not sure if I understand your question, but the Canvas API isn't my area of expertise so I'm going to share this with the Canvas Developers group in the Community. They are the ones who work with the API and should be able to help.
There is a per_page query parameter.
So if you set this to, say 100, then 10 calls will give you your 1,000 records.
However, there is an undefined limit, so just because you ask for 100 records you may get less. You just need to follow the next page links until you get to your 1,000, or less if there are not 1,000 records for your query.
See: Pagination - Canvas LMS REST API Documentation
Retrieving data ...