Docs
Everything you need for the first call and the millionth. Full reference, copy-pasteable.
Quickstart
Install a client, set your key, make a call. Three minutes end to end.
pip install krenzofrom krenzo import Krenzo
client = Krenzo() # reads KRENZO_API_KEY
for hit in client.search("who acquired Figma competitors in 2026", max_results=5):
print(hit.title, "—", hit.url)Authentication
Every request carries a bearer token in the Authorization header. Create and rotate keys in the dashboard; a revoked key stops working immediately.
Keep keys server-side. A key in browser JavaScript is a public key. Proxy calls through your own backend.
API reference
Base URL https://krenzo.in/api/v1. All endpoints are POST and take JSON.
curl https://krenzo.in/api/v1/search \
-H "Authorization: Bearer $KRENZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "latest guidance on model evaluation",
"depth": "deep",
"max_results": 8,
"freshness": "month"
}'POST /searchRanked web results; `deep` also returns page contents.POST /extractAny URL to clean markdown. Billed per URL.POST /answerGrounded answer with verified citations.Parameters
| Name | Type | Description |
|---|---|---|
| query | string | The search intent. Natural language beats keywords — the reranker uses the full phrasing. |
| depth | "quick" | "deep" | `quick` returns ranked results with snippets. `deep` additionally fetches and extracts the top pages in the same call. Both cost the same — one call is one call. |
| max_results | int (1–20) | How many results to return after ranking. Defaults to 10. |
| freshness | "day" | "week" | "month" | "year" | Restrict to content published inside the window. Omit for no constraint. |
| depth: "deep" | — | Also fetches each page and reads its own publication timestamp, upgrading `published_precision` to `exact`. Use this when you need a real time rather than a date. |
| include_domains | string[] | Only return results from these domains. Mutually exclusive with `exclude_domains`. |
| exclude_domains | string[] | Drop results from these domains before ranking. |
Errors & rate limits
Errors return a consistent envelope with a machine-readable type. Retry on 429 and 503; everything else is a bug in the request. A 429 is never charged, and a 503 is always refunded, so retrying does not double-charge.
Rate limit
10 requests per second, per API key. Exceeding it returns 429 rate_limit_exceeded with a retry_after_ms field and a Retry-After header. Throttled requests are never charged.
The limit is per key, so splitting work across several keys on one account multiplies your throughput. Need more on a single key? Email us — it is a per-account setting, not a hard ceiling.
Publication dates: published_precision
Check this before using published for anything time-sensitive. A search index rarely states a publication time; depth: "deep" fetches the page and uses its own timestamp instead.
exactA real timestamp from the source. Usable to the minute. Returned when the page states its own publication time — `depth: "deep"` and `/extract` read this.dayThe source gave a date only. Midnight is padding, not a publication time.approxDerived from a relative age such as "2 days ago". The day may be off by one and there is no time of day.nullNo date available for this result.{
"error": {
"type": "upstream_error",
"message": "Search is temporarily unavailable.",
"refunded": true
}
}400 invalid_requestA parameter is missing or malformed. The message names the field.401 unauthorizedMissing, malformed or revoked API key. Keys start with `krz_live_`.402 insufficient_creditsFree calls are spent and the prepaid balance is too low. Top up to resume.429 rate_limit_exceededMore than 10 requests in one second on a single key. Back off by `retry_after_ms`, which the response carries. Throttled requests are not charged.503 upstream_errorThe search index or the origin site failed. The call is refunded automatically — the response carries `refunded: true`. Safe to retry.SDKs
The Python client has typed responses and retries transient failures automatically. Everything it does is a plain HTTP call, so any language works against the REST API directly.
Python
pip install krenzo3.9+, no dependencies
REST
Any HTTP clientNo SDK required