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

  1. Create an account at /auth/register and sign in at /auth/login.
  2. Subscribe to an API plan (see Pricing).
  3. Create a key in the API key console, or with POST /auth/api-keys (authenticated by your session cookie). The secret is shown once.
  4. Send the key on every request, either as x-api-key: <key> or as Authorization: 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:

ToolWhat it doesMetered as
web_searchRanked web results (title, url, snippet, date) plus instant answerssearch_json
fetch_urlOne page as clean Markdown (JavaScript rendered, cached up to 1 h)crawl
crawl_siteSeveral 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
ParameterDescription
qQuery (required). Supports the search syntax.
formatjson or csv.
categoriesComma-separated, e.g. general, news, science, it, images.
languageLocale such as en or de-DE; omit for any.
time_rangeday, week, month or year.
pagenoResult page, from 1.
safesearch0 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), or down. Also sent as the X-Searchee-Search-Status header.
  • When the search backend is down, the response is HTTP 503 with an error field, 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

StatusMeaning
400Invalid parameters or a refused URL; the body says which.
401Missing or invalid API key.
402Enterprise prepaid balance exhausted.
403Key lacks the scope for this product, or the account has no active API plan (code explains).
429Rate limit or quota exceeded; honour Retry-After.
502The target page could not be fetched.
503Search 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

If you need onboarding support for enterprise or integration guidance, please contact us through the channels listed on the About page.