API documentation
Base URL (auto-detected): . Public, read-only, JSON, no keys. All searches (website + API) share 5,000 searches per UTC day; there is also a per-IP limit of 30 searches/minute.
Playground
Press Run to see the real JSON response.
GET /api/v1/search
| Parameter | Meaning |
|---|---|
| q | Required, ≤200 chars. Words are ANDed; "quoted phrases"; the last word is prefix-matched while typing (no trailing space). If nothing matches all words and there are several, results matching any word are returned (match_mode: any_term_fallback). |
| limit / page | limit 1–20 (default 10), page 1–20. total is capped at 1000 (total_capped). |
| language | Comma list, e.g. en,fr. |
| domain / exclude_domain | Comma lists (max 5), exact hostnames. |
| type | Content type, e.g. article, tutorial, recipe. |
| from / to | YYYY-MM-DD on publication date. Documents without a known date are excluded when used. |
| fields | Subset of title,url,domain,description,excerpt,language,content_type,published_at,indexed_at,source_type,relevance. |
| safe search | Not offered: the index holds no content-safety data yet, so a setting would be meaningless. |
Excerpt highlights use the control characters U+0001 (start) and U+0002 (end); HTML-escape the text, then replace them with your own markup.
Other endpoints
| GET /api/v1/suggest?q= | Title suggestions (prefix match, ≥2 chars). Does not use the daily quota; per-IP limited. |
| GET /api/v1/document?id= or ?url= | Stored document (body truncated to 5000 chars). |
| GET /api/v1/health | Database + schema status. |
| GET /api/v1/stats | Counts and quota: quota.remaining, quota.resets_at. |
| GET /api/v1/setup | Setup checklist (also shown at /setup). |
Errors
JSON {"error":{"code","message"}}. 400 invalid input · 404 · 405 · 429 (daily_quota_exhausted with quota and Retry-After, or ip_rate_limited) · 503 (database missing or unavailable — no search is performed and no quota is bypassed). Search responses carry X-Quota-Limit, X-Quota-Remaining, X-Quota-Reset.