-
SIILAsked on April 23, 2024 at 1:38 PM
I am trying to get all the submissions of a form through the following api :-
https://api.jotform.com/form/${formId}/submissions?apiKey=${api_key}
The form in total has 500+ submissions but I am only getting 20 responses through the api call and the following is attached at the end of the response :-
"resultSet": { "offset": 0, "limit": 20, "count": 20 },"limit-left": 49976.
Firstly how do I remove the limit ? and what does it mean by limit-left?
-
Kyle JotForm SupportReplied on April 23, 2024 at 2:37 PM
Hi SIIL,
Thanks for reaching out to Jotform Support. The Jotform API, by default, returns 20 submissions at a time for each API call. This is to prevent the server from being overwhelmed by a large number of requests at once. The `limit` parameter in the `resultSet` object indicates this default limit.
To get more submissions in a single API call, you can add a `limit` parameter to your API request URL. For example, if you want to get 100 submissions at once, you can modify your API call like this:
https://api.jotform.com/form/${formId}/submissions?apiKey=${api_key}&limit=100
Replace `${formId}` and `${api_key}` with your actual form ID and API key. Please note that there might be a maximum limit on the number of submissions you can fetch in a single API call due to server constraints.
The `limit-left` field indicates the number of API calls left that you can make within a certain time period (usually a day). Each API call you make decreases this number. When `limit-left` reaches 0, you will have to wait until it resets to make more API calls.
Give it a try, and let us know how it goes.
-
SIILReplied on April 28, 2024 at 8:14 AM
Thanks for the clarity but it is still unclear to me on what is the exact limit of submissions that I can get from the api. Is there a daily limit , monthly limit or account limit. I request you to give me some more information
-
Sidharth JotForm SupportReplied on April 28, 2024 at 9:57 AM
Hi SIIL,
Thanks for getting back to us. The default limit for the number of submissions in an API call is 20, but the maximum limit is 1000. You can add limit=1000 in the API endpoint URL to increase the limit.
https://api.jotform.com/form/${formId}/submissions?apiKey=${api_key}&limit=1000
It's important to note that the submission limit is per API call and not a daily limit. However, there is a daily limit on the number of API calls allowed per day, which varies depending on the plan you have. Here are the daily API call limits of each plan:
Starter Plan — 1,000 requests per day.
Bronze Plan — 10,000 requests per day.
Silver Plan — 50,000 requests per day.
Gold Plan — 100,000 requests per day.
We also have a guide about Daily API Call Limits that you can check out.
Reach out again if you have any other questions.