Oct 08, 2016 07:41 PM
Is there any plan for an API to pull metadata? It’s currently very difficult to infer the schema, you have to resort to hacks like reading all records and then trying to infer types and column names from that. It’d be great if you could pull the schema information for a table more easily!
It’d also be awesome if you’d be able to add and change tables from the API, but that’s less pressing to me :slightly_smiling_face:
Oct 17, 2019 07:08 AM
+1 Readable metadata as a minimum!
Jan 09, 2020 11:39 AM
This is a real bummer and would be very useful. Its 2020 now and still no response… frustrating
Jan 09, 2020 02:48 PM
Yep. A half-decade waiting. This is the equivalent of 35 Internet years; roughly half the lifetime of the product.
The request for a simple Split() function is also in the 5yr range. Unbelievable.
Jan 09, 2020 03:05 PM
100% this… I’m wanting to work on a big integration with Airtable into my existing application, but it’s way too hard without having Schema definitions… its like you said… brittle and unpredictable - if I don’t know what type of field I’m working with, I can’t make a good experience for our users.
Feb 20, 2020 10:01 AM
This is critical functionality and would make Airtable a much more powerful tool.
Mar 12, 2020 04:06 AM
I was seeing? the codepen Airtable API Encoder, and I be reading the comments of this post, and i thinking that if is possible add more complex options to the codepen code for econde our Api to get more and best request? is for this that zapier can do other functions that we dont can?
Mar 12, 2020 05:16 AM
is possible implement this code in a function with the link to url?
May 21, 2020 08:30 AM
+1 for this feature request. It would be hugely beneficial and the community has been asking for it for years.
May 27, 2020 02:27 AM
I agree this functionality would be very useful.
Jul 05, 2020 12:05 PM
+1 Geeeeeeeese. Come on AT.
Jul 10, 2020 12:14 PM
Sometimes it’s hard to understand whether Airtable really is trying to be a professional solution or not.
Jul 10, 2020 03:17 PM
Are you guys aware of the many ways that have emerged to get at the schema? Here’s one. There are others like this one, and this one.
Aug 25, 2020 06:30 AM
Yes, because clearly a hack is much better than a proper metadata API.
Aug 26, 2020 08:46 AM
Is the way to do this now to create a custom block? Looks like its possible through that - Airtable Blocks SDK
Sep 19, 2020 07:24 AM
I know this is a bit of middle ages as you have to press the button RUN everytime you need to modify your tables…
But i got this as a compromise.
Create a new table where you will store your Schema.
I called it ‘Ledger’ just for clarity.
create a block and use this code, it will populate it with the names of your tables, and then you can use it to make api calls.
let ledger = base.getTable('Ledger');
let tableList = []
for (table of base.tables) {tableList.push({fields: {'Name' : table.name}})}
await ledger.createRecordsAsync(tableList)
if you want to avoid async random return order of your records you can store it in a string and then parse it as an array in your app.
let ledger = base.getTable('Ledger');
let tableList = ""
for (table of base.tables) {
if (base.tables.indexOf(table) == base.tables.length - 1) {
tableList += table.name
}
else {
tableList += table.name + ", "
}
}
await ledger.createRecordsAsync([{
fields: {'Name' : tableList }
}])
Sep 20, 2020 08:43 PM
Should be native, no? :frowning:
Sep 21, 2020 07:13 AM
I don’t understand your comment. I’m very old; give me more context.
Sep 23, 2020 08:18 PM
I would love to be able to create an object-oriented Python API for my Airtable base. The current inability to query the schema definition via the API is a problem.
Sep 23, 2020 08:42 PM
And I’m feeling old. Perhaps best to move along :grinning_face_with_big_eyes:
Oct 24, 2020 09:42 AM
I tried this and it works great!. I save the json out to a file, then load it into python / dataframe for various uses. Thanks Chester.