Programmatic API
Searchee provides web search, page fetch and site crawl for AI agents and applications — over a plain HTTP API or as an MCP server that agent runtimes can connect to directly.
1) Getting a key
- Create an account at
/auth/registerand sign in at/auth/login. - Subscribe to an API plan (see Pricing).
- Create a key in the API key console, or with
POST /auth/api-keys(authenticated by your session cookie). The secret is shown once. - Send the key on every request, either as
x-api-key: <key>or asAuthorization: Bearer <key>.
Keys created without explicit scopes can use every product. To restrict a key, pass "scopes" when creating it: any of search_json, crawl, tools, agent_search, or all.
2) Connect an AI agent over MCP
Searchee speaks the Model Context Protocol (Streamable HTTP transport) at:
https://searchee.com/mcp
Tools:
| Tool | What it does | Metered as |
|---|---|---|
web_search | Ranked web results (title, url, snippet, date) plus instant answers | search_json |
fetch_url | One page as clean Markdown (JavaScript rendered, cached up to 1 h) | crawl |
crawl_site | Several same-site pages, breadth-first (up to 20) | crawl |
Claude Code:
claude mcp add --transport http searchee https://searchee.com/mcp --header "x-api-key: YOUR_KEY"
Most other clients accept a JSON server entry like this:
{
"mcpServers": {
"searchee": {
"type": "http",
"url": "https://searchee.com/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}
Each tool call counts as one request against your rate limit and quota. When a call is refused (rate limit, quota, scope), the tool result has isError: true with a code and, for limits, retry_after seconds.
3) Search
GET /search?q=privacy+search&format=json
| Parameter | Description |
|---|---|
q | Query (required). Supports the search syntax. |
format | json or csv. |
categories | Comma-separated, e.g. general, news, science, it, images. |
language | Locale such as en or de-DE; omit for any. |
time_range | day, week, month or year. |
pageno | Result page, from 1. |
safesearch | 0 off, 1 moderate, 2 strict. |
The JSON body has results[] (url, title, content, engines, publishedDate, …), plus answers, infoboxes and suggestions. Searchee adds:
searchee_status:ok,degraded(some sources unavailable), ordown. Also sent as theX-Searchee-Search-Statusheader.- When the search backend is down, the response is HTTP 503 with an
errorfield, so an outage is never mistaken for “no results”. X-Searchee-Cache: hit|miss: identical queries are cached for 90 seconds.
4) Fetch and crawl
Fetch one page as Markdown:
GET /crawl/url?url=https://example.com/article
POST /crawl/url {"url": "https://example.com/article", "extract_links": true, "bypass_cache": false}
Crawl a few pages of one site (same host, breadth-first):
POST /crawl/domain {"start_url": "https://docs.example.com/", "max_pages": 10, "max_depth": 2}
Responses carry success, url, title, markdown, word_count and status_code (pages[] for a domain crawl). Only public http(s) URLs are accepted; private and internal addresses are refused with HTTP 400. A page that could not be fetched returns HTTP 502 with "success": false and an error.
The same capabilities are available as tool calls: GET /tools/list, then POST /tools/call with {"name": "crawl_url" | "crawl_domain" | "extract_structured_data", "arguments": {...}}.
5) Answers with citations
POST /api/v1/agent/search {"query": "...", "options": {"crawl": false, "max_sources": 12}}
POST /api/v1/agent/search/stream (Server-Sent Events: meta, sources, delta..., done)
Returns an AI-written answer with numbered citations, the sources it used, and follow_ups. Requires the agent_search scope.
6) Errors and limits
| Status | Meaning |
|---|---|
| 400 | Invalid parameters or a refused URL; the body says which. |
| 401 | Missing or invalid API key. |
| 402 | Enterprise prepaid balance exhausted. |
| 403 | Key lacks the scope for this product, or the account has no active API plan (code explains). |
| 429 | Rate limit or quota exceeded; honour Retry-After. |
| 502 | The target page could not be fetched. |
| 503 | Search backend unavailable (not an empty result). |
Error bodies are JSON with error and, where available, a machine-readable code.
7) Security best practices
- Never embed API keys in client-side code.
- Rotate keys when exposure is suspected; use separate keys per environment/application.
- Monitor usage to detect anomalies early.
8) Legal and policy
- API Privacy Notice — how API requests, keys, metering, and logs are handled.
- API Terms of Use — rules for key-based access, quotas, and acceptable use of the APIs.
- Privacy Policy and Terms of Use — general product and account terms.
If you need onboarding support for enterprise or integration guidance, please contact us through the channels listed on the About page.