Fast (deprecated)
Deprecated. Use Search. Fast still works and is now served by Search.
`POST https://api.keirolabs.cloud/api/v2/search/fast`
Cost: 0.5 credits paid · 1 free · Latency: ~3–5 s
> **Deprecated: use Search**
>
Fast is deprecated. New code should call [Search](/search/search) (`POST /api/v2/search`). Fast keeps working for existing integrations and is now served by Search, with the same request and response shape. Responses carry a `Deprecation: true` header, a `Link` header pointing to `/api/v2/search`, and a `deprecated` field.
**What changed.** `maxResults` now tops out at 10. `language` is ignored; `country` is passed to Search as `location`. Each result also carries `published` (page date, when found) and `highlights` (the best passages from the page, see [Search](/search/search)).
**Migrating.** Send `count` instead of `maxResults` and `location` instead of `country` to `/api/v2/search`. Read `results[].highlights` for page passages.
## Request
**cURL**
```bash
curl -X POST https://api.keirolabs.cloud/api/v2/search/fast \
-H "Authorization: Bearer $KEIRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "latest postgres release notes", "maxResults": 10}'
```
**Python**
```python
import os, requests
res = requests.post(
"https://api.keirolabs.cloud/api/v2/search/fast",
headers={"Authorization": f"Bearer {os.environ['KEIRO_API_KEY']}"},
json={
"query": "latest postgres release notes",
"maxResults": 10
},
)
print(res.json())
```
**Node.js**
```js
const res = await fetch("https://api.keirolabs.cloud/api/v2/search/fast", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KEIRO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"query": "latest postgres release notes",
"maxResults": 10
}),
});
console.log(await res.json());
```
## Parameters
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | The search query (1-400 chars). |
| `maxResults` | integer | no | Number of results. Default and max: 10. |
| `country` | string | no | 2-letter country code, passed to Search as location. |
## Response
```json title="200 OK"
{
"query": "best js frameworks 2025",
"results": [
{
"title": "...",
"url": "https://...",
"snippet": "...",
"position": 1,
"score": 1,
"published": "2026-03-02",
"highlights": [{ "text": "...", "score": 0.61, "heading": "..." }]
}
],
"count": 10,
"latencyMs": 3120,
"partial": false,
"deprecated": "Use POST /api/v2/search. /search/fast is now served by it and will be removed.",
"creditsCharged": 0.5,
"creditsRemaining": 1141
}
```
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `results` | array | no | List of search results, sorted by relevance. |
| `results[].title` | string | no | Page title from the search result. |
| `results[].url` | string | no | Full URL of the result. |
| `results[].snippet` | string | no | Short text excerpt from the page (search engine snippet). |
| `results[].position` | integer | no | Rank position (1 = top result). |
| `results[].score` | number | no | Relevance score (0-1, where 1 = exact match). |
| `count` | integer | no | Number of results returned. |
| `latencyMs` | integer | no | Server-side processing time in milliseconds. |
| `results[].published` | string | null | no | Page date (YYYY-MM-DD), when found. New. |
| `results[].highlights` | array | no | The best passages from the page. New, see Search. |
| `partial` | boolean | no | true if the search timed out and returned what it had. |
| `deprecated` | string | no | Migration notice. |
| `creditsCharged` | number | no | Credits deducted for this request (0.5 for paid tiers, 1 for free). |
| `creditsRemaining` | number | no | Your remaining credit balance after this request. |
## Errors
| Status | Code | Cause | Fix |
| --- | --- | --- | --- |
| `400` | `VALIDATION_ERROR` | Missing or invalid query parameter | Ensure query is a non-empty string (1-400 chars). |
| `401` | `UNAUTHORIZED` | Missing or invalid API key | Check your Authorization: Bearer header. |
| `402` | `INSUFFICIENT_CREDITS` | Not enough credits | Buy more credits or upgrade your plan at /dashboard/billing. |
| `429` | `RATE_LIMIT_EXCEEDED` | Too many requests | Check X-RateLimit-Remaining header. Wait for Retry-After seconds. |
| `502` | `SEARCH_UNAVAILABLE` | Search backend failure | Credits auto-refunded. Retry with exponential backoff. |
## Rate limits
| Tier | Limit |
| --- | --- |
| Free | 10/min |
| Starter | 30/min |
| Pro | 60/min |
| Startup | 120/min |
| Enterprise | 200/min |
Over the limit you get a `429`. See [Rate limits](/rate-limits) for headers and backoff.https://api.keirolabs.cloud/api/v2/search/fastDeprecated: use Search
Fast is deprecated. New code should call Search (POST /api/v2/search). Fast keeps working for existing integrations and is now served by Search, with the same request and response shape. Responses carry a Deprecation: true header, a Link header pointing to /api/v2/search, and a deprecated field.
What changed. maxResults now tops out at 10. language is ignored; country is passed to Search as location. Each result also carries published (page date, when found) and highlights (the best passages from the page, see Search).
Migrating. Send count instead of maxResults and location instead of country to /api/v2/search. Read results[].highlights for page passages.
Request
curl -X POST https://api.keirolabs.cloud/api/v2/search/fast \
-H "Authorization: Bearer $KEIRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "latest postgres release notes", "maxResults": 10}'Parameters
Prop
Type
Response
{
"query": "best js frameworks 2025",
"results": [
{
"title": "...",
"url": "https://...",
"snippet": "...",
"position": 1,
"score": 1,
"published": "2026-03-02",
"highlights": [{ "text": "...", "score": 0.61, "heading": "..." }]
}
],
"count": 10,
"latencyMs": 3120,
"partial": false,
"deprecated": "Use POST /api/v2/search. /search/fast is now served by it and will be removed.",
"creditsCharged": 0.5,
"creditsRemaining": 1141
}Prop
Type
Errors
| Status | Code | Cause | Fix |
|---|---|---|---|
400 | VALIDATION_ERROR | Missing or invalid query parameter | Ensure query is a non-empty string (1-400 chars). |
401 | UNAUTHORIZED | Missing or invalid API key | Check your Authorization: Bearer header. |
402 | INSUFFICIENT_CREDITS | Not enough credits | Buy more credits or upgrade your plan at /dashboard/billing. |
429 | RATE_LIMIT_EXCEEDED | Too many requests | Check X-RateLimit-Remaining header. Wait for Retry-After seconds. |
502 | SEARCH_UNAVAILABLE | Search backend failure | Credits auto-refunded. Retry with exponential backoff. |
Rate limits
| Tier | Limit |
|---|---|
| Free | 10/min |
| Starter | 30/min |
| Pro | 60/min |
| Startup | 120/min |
| Enterprise | 200/min |
Over the limit you get a 429. See Rate limits for headers and backoff.
Paste one prompt into Claude Code, Cursor, Codex or Windsurf. It installs Keiro MCP, reads these docs and writes the integration against the real API.