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
Were you able to find an answer to your question? I am going to go ahead and mark this question as answered because there hasn't been any more activity in a while so I assume that you have the information that you need. If you still have a question about this or if you have information that you would like to share with the community, by all means, please do come back and leave a comment. Also, if this question has been answered by one of the previous replies, please feel free to mark that answer as correct.
Retrieving data ...