Back to APIs list

Airtable API examples & templates

Use these vals as a playground to view and fork Airtable API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
yawnxyz avatar
airtablesemanticsearch
@yawnxyz
HTTP
Demo of adding an Embeddings column to Airtable (which calls the embeddings endpoint at yawnxyz/v/ai) and stores embeddings in an Airtable column, then performing search against it Usage: https://yawnxyz-airtablesemanticsearch.web.val.run/search?query=your+search+query&similarity_threshold=0.8&max_results=5&base_id=your_base_id&table_name=your_table_name&content_column=your_content_column&embedding_column=your_embedding_column https://yawnxyz-airtablesemanticsearch.web.val.run/search?query=cars
mattx avatar
airtable_get_sample
@mattx
Script
An interactive, runnable TypeScript val by mattx
steveb1313 avatar
GetPelotonWorkoutsAndSaveToAirTable
@steveb1313
Script
An interactive, runnable TypeScript val by steveb1313
mattx avatar
airtable_deno_sample
@mattx
Script
An interactive, runnable TypeScript val by mattx
yawnxyz avatar
buildclubProjectSearch
@yawnxyz
HTTP
Use embeddings / Lunr search on Airtable. Embeddings need to have been generated / stored on Airtable, or this gets very slow / costly. Simple usage: https://yawnxyz-buildclubprojectsearch.web.val.run/search?query=cars Full GET request: https://yawnxyz-buildclubprojectsearch.web.val.run/search?query=your+search+query&similarity_threshold=0.8&max_results=5&base_id=your_base_id&table_name=your_table_name&content_column=your_content_column&embedding_column=your_embedding_column
junhoca avatar
receive_email
@junhoca
Script
An interactive, runnable TypeScript val by junhoca
andreterron avatar
receive_email
@andreterron
Script
An interactive, runnable TypeScript val by andreterron
devonzuegel avatar
subscribe_to_a_substack
@devonzuegel
Script
// I was able to get this script to work from my browser console, but
devonzuegel avatar
subscribe_to_a_substack_2
@devonzuegel
Script
// I was able to get this script to work from my browser console, but
bensu avatar
subscribe_to_a_substack
@bensu
Script
// I was able to get this script to work from my browser console, but
nbbaier avatar
sqliteExplorerApp
@nbbaier
HTTP
SQLite Explorer View and interact with your Val Town SQLite data. It's based off Steve's excellent SQLite Admin val, adding the ability to run SQLite queries directly in the interface. This new version has a revised UI and that's heavily inspired by LibSQL Studio by invisal . This is now more an SPA, with tables, queries and results showing up on the same page. Install Install the latest stable version (v86) by forking this val: Authentication Login to your SQLite Explorer with password authentication with your Val Town API Token as the password. Todos / Plans [ ] improve error handling [ ] improve table formatting [ ] sticky table headers [x] add codemirror [ ] add loading indication to the run button (initial version shipped) [ ] add ability to favorite queries [ ] add saving of last query run for a table (started) [ ] add visible output for non-query statements [ ] add schema viewing [ ] add refresh to table list sidebar after CREATE/DROP/ALTER statements [ ] add automatic execution of initial select query on double click [x] add views to the sidebar [ ] add triggers to sidebar [ ] add upload from SQL, CSV and JSON [ ] add ability to connect to a non-val town Turso database [x] fix wonky sidebar separator height problem (thanks to @stevekrouse) [x] make result tables scrollable [x] add export to CSV, and JSON (CSV and JSON helper functions written in this val . Thanks to @pomdtr for merging the initial version!) [x] add listener for cmd+enter to submit query
nbbaier avatar
sqliteBuilder_plus_easy_table
@nbbaier
Script
An interactive, runnable TypeScript val by nbbaier
stevekrouse avatar
sqlite_admin
@stevekrouse
HTTP
SQLite Admin This is a lightweight SQLite Admin interface to view and debug your SQLite data. It's currently super limited (no pagination, editing data, data-type specific viewers), and is just a couple dozens lines of code over a couple different vals. Forks encouraged! Just comment on the val if you add any features that you want to share. To use it on your own Val Town SQLite database, fork it to your account. It uses basic authentication with your Val Town API Token as the password (leave the username field blank).
neverstew avatar
sqliteBuilder_plus_easy_table
@neverstew
Script
An interactive, runnable TypeScript val by neverstew
vawogbemi avatar
dateme_sqlite
@vawogbemi
Script
This script is buggy... I used LibSQL Studio instead import { setupDatabase } from "https://esm.town/v/stevekrouse/dateme_sqlite" await setupDatabase()
stevekrouse avatar
sqlite_admin_table
@stevekrouse
Script
@jsxImportSource https://esm.sh/hono@3.9.2/jsx