Turso API logo

Turso API

Turso API

UnknownFreedeveloper-tools

Turso is edge SQLite (based on libSQL) — distributed SQLite across 30+ global regions, millisecond read latency, conflict-free sync protocol.

Use it when

30+ global regions (millisecond reads near users)

Watch for

SQLite limitations (no complex concurrent writes)

First check

Sign up at turso.tech and create DB. Turso CLI: turso db create mydb; turso db shell mydb to enter SQLite shell.

Auth
api_key
CORS
?
HTTPS
Yes
Signup
?
Protocol
REST, WebSocket, libsql
Pricing
freemium

Uptime · 30-day window

Health history will appear here after the next daily check.
01

About this API

Turso is an edge database company founded 2022 (formerly ChiselStrike), based on proprietary libSQL (SQLite fork with server-side features). Core innovation: SQLite as local embedded DB typically can't "sync across nodes"; Turso adds server-side + conflict-free sync protocol, turning SQLite into globally distributed DB. Choosing SQLite over Postgres/MySQL because: (1) SQLite files are small (one file per DB), deploying to 30+ regions is cheap; (2) Extremely low read/write latency (SQLite reads file directly, no query planner like Postgres); (3) Embedded replicas — your app process embeds a local SQLite, zero-latency reads. Best for: global user web apps (users in every region need local-speed DB), edge function apps (Cloudflare Workers + Turso), mobile offline-first apps. Representative of new-generation edge-era databases.

02

What you can build

  • 1Global user apps (each region reads locally)
  • 2Edge function + database (Cloudflare Workers + Turso golden combo)
  • 3Mobile app local + cloud sync
  • 4Multi-tenant SaaS independent DB per customer
03

Strengths & limitations

Strengths

  • 30+ global regions (millisecond reads near users)
  • SQLite compatible (small and fast)
  • Embedded replicas with local zero latency
  • Affordable pricing (free 9GB storage + 1B reads/month)

Limitations

  • SQLite limitations (no complex concurrent writes)
  • Smaller ecosystem than Postgres / MySQL
  • Relatively new (founded 2022)
04

Example request

Generic template — replace <endpoint> with the real path from the docs.
curl https://turso.tech/<endpoint> \
  -H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.
05

Getting started

Sign up at turso.tech and create DB. Turso CLI: turso db create mydb; turso db shell mydb to enter SQLite shell.

06

FAQ

Turso vs. Cloudflare D1?+

D1 is also SQLite at edge, only usable within Cloudflare Workers. Turso is cross-platform (any app can connect).

SQLite limitations?+

No high-concurrency writes (suits read-heavy scenarios). Complex transactions and large datasets still need Postgres.

07

Technical details

CORS: ?HTTPS: YesSignup: ?Open source: No
Auth type
api_key
Pricing
freemium
Rate limit
默认按 plan
Protocols
REST, WebSocket, libsql
SDKs
javascript, typescript, python, go, rust
08

Tags