Docs / Search
Search
Search
GET/v1/site/search
- Auth
- none
- Cache-Control
public, max-age=30, stale-while-revalidate=150, stale-if-error=300- Validators
ETag- Source of truth
clients/openapi.jsonanddocs/API.md§12
Keyword search over the same clean, published items the paid route searches.
Description: clients/openapi.json
Parameters
| Name | In | Required | Type | Example | Notes |
|---|---|---|---|---|---|
q | query | no | string | inflation | Keyword query, 2..256 characters. A two-character Chinese term is valid. |
locale | query | no | string | en | A well-formed locale tag. Read the supported set from GET /v1/meta → locales. |
category | query | no | string | central_banks | One of GET /v1/meta → categories; anything else is 400. |
since | query | no | string | 2026-11-01T00:00:00Z | RFC3339 lower bound (inclusive). |
until | query | no | string | 2026-11-07T00:00:00Z | RFC3339 upper bound (inclusive); since > until is 400. |
limit | query | no | string | 2 | Page size. /v1/items is 1..200 (default 50); /v1/search clamps a larger value; /v1/items/{id}/related is 1..50. |
cursor | query | no | string | <next_cursor> | Opaque keyset cursor from the previous page's next_cursor. An empty string is treated as absent. |
include | query | no | string |
Following next_cursor is a loop; see Pagination for the walk in curl, Python and TypeScript.
Example request
curl -sS \
'https://vg.tempproject.online/v1/site/search?q=inflation&limit=2'import json
import os
import urllib.request
URL = "https://vg.tempproject.online/v1/site/search?q=inflation&limit=2"
def call() -> dict:
req = urllib.request.Request(URL, headers={})
with urllib.request.urlopen(req, timeout=15) as res:
print(res.status, res.headers.get("ETag"))
return json.loads(res.read().decode("utf-8"))
if __name__ == "__main__":
body = call()
print(json.dumps(body, indent=2, ensure_ascii=False)[:2000])const res = await fetch(
"https://vg.tempproject.online/v1/site/search?q=inflation&limit=2",
{
method: "GET",
headers: {},
},
);
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(res.headers.get("etag"), await res.json());The requests are generated from the path template and the parameters in clients/openapi.json, so a new parameter appears here without an edit to this site.
Example response
cache-control: public, max-age=30, stale-while-revalidate=150, stale-if-error=300
# validators: ETag
content-type: application/octet-streamNo JSON body on this route; the headers are the ones docs/API.md §2 documents for it
Failures
This operation can answer 200, 304, 400, 422, 429, 503. The full envelope for each status, with its body, is on Errors.