Skip to content
Making multiple API...
 
Notifications
Clear all

Making multiple API calls

8 Posts
2 Users
0 Reactions
6 Views
mdb213
(@mdb213)
Posts: 10
Active Member
Topic starter
 

Hi, I’m stuck and hope someone can help

I’ve got a single API call, an iterator and updating Airtable with the results (multiple records from the call) … all works

I need to make a second API call after the first, for each record returned make another call to get additional data for each record.

I can’t figure out where I may that second call and if I need an additional iterator

Any help appreciated, thanks
Mike

 
Posted : 02/07/2023 11:13 am
Runcorn
(@runcorn)
Posts: 16
Active Member
 

You can simply utilize the HTTP Module following the Iterator to retrieve the additional details needed for Airtable.

Could you share the current configuration of your scenario?

 
Posted : 02/07/2023 11:18 am
mdb213
(@mdb213)
Posts: 10
Active Member
Topic starter
 

Hi Runcorn

Thanks for taking the time to reply.

Currently:

I want to make the second call for each item in the Iterator.

Moved it on a little bit by putting the second HTTPS and using the ID from the iterator as a Query String parameter and getting “No filter selected. Expected one of: chart, myRating, id”.

Thanks,
Mike

 
Posted : 02/07/2023 11:50 am
Runcorn
(@runcorn)
Posts: 16
Active Member
 

Yes, that looks correct.

You can now map the results from the HTTP module to your Airtable records. Are you encountering any difficulties with this process?

 
Posted : 02/07/2023 12:09 pm
Runcorn
(@runcorn)
Posts: 16
Active Member
 

Apologies, I misunderstood. Could you please share the API documentation for the API you're integrating with? Based on the error message, the API for GET requests appears to require __chart, myRating, and id.

 
Posted : 02/07/2023 12:21 pm
mdb213
(@mdb213)
Posts: 10
Active Member
Topic starter
 

It’s the YouTube Data API. Essentially, I want to create a table to help prioritize which videos I should watch...

My second HTTP request is:

I'm passing the VideoID from the iterator as a query parameter.

 
Posted : 02/07/2023 12:54 pm
Runcorn
(@runcorn)
Posts: 16
Active Member
 

Could you please verify if the ID is included in the response iterator?

 
Posted : 03/07/2023 9:32 am
mdb213
(@mdb213)
Posts: 10
Active Member
Topic starter
 

Hi,

Yes, I am experiencing the expected behavior without the second HTTP call; it's correctly saving to the database.

Mike

 
Posted : 03/07/2023 1:19 pm
Share: