-
bigbadazAsked on May 17, 2025 at 8:40 PM
I would like to access the Zippopotam.us API in the Actions feature. Ideally it should be as simple as the following:
- Add URL: https://api.zippopotam.us/us/{{ user.zipCode }} to Send API Request.
I am not getting a successful return when testing this so I consulted with your chatbot was informed of the following:
Use Jotform to trigger an event when a form is submitted.In Zapier, set up a Zap where the trigger is the new submission from your Jotform.
Add an Action step in Zapier to call the Zippopotam.us API to fetch location data based on postal codes or other inputs from the form.
Use the API response to perform further actions, such as updating a database, sending emails, or populating other apps.
This would potentially negatively impact my chatbot, so I wanted to ask...is there no way to use a service like Zippopotam.us without a third party?
-
bigbadazReplied on May 17, 2025 at 8:41 PM
Just to be clear hard code testing https://api.zippopotam.us/us/90210, for example, in the Send API request works perfectly. The problem maybe in the syntax {{ user.zipCode }}??
-
Lorenz JotForm SupportReplied on May 18, 2025 at 12:32 AM
Hi Jay,
Thanks for reaching out to Jotform Support. To clarify, are you trying to make an API call using the API request action, in the AI Agent builder? When testing the API, are you getting some sort of error message? If so, can you share with us a screenshot of the API response you get when testing the endpoint? Let me show you how to post a screenshot to our Help Center:
1. On the Help Center page, scroll down to the Your Answer section and click on the Image icon.
2. Drag and drop your image into the Upload box, or click on it and select your file.
3. Then, click on the Add button in the bottom-right corner of the window.
4. To resize it, click on your screenshot and then click on one of the boxes in the corners, and drag it inward.
5. Once you're finished, click on the Post Answer button at the bottom right of the Your Answer section.
Now, I just noticed in your API https://api.zippopotam.us/us/{{ user.zipCode }}, that you're using user.zipCode property, to access a particular user's zip code. That could be the reason why it doesn't return any successful response, since the property doesn't have a definite value to fetch the data from, which is why it works when you hard coded it. Now, if you're expecting the AI agent to use the value you sent with them through chat, where it should automatically placed it in the API endpoint, then trigger it, that's not possible, unfortunately.
You can do what the AI Support suggested, where you can use a form to get a specific input from the form filler, then use Zapier to call the Zippopotam.us API, to fetch location data based on postal codes or other inputs from the form.
Let us know if you have any other questions.
-
bigbadazReplied on June 1, 2025 at 8:01 PM
Thank you for this response as it answer my question; it won't work due to system limitations. That is good enough for me.
Your Reply
Something Went Wrong
An error occurred while generating the AI response. Please try again!