-
PetjeafGevraagd op 13 augustus 2021 om 03:51
Beste Jotform support,
Ik had al een mail gestuurd naar de api@jotform.com maar heb nog geen reactie terug, dus ik dacht ik probeer het hier maar even.
Op het moment ben ik via Postman submissions aan het ophalen maar als ik het totaal overschrijd blijft de API resultaten terugsturen waardoor ik nooit het einde van de lijst bereik.
Dit probleem doet zich overigens niet voor in de API testomgeving https://api.jotform.com/docs/.
Gezien ik gebruik maak van dezelfde endpoints weet ik niet zo goed wat ik verder kan doen om dit op te lossen vandaar dit bericht.
Hopelijk hoor ik snel van jullie terug.
Met vriendelijke groet
-
Roeland_MGeantwoord op 13 augustus 2021 om 07:56
Hoi Petjeaf,
Bedankt voor uw bericht.
Wat een lastige vraag, want als ik er zo naar kijk, zou alles in orde moeten zijn!
Helaas kan het soms even duren voordat het API team antwoord geeft, omdat die vaak met complexe problemen aan de slag zijn.
Ik heb een aantal dingen ge-reset, kunt u uw browser verversen, en het dan nogmaals proberen.
Laat het mij vooral weten hoe het gaat, zodat wij verdere stappen kunnen ondernemen als dat nodig blijkt te zijn.
Met vriendelijke groeten!
-
PetjeafGeantwoord op 13 augustus 2021 om 08:21
Bedankt voor de reactie.
Ik zie ook geen goede reden waarom dit fout gaat, zeker gezien het in jullie eigen omgeving niet een probleem lijkt te zijn. Ik implementeer de oplossing ook in een ander programma en daar heb ik hetzelfde probleem.
Net nog een keer geprobeerd de API aan te roepen met de offset=1000
(GET: https://eu-api.jotform.com/form/50901582629357/submissions?limit=200&offset=1000)
Helaas krijg ik dezelfde resultaten als eerst.
Is er een indicatie van hoe lang het normaal duurt voor er reactie komt van het API team?
Vriendelijke groet
-
Yau_CGeantwoord op 13 augustus 2021 om 10:51
Hi,
I can escalate this for you to our backend team.
Our Dutch speaking colleague will be available after the weekend.
-
Yau_CGeantwoord op 13 augustus 2021 om 20:15
Hi, to enable our backend team to assist you, please elaborate on,
"...if I exceed the total the API keeps returning results"
Thank you
-
PetjeafGeantwoord op 16 augustus 2021 om 03:33
Thanks for responding.
with "exceeding the total" i mean the total count shown on the form.
in the image shown i requested the relevant form i'm trying to get the submissions from and it shows a total count of 1280 with 1231 new submissions.
But in the earlier API call I showed you (reposted above) can see the offset is at 1000 and the limit is set at 200, meaning the count should be at 0 because there's no 200 000 submissions on the form.
I hope this clears up any confusion.
Kind regards
-
Niko_NGeantwoord op 16 augustus 2021 om 07:38
Greetings,
/form/:id/submissions endpoint has 4 optional arguments .
The offset information shown in the red box can be used for pagination.
For instance, if you want to get the 1000th entry and next 100 entries information,
You should API links as shown below:
https://api.jotform.com/form/[FORM]/submissions?apikey=[KEY]&orderby=id&offset=1000&limit=100
In summary, offset argument is used to select the initial index of the data, limit argument indicates how many data are selected after the selected index.
By increasing the offset argument periodically, you can get all the submission information.
So, your form has 1280 submissions. With that API call, you have requested to get the data of 200 entries, starting from the 1000th entry. So, it found such 200 entries, since having at least 1200 submissions is enough for that.
Please do not hesitate to contact us again, if you need any further assistance again.
-
PetjeafGeantwoord op 16 augustus 2021 om 10:20
Aah i see where i went wrong.
Thank you very much for the feedback, this solves my issue (misinterpreting the offset) completely.
Kind regards