airtable
БесплатноБез исполняемых скриптовНе проверенAirtable is a hosted spreadsheet-database; its Web API reads and writes records, table schema, attachments and webhooks over REST. Use when tasks involve…
Об этом скилле
Airtable API Integration
Overview
The Airtable Web API is a REST API at https://api.airtable.com/v0. Records live in tables inside a base; IDs are prefixed by type (app… base, tbl… table, fld… field, rec… record, viw… view). Requests authenticate with a bearer token: a personal access token (PAT) for your own scripts, or an OAuth access token when other users connect their accounts. Legacy API keys stopped working on February 1, 2024. Writes are limited to 10 records per request and every base to 5 requests per second.
Instructions
Authentication
Create a personal access token at https://airtable.com/create/tokens, add only the scopes and bases the script needs, and keep it in an environment variable.
export AIRTABLE_TOKEN="pat..." # set from your secret manager; never commit it
curl -s https://api.airtable.com/v0/meta/whoami -H "Authorization: Bearer $AIRTABLE_TOKEN"
# {"id":"usrL2PNC5o3H4lBEi"}
| Scope | Allows |
|---|---|
data.records:read / data.records:write |
Read / create, update and delete records |
schema.bases:read / schema.bases:write |
Read / change tables and fields |
webhook:manage |
Create, list and delete webhooks, fetch payloads; creating a tableData webhook and reading its payloads also need data.records:read |
user.email:read |
Email address in whoami |
Records
"""airtable_client.py — minimal Airtable Web API client."""
import base64, hashlib, hmac, os, time
import requests
API = "https://api.airtable.com/v0"
session = requests.Session()
session.headers["Authorization"] = f"Bearer {os.environ['AIRTABLE_TOKEN']}"
def call(method: str, url: str, **kwargs) -> dict:
"""One request, throttled to 5 per second; waits 30 s and retries on 429."""
for _ in range(4):
resp = session.request(method, url, timeout=30, **kwargs)
if resp.status_code != 429:
break
time.sleep(30)
if not resp.ok:
raise RuntimeError(f"{method} {url} -> {resp.status_code} {resp.text}")
time.sleep(0.2)
return resp.json()
def batches(items: list, size: int = 10):
for i in range(0, len(items), size):
yield items[i:i + size]
def list_records(base_id, table, formula=None, fields=None, view=None, sort=None) -> list:
"""Every record of a table. POST /listRecords keeps long formulas out of the URL."""
options = {"filterByFormula": formula, "fields": fields, "view": view, "sort": sort}
body = {k: v for k, v in options.items() if v}
records = []
while True:
page = call("POST", f"{API}/{base_id}/{table}/listRecords", json=body)
records += page["records"]
if "offset" not in page:
return records
body["offset"] = page["offset"]
def create_records(base_id, table, rows: list[dict], typecast=False) -> list:
created = []
for batch in batches(rows):
body = {"records": [{"fields": row} for row in batch], "typecast": typecast}
created += call("POST", f"{API}/{base_id}/{table}", json=body)["records"]
return created
def update_records(base_id, table, updates: list[dict]) -> list:
"""updates = [{"id": "rec...", "fields": {...}}]; PATCH leaves other fields untouched."""
updated = []
for batch in batches(updates):
updated += call("PATCH", f"{API}/{base_id}/{table}", json={"records": batch})["records"]
return updated
def upsert_records(base_id, table, rows: list[dict], merge_on: list[str], typecast=False):
"""Update rows that match on the merge_on fields and create the rest."""
created, updated = [], []
for batch in batches(rows):
body = {"performUpsert": {"fieldsToMergeOn": merge_on}, "typecast": typecast,
"records": [{"fields": row} for row in batch]}
data = call("PATCH", f"{API}/{base_id}/{table}", json=body)
created += data["createdRecords"]
updated += data["updatedRecords"]
return created, updated
def delete_records(base_id, table, record_ids: list[str]) -> list:
deleted = []
for batch in batches(record_ids):
params = [("records[]", record_id) for record_id in batch]
deleted += call("DELETE", f"{API}/{base_id}/{table}", params=params)["records"]
return deleted
- A list page holds at most 100 records (
pageSize); followoffsetuntil it is absent.maxRecordscaps the total.GET /v0/{baseId}/{table}takes the same options as query parameters, but the URL must stay under 16,000 characters. - Fields whose value is empty (
"",[],false) are omitted from returned records — read withrecord["fields"].get("Done", False). sortis a list such as[{"field": "Due Date", "direction": "desc"}]. Pass"returnFieldsByFieldId": trueto key fields by ID, so a renamed column does not break the integration.PUTinstead ofPATCHclears every field that is not in the request.fieldsToMergeOnaccepts one to three fields of type number, text, long text, single
Установить airtable в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл airtable?
Airtable is a hosted spreadsheet-database; its Web API reads and writes records, table schema, attachments and webhooks over REST. Use when tasks involve reading or writing Airtable data, importing or upserting rows from a CSV or another system, syncing external sources with Airtable bases, reacting to record changes with webhooks, connecting users through Airtable OAuth, or debugging 422 and 429 responses from api.airtable.com.
Как установить скилл airtable?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл airtable запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic