This website uses Cookies. Click Accept to agree to our website's cookie use as described in our Privacy Policy. Click Preferences to customize your cookie settings.
You canโt directly request a CSV via the API, but you could definitely write a script to generate one. Itโd be significantly less complicated if the API had the option to return data instead of references for linked records, but that comes with its own set of downsides as well. Anyway, Iโm guessing you donโt want to write a script to do this or youโd have gone that route already, but you might not have to. While this wonโt address linked records, you basically just need to make API calls to request data from the entire base (which is pretty straightforward even if you donโt know much about programmingโAirtableโs API documentation is pretty awesome) and then use a JSON to CSV conversion script to get the data in the format you want. If you search the web for JSON to CSV script and the name of the language you want to use, you should have no trouble locating what you need.
That said, Zapier can do pretty much anything the API can do. If it canโt with the direct integration, you can use Zapierโs Webhook action (which you can add to their Push trigger if you donโt have another explicit trigger you want to use) to call the Airtable API directly and do whatever you want with it from there. You might want to go that route if you need to export an entire base because the official integration only connects to one table in a base at a time. The API also works like that, essentially, but the official integration wonโt do anything with existing recordsโit has to think theyโre new. There are some work-arounds for this but itโs easier to just make an API call in this case (in my opinion, at least).
Anyway, if you want to do this in Zapier you will need to create a zap that bulls all the baseโs data in and, essentially syncs it somewhere else. Zapier canโt explicitly create a downloadable CSV so youโll need to sync the data to something that can, like Google Sheets. You can then make an API call to Google Sheets to get the CSV (or another format, if you preferโsee here). Yeah, itโs kind of convoluted but unfortunately I canโt think of a more straightforward option. You might want to check out Clay, though, since itโs kind of a middle ground. Youโd still have to write code but it provides some shortcuts that might make it easier to create the CSV you need.
Iโm sorry I couldnโt figure out a more direct route, but hopefully this helps a little!