I’m working on a project where I need to connect my Airtable database to my Glitch application. I already have my API token set up, but I’m stuck trying to find the base ID that I need for the connection.
I’ve been looking through the Airtable interface but can’t seem to locate where the base ID is displayed. Without this ID, I can’t establish the connection between my Airtable data and my Glitch code.
Can anyone walk me through the process of finding the base ID in Airtable? Also, if there are any specific steps for setting up this integration with Glitch, that would be really helpful too.
The base ID hunt trips everyone up initially. Hit this same wall when I first tackled Airtable integration.
Easiest method - open your base, check the URL. You’ll see https://airtable.com/appAbC123dEfG456/tblXYZ789 where appAbC123dEfG456 is your base ID.
Skip URL copying though. Go straight to API docs instead. Hit the help icon in your base, then “API documentation”. Gets you everything - base ID, table names, field IDs, plus sample code.
yup, u got it! just peep the URL when ur base is open, the bit after app is ur base ID - like appXYZ123abc. don’t forget to copy it all or ur integration might fail! good luck!
Finding your base ID in Airtable is pretty straightforward. Go to your base and check the URL - you’ll see a string starting with “app” followed by random letters and numbers. That’s your base ID. You can also click the question mark icon in the top right corner to pull up the API docs, which shows your base ID plus all your table and field info. For your Glitch integration, throw both your API key and base ID into environment variables in your .env file. Since Glitch projects are public, this keeps your credentials safe. Once that’s done, you can use the Airtable JavaScript SDK in Glitch’s Node.js setup without any issues.
You’ll find the base ID in your browser’s address bar when you open any Airtable base. It’s the alphanumeric string after ‘app’ in the URL - stays the same across all tables and views. Honestly though, I’d just grab it from the API docs in the Help menu since it shows the base ID clearly and includes auth info you’ll need anyway. For Glitch, store your API token and base ID as environment variables since you’re hitting Airtable’s REST endpoints. Also make sure your Glitch app can make external API calls - I’ve seen people get stuck on connection issues because of this.
Your base ID is right there in the URL when you’ve got your base open. Check the address bar - you’ll see https://airtable.com/appXXXXXXXXXXXXXX/ where everything after app is your base ID.
You can also hit Help > API documentation with your base open. The docs show your base ID at the top plus example code snippets.
I’ve done this integration tons of times - honestly, the API docs route is better since it gives you the exact table names and field IDs you’ll need.
On the Glitch side, store your API token and base ID as environment variables in .env. Don’t hardcode them in your main files since those are public by default.
This video walks through finding your base ID and API key:
Once you’ve got both, the API calls are pretty straightforward. Airtable’s REST API is solid and their docs actually work.