Contents
What is the max length of API URL?
This limit applies to both POST request and GET request URLs. If you are using the GET method, you are limited to a maximum of 2,048 characters, minus the number of characters in the actual path.
How long can a rest URL be?
Although the URI standard does not specify a maximum size of the URL, most clients enforce an arbitrary limit of 2000 characters. Sending data that is difficult to express in a hierarchical manner, and especially data that is larger than this 2000 character limit, should be transmitted in the body of the request.
How many requests can REST API handle?
Accounts are limited to a maximum of 10,000,000 products exported per day and a maximum of 10 requests per minute. Additional export requests will be rejected with HTTP status 429 Too Many Requests.
Is there a limit to the GET request URL length?
Default GET request URL length is 260. It can be modified in on-premise but in online it is not possible.Follow this link to modify this default value in On-Premise. If your GET request URL length exceeds for getting items from a list, then you can solve it using CAML query and POST request. Example:
I’m making these requests from a console application against Office 365/SharePoint Online. The url length is is 305 in this test case.
How can I deal with HTTP GET query string length?
Based on your description, IMHO you should use a POST. POST is for putting data on the server and, in some cases, obtain an answer. In your case, you do a search (send a query to the server) and get the result of that search (retrieve the query result).
How to set a limit on the number of items to be retrieved?
For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value: offset=0, offset=5, and offset=10. Note that the first item in the collection is retrieved by setting a zero offset .