Neon API
Neon API
Neon is serverless Postgres — separated storage and compute, scale-to-zero (no charge when idle), DB branching, 100% Postgres compatible.
Scale-to-zero (5 min idle auto-stops compute, $0)
Scale-to-zero cold start (new connection 1-3s)
Sign up at neon.tech and create project for connection string. Use any Postgres client directly: psql postgresql://user:pass@host/db
Uptime · 30-day window
About this API
Neon is a serverless Postgres database company founded 2021; team mostly former Postgres core developers. Differentiating tech: completely separate storage from compute — storage on S3 (proprietary filesystem), compute is stateless PG instances. Architecture enables two magics: (1) Scale-to-zero — idle compute auto-stops, $0 cost, 1-3s to restart on next connection; (2) DB branching — each branch is storage copy-on-write, creates "copy" of multi-GB data in seconds. These features make Neon perfect for Vercel / Netlify / Cloudflare Workers serverless + preview deployments — each PR gets staging DB, auto-destroyed after merge. Vercel Postgres backend is Neon. Generous free tier (10 projects), top Postgres choice for personal / hobby projects.
What you can build
- 1Serverless app backends (no charge when idle)
- 2Vercel / Cloudflare Workers + Postgres
- 3Preview deployments per-branch DB
- 4Intermittent workloads (cron jobs)
Strengths & limitations
Strengths
- Scale-to-zero (5 min idle auto-stops compute, $0)
- DB branching (each git branch own DB copy created in seconds)
- 100% Postgres compatibility (any PG tool works)
- Generous free tier (10 projects + 3GB storage)
Limitations
- Scale-to-zero cold start (new connection 1-3s)
- Some Postgres extensions unsupported
- Relatively young (founded 2021)
Example request
curl https://neon.tech/<endpoint> \
-H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.Getting started
Sign up at neon.tech and create project for connection string. Use any Postgres client directly: psql postgresql://user:pass@host/db
FAQ
Neon vs. Supabase?+
Just Postgres + serverless architecture: Neon (lighter). Want BaaS full-stack (auth + storage): Supabase.
Does cold start affect production?+
Only after 5 min idle. Production apps with frequent access keep connection warm.
Technical details
- Auth type
- api_key
- Pricing
- freemium
- Rate limit
- 默认 100 req/分;账户级别
- Protocols
- REST, PostgreSQL
- SDKs
- javascript, python, go, rust