Help

Re: API Enpoint to list all bases for an api key?

4900 3
cancel
Showing results for 
Search instead for 
Did you mean: 
Aditya_Jawade
4 - Data Explorer
4 - Data Explorer

Is there an endpoint to list all the bases for an api key, zapier is able to do it in their app, but i couldn’t find anything related to this in the standard api documentation ?

13 Replies 13
S_N
4 - Data Explorer
4 - Data Explorer

no one has answered yet?!

No. Unfortunately, the API requires you to know the table(s) you wish to access.

My cross base/cross workspace search engine desparately needs this ability, and to overcome this lack of schema transparency, my system requires admins to first configure a table of tables.

A table of tables? How do you achieve that?
Also, how can be a table of tables be above bases?

Just create a table of all bases and tables that you want an API process to know about. When you open and access this table in the API, you can read it and then know about all the other tables that your API process should access to do its job.

image.png

It can’t - that’s the whole point. Airtable has not exposed this capability, so, you need to come up with a good way to overcome this shortfall. A table of bases and each its own tables achieves this. Lots of additional configuration effort and some maintenance responsibility, but it works.

Michael_Shafer
4 - Data Explorer
4 - Data Explorer

Just wanted to +1 the need for this API endpoint. Like @Bill.French I’m building a tool for other Airtable users, and currently I need to explain to each user how they should go and get their Base IDs manually, and then have them type in table names (hopefully without spelling or formatting errors).

It would be extremely helpful if the API that Zapier uses was made public.

Allan_Holmes
4 - Data Explorer
4 - Data Explorer

You can go to the main page of your api (w w w airtable dot com slash api) (sorry the forum wont let me post links), open the browser console and run the following sript:

const targetElements = document.querySelectorAll(".mb1.link-quiet.pointer.flex.items-center");
let str = "";
Array.prototype.slice.call(targetElements).forEach(el => {
  str += `"${el.getAttribute("title")}";"${el.getAttribute("href").split("/")[1]}"\n`;
})
console.log(str);

Not an actuall API endpoint but if you dont want to manually change the fields it works :slightly_smiling_face:

Thanks for chiming in @Allan_Holmes and welcome to the community.

Finally, we have a better pathway to build smarter apps.

Joao_Cavalcanti
4 - Data Explorer
4 - Data Explorer

Is the api call https://api.airtable.com/v0/meta/bases working? I am getting a Not Found error, possibly due to the wrong key? I am using the key generated from my dashboard’s account feature.

Hey João - Are you using the special metadata API key + request header?

See this document. You need to register for a special metadata API key: https://airtable.com/api/meta