# ReSQLable > Public data, made queryable. Read-only SQL over versioned dataset snapshots, > served per API key and metered like tokens. ReSQLable is a plain HTTP API. You send one read-only SQL statement, you get JSON rows. There is no SDK and no custom query language to learn. ## Base URL https://api.resqlable.xyz ## Authentication Authorization: Bearer rq_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Keys are issued by ReSQLable, not by the payment provider. Only a SHA-256 digest is stored, so a lost key cannot be recovered; rotate it instead. ## Get a free key POST /v1/keys/free Content-Type: application/json {"email":"you@example.com"} ## Endpoints - GET /v1/datasets list datasets with row counts and licences - GET /v1/datasets/{id}/schema tables, columns and types - POST /v1/query {"dataset","sql","format"} - GET /v1/usage counters, limits, reset times, 30-day history - GET /v1/me key prefix, tier, email - POST /v1/keys/rotate replacement key; old key keeps a 24h grace period - GET /openapi.json full OpenAPI 3 spec - GET /tools.json OpenAI-compatible function definitions - GET /docs human documentation ## SQL rules - exactly one statement, starting with SELECT or WITH - read-only: the database file is opened read-only, PRAGMA query_only is set, and an authorizer denies writes, ATTACH, PRAGMA and dangerous functions - every response is capped by rows, bytes and wall-clock time - `truncated: true` means a cap was hit ## Limits | plan | req/min | req/day | req/month | rows/response | |---|---|---|---|---| | free | 10 | 500 | 10,000 | 100 | | developer | 60 | 5,000 | 200,000 | 1,000 | | commercial | 300 | 50,000 | 2,000,000 | 5,000 | | enterprise | 1,000 | 200,000 | 20,000,000 | 20,000 | Daily counters reset at 00:00 UTC; monthly counters on the first of the month, UTC. ## Error shape {"error":{"type":"rate_limit_error","code":"daily_quota_exceeded","message":"..."}} ## Example POST /v1/query Content-Type: application/json {"dataset":"airports","sql":"SELECT name, iso_country FROM airports LIMIT 3"} Response: {"dataset":"airports","columns":["name","iso_country"], "rows":[{"name":"Narita International Airport","iso_country":"JP"}], "row_count":1,"truncated":false,"elapsed_ms":2} ## Data The bundled `airports` dataset comes from OurAirports (public domain): 140,551 rows across `airports`, `runways`, `regions` and `countries`. We publish facts and structure. We do not redistribute copyrighted descriptions or images. Every dataset records its source and licence in `/v1/datasets`.