# Copy of Snippet "Airtable multi-record getter"

**URL:** <https://community.blaze.today/t/copy-of-snippet-airtable-multi-record-getter/12180>\
**Category:** Snippet Exchange\
**Created:** [October 20, 2021, 5:59am UTC](https://community.blaze.today/t/copy-of-snippet-airtable-multi-record-getter/12180 "2021-10-20T05:59:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurang\_Tandon](https://community.blaze.today/user_avatar/community.blaze.today/gaurang_tandon/32/3796_2.png) [@Gaurang\_Tandon](https://community.blaze.today/u/Gaurang_Tandon)\
**Post date:** [October 20, 2021, 5:59am UTC](https://community.blaze.today/t/copy-of-snippet-airtable-multi-record-getter/12180/1 "2021-10-20T05:59:49Z")

</div>

Allows you to get more than one record from the same table in an Airtable base

The snippet finds two records in the same table given their record IDs, using a single urlload command.  
It is recommended to look at the [original snippet](https://community.blaze.today/t/copy-of-snippet-airtable-data-extracter/11615) for better understanding of how this system works.  
  
{note}{formtext: name=apikey} {formtext: name=base}{endnote}  
{if: apikey \<\> "" and base \<\> ""}  
{recid1="recGSuKxRFEd6TF7a"}{recid2="recHS96qKr9nbd8tj"}   
{urlload: [https://api.airtable.com/v0/{=base}/VWB?filterByFormula=OR](https://api.airtable.com/v0/%7B=base%7D/VWB?filterByFormula=OR)(%7BRecord ID%7D%3D'{=recid1}'%2C%7BRecord ID%7D%3D'{=recid2}'); method=GET; done=(res) -\> ["url\_response"=catch(fromJSON(res), "???")]; headers=Authorization=Bearer {=apikey}}  
**Data received**  
{records=catch(url\_response.records, [])}  
**Count of records received:** {=count(records)} Should be 2  
{rec1=records[1]}  
{rec2=records[2]}  
{type\_a=rec1}  
{type\_b=rec2}  
{if: 1 == 2}  
{type\_a=rec2}  
{type\_b=rec1}  
{endif}  
{else}  
Enter apikey and base to proceed  
  
To get the apikey, generate it on your [Airtable account page](https://airtable.com/account) (keep it a secret)  
  
If you have the record URL as: [https://airtable.com/appW0YBv9zvXFQcO6/tblHDV2wc3yp0T7IQ/viwqYnynm1ysWpg6Y/recltLpNVfdtUlVtB?blocks=hide](https://airtable.com/appW0YBv9zvXFQcO6/tblHDV2wc3yp0T7IQ/viwqYnynm1ysWpg6Y/recltLpNVfdtUlVtB?blocks=hide), then base=appW0...Qc06, and recordid=rec...VtB.  
  
For an interactive demo of Airtable's API, visit their [API page](https://airtable.com/api) and choose your base. On the left you should choose "VWB Table" and then "Fields", "List records" or "Retrieve a record". On the right you will see various outputs relevant to your base.  
{endif}
