Scaff Search API
A free web search API that returns JSON. No API key, no signup. Built on SearXNG, aggregating several search engines.
Last updated 2026-11-29 · OpenAPI spec · Markdown version
Requests are logged (IP, headers with credentials redacted, query, timing) for research. Don't send personal or confidential data in queries. Details.
Quick start
curl "https://search.scaff.dev/api/search?q=postgres+vacuum+tuning"
Endpoint
GET https://search.scaff.dev/api/search
| Parameter | Type | Default | Description |
|---|---|---|---|
q | string | — | Search query. Required. Max 400 characters. |
num | integer | 10 | Number of results, 1–20. |
page | integer | 1 | Result page, 1–10. |
lang | string | en | Language code, e.g. en, de, fr, all. |
safe | 0 | 1 | 0 | Safe search. |
Response
{
"query": "postgres vacuum tuning",
"page": 1,
"count": 10,
"results": [
{
"title": "PostgreSQL: Documentation: Routine Vacuuming",
"url": "https://www.postgresql.org/docs/current/routine-vacuuming.html",
"snippet": "PostgreSQL databases require periodic maintenance known as vacuuming…",
"engine": "bing",
"published": null
}
],
"suggestions": ["postgres autovacuum settings"],
"source": "searxng (bing, brave)",
"engines": ["bing", "brave"],
"cached": false,
"duration": 0.84
}
Errors
| Status | Meaning |
|---|---|
| 400 | Missing q. Body includes a usage hint. |
| 503 | All search backends failed. Retry after a short delay. Live state at /status. |
Examples
Python
import requests
r = requests.get("https://search.scaff.dev/api/search", params={"q": "rust async runtime", "num": 5}, timeout=20)
r.raise_for_status()
for hit in r.json()["results"]:
print(hit["title"], hit["url"])
JavaScript
const res = await fetch("https://search.scaff.dev/api/search?" + new URLSearchParams({ q: "vite ssr", num: 5 }));
const { results } = await res.json();
CORS is enabled (Access-Control-Allow-Origin: *), so browser apps can call the API directly.
Limits and behaviour
- No hard rate limit. Please keep sustained traffic around 1 request/second.
- Identical queries are cached for 15 minutes;
cached: truemarks a cache hit. - Engines are health-checked continuously; failing engines are dropped automatically. See status.
- Also available:
/search?q=…&format=json(same payload), OpenSearch for browsers.
Using it from an AI agent
See Agents & MCP for a remote MCP endpoint, an OpenAI-style function definition and a LangChain tool.