Skip to main content
These docs will be deprecated and no longer maintained with the release of LangChain v1.0 in October 2025. Visit the v1.0 alpha docs
Open In ColabOpen on GitHub

Airtable

%pip install --upgrade --quiet  pyairtable
from langchain_community.document_loaders import AirtableLoader
  • Get your API key here.
  • Get ID of your base here.
  • Get your table ID from the table url as shown here.
api_key = "xxx"
base_id = "xxx"
table_id = "xxx"
view = "xxx" # optional
loader = AirtableLoader(api_key, table_id, base_id, view=view)
docs = loader.load()

Returns each table row as dict.

len(docs)
3
eval(docs[0].page_content)
{'id': 'recF3GbGZCuh9sXIQ',
'createdTime': '2023-06-09T04:47:21.000Z',
'fields': {'Priority': 'High',
'Status': 'In progress',
'Name': 'Document Splitters'}}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.