I need help fetching data.
I’m new to airtable and also don’t have much experience in scripting but I do have some code experience.
I’m trying to fetch Zipcodes from https://www.zipcodeapi.com/API
I can use one of the two:
This is the code I have that use the GET method (yes I know):
let response = await fetch(‘https://www.zipcodeapi.com/rest/js-APIKEY/radius.json/59718/30/mile’)
ReferenceError: radius is not defined
at main on line 3
I did tried to add method, headers… all kind of thigs but with no luck. I know I’m doing it wrong.
Any help please?
Thank you very much
The api key is missing from your code :slightly_smiling_face:
It work when I use it as http get and not as JS code (from integromat and from adalo and from postman). But the zip code api company say it is possible. So I think its a problem with my code.
As I understand in Airtable this is the only way to do that?