Introduction
The Airtable data provider enables you to build Refine applications with Airtable, a cloud-based platform that combines the simplicity of a spreadsheet with the power of a database.Installation
Install the Airtable data provider package:Setup
Get Airtable credentials
Get your API key and Base ID from your Airtable account:
- API Key: Account > Generate API Key
- Base ID: Available in the API documentation for your base
Basic Usage
Get List
Fetch records from an Airtable table:Get One
Fetch a single record by ID:Create
Create a new record:Update
Update an existing record:Delete
Delete a record:Filtering
Airtable supports filtering using formulas:Sorting
Sort records by one or more fields:Working with Attachments
Handle file attachments in Airtable:Linked Records
Work with linked records (foreign keys):Views
Query data from specific Airtable views:Field Selection
Select specific fields to retrieve:Complete Example
Environment Variables
Store your Airtable credentials securely:Handling Rate Limits
Airtable has API rate limits. The data provider handles these automatically, but you can implement additional error handling:Supported Operators
The Airtable data provider supports the following filter operators:eq: Equalsne: Not equalslt: Less thanlte: Less than or equalgt: Greater thangte: Greater than or equalcontains: Contains (text search)
Limitations
- Airtable API has rate limits (5 requests per second per base)
- Record IDs must start with “rec”
- Maximum 100 records per request
- Some complex formulas may not be supported
Best Practices
- Use environment variables for API credentials
- Cache frequently accessed data
- Use views to pre-filter data in Airtable
- Minimize the number of fields retrieved
- Handle rate limits gracefully
Next Steps
Data Providers Overview
Learn about other data providers
Airtable API Docs
Explore Airtable API features