Skip to content
Back to skills

Any Provider

ASecurity

Add a web search provider to any-search or a web fetch provider to any-fetch, the two libraries under any-search/ and any-fetch/. Use when asked to add, change or re-record a provider in either library, or to check one against the procedure.

  • 1,017 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 10, 2026
ai-agentsjavascriptpythonrustgojavashellgitapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add mozilla-ai/otari --skill any-provider --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Any Provider?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Any Provider
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mozilla-ai-any-provider/badge)](https://www.skillsdirectory.com/skills/mozilla-ai-any-provider)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: any-provider
description: Add a web search provider to any-search or a web fetch provider to any-fetch, the two libraries under any-search/ and any-fetch/. Use when asked to add, change or re-record a provider in either library, or to check one against the procedure.
---

# Adding a provider to any-search or any-fetch

The two libraries call web search and web fetch providers over HTTP, with no vendor SDKs, and
answer in one envelope per library. Each library's README says how a caller uses it; read it
first. This skill is how a provider gets in. It has a shared procedure, one checklist per library,
and the learnings each provider added, newest last.

A provider is one module, `<package>/src/<import name>/providers/<name>.py`, holding a class with
`METADATA` and `_search` (any-search) or `_fetch` (any-fetch), listed in the package's
`_registry.py`. The base class checks option names and the shared parameters, sets the logging
context and calls the adapter.

The shared parameters are few on purpose: search's `max_results` and `time_range`, fetch's
`max_chars`. A parameter becomes shared only when a host cannot do its job without it on every
provider. Everything else stays native, under the provider's own name, even where many providers
have a similar option (a domain filter, a country): a host that needs such a rule applied for
certain, as otari's domain policy, checks the results itself.

## The procedure

1. **Read the provider's documentation**, its OpenAPI spec when it has one, since that is usually
   the source of truth. Fill `METADATA`: the endpoint and method, where the key travels, whether
   a key is required, optional or not taken, whether a base URL is required, the default base URL
   and the variable the provider's SDK reads each from, if any, the limits, and the native options under the provider's own names and
   enums. Note the pricing, with the date you read it, in the module's docstring. When the
   provider charges a call one of a few prices chosen by an option, mark that option `cost_tier`,
   with the tiers as its `enum` and, as its `default`, the tier a call is billed at when the
   option is not passed: the provider's own, unless the adapter sends another (step 2). Set
   `reports_cost` when its answer says what each call cost. Record no amount in the metadata.
2. **Write the adapter.** Build the request from the shared parameters and the native options,
   read the response into the envelope, and write the date parser, the error reader and the cost
   reader. The rules:
   - Send with `self._http.request`, which uses the host's client and the provider's timeout,
     follows no redirect from the provider's API (a fetched page's redirects are the provider's
     to follow), names the library in the request's `User-Agent` (`any-search/<version>` or
     `any-fetch/<version>`), turns a transport failure into a `ProviderError` without its text,
     and raises `http_error` for any answer below 400 that is not a success. An adapter sets no
     `User-Agent` of its own, even where the provider's SDK names itself: that header is one of
     two exceptions to the next rule.
   - By default, send what the provider's own SDK sends, so moving from the SDK changes nothing.
     A caller who wants less passes the native option. What the envelope needs is always asked
     for, and no option turns it off: Exa's page text, Tabstack's metadata, which holds the title.
     The other exception is a default tier that adds a charge per page: send the cheaper tier
     unless the option is passed (You.com, any-fetch, in the learnings).
   - A shared parameter wins over the native option it maps to.
   - Refuse a reserved key: the query and the key. A native option that a shared parameter also
     sets stays offered, so its whole range stays reachable (Perplexity's `search_recency_filter`
     takes `hour`, which `time_range` does not), and the shared parameter wins when both are
     passed; say so in the option's description.
   - An HTTP status of 400 or more raises `ProviderError(provider, status, tag)`. Take the tag
     from the body only when it looks like a code, and never put body text, the URL, the query or
     the key in an error.
   - An error the provider reports inside a 200 is a value, `SearchError` or `FetchError`.
   - Check every field the adapter reads in a successful answer, so a change on the provider's
     side fails the call rather than degrading it. A field the provider documents as always
     present and missing, a field of the wrong type, or a date that does not parse raises
     `ProviderError(provider, status, "unexpected_response")`, with no body text. Ignore the
     fields the adapter does not read, so a field the provider adds breaks nothing. A body that
     is not the provider's answer at all, not JSON or not an object, is `invalid_response`.
   - A date without a zone is UTC.
   - The cost is the provider's reported figure only, as a `Decimal`, with `cost_source` set.
   - `api_base` replaces the endpoint for every provider; strip its trailing slash.
   - Bump the package's `__version__` (`<import name>/__init__.py`): it names the library in
     every request's `User-Agent`, so a provider can tie a change in its traffic to a release.
3. **Record fixtures and test.** Record one fixture per case (below) with
   `uv run python <package>/scripts/record_fixture.py`. Keep them small: ask for few results and
   little text. Check the key is not in them. Then add:
   - the provider's scenarios to `tests/conformance/test_conformance.py`, replaying the fixtures;
   - `tests/test_<name>.py`, for the request it sends, how it reads each fixture, and each field
     it checks missing, of the wrong type and, for a date, unparsable;
   - the provider to `tests/test_registry.py`;
   - the provider to `EXPECTED` in `tests/test_live.py`, saying what its live answers must hold,
     with a new field when the table cannot say it yet, and its key to
     `.github/workflows/otari-libs-live.yml` from a repository secret, which a maintainer adds.

   Run `make test-libs`, `make lint-python` and `make typecheck-python`, then the live tests once.
   CI runs them weekly and on every pull request that changes either library.
4. **Try it from the CLI** against the real account, and note anything surprising. Check that
   `--describe <name>` prints the metadata and options as the documentation gives them.
5. **In the gateway**, the catalog routes and settings validation read the libraries' metadata.
   Review each native option against the provider's pricing and add the ones a tenant may set on a
   deployment-paid tool to `services/tools/_web_search/_tenant_options.py`. An unlisted option is
   refused when the provider reports no cost; an option that only the deployment may set for a
   reason other than cost stays out and takes `operator_only` in the library instead. A search
   option that can add a charge for each result goes in that module's `_CHARGED_PER_RESULT`
   instead: the startup log then names a tool that sets it and no `max_results`, and a test fails
   for an option that is neither on a list, configuration-only nor there. Add the
   provider's pricing note to `docs/tools.md`, under "Search providers" or "Fetch providers", and
   a compose or `.env.example` line where a key is expected. Then smoke-test it on a local gateway:
   a direct search and an in-loop search or fetch on an instance, the price each bills (the
   instance's `price_per_call`), a safe option and a refused key. When the provider's name is also
   an any-llm provider's, configure that provider's models too, and check that the tool's price and
   access stay apart from the models'.
6. **Update the learnings** below with what the provider taught, and this procedure if a step
   changed.

The four cases a fixture can record:

| Case | What it is |
|---|---|
| `normal` | A successful answer with content. |
| `empty` | A successful answer with nothing in it: no hits, or a page with no text. A fetch provider that never answers a page with no text, failing the call instead, has none. |
| `error` | A failed call, with an HTTP status. A key the provider refuses is the easiest to record, unless it refuses keys inside a 200; then try a malformed parameter. |
| `in_body_error` | An error inside a 200. Leave it out when the provider has none. |

## Search checklist (any-search)

- `METADATA`: `max_results` is the provider's own limit; `query_in_url` and `key_in_url` say
  whether either travels in the URL. When one does, pass them as the request's `params`, never
  format the URL yourself or hand it to a logger, and add a test over a real socket (a local
  server) that no log record and no transport error carries the key or the query:
  `httpx.MockTransport` skips httpcore, which logs below httpx.
- Map `max_results`, and also cut the hits to it, since a replayed fixture does not honor it. A
  native count option that stands in for it gets the same cap. Map `time_range` (`day`, `week`,
  `month`, `year`) to the provider's recency filter, rounded to the precision of its dates.
- A hit needs a URL. Drop an item without one only when the provider's documentation allows such
  an item; otherwise it is `unexpected_response`. When the provider is seen to send a string that
  is not an http(s) URL with a host, such as Serply's Google redirect tokens, drop that item too
  and fill the count from the items after it. `title` and `snippet` are strings, never `None`.
  `snippet` is the provider's short text; `text` is page text, when it came back.
- List the fields the adapter checks in the module's docstring and the README's section on the
  provider.
- `raw` holds the provider's item and its whole response, untouched.

## Fetch checklist (any-fetch)

- `METADATA`: `max_urls_per_call`, `renders_javascript` (`False` unless the provider documents
  it, even under an option only, as Tabstack's `effort: max`) and the `formats` its text comes in.
- `max_chars` caps `text`. When the provider takes a length cap, ask for one character more than
  the cap, cut the text, and set `text_truncated` when it was longer; when it has none, cut the
  text it returns. Without `max_chars`, return what the SDK would. `source_truncated` is for a
  fetcher that stops reading the response.
- `url` is the URL asked for, `final_url` the one the provider answered for. `content_type` is
  the type the page was served as, or empty when the provider does not say.
- A page the provider fetched with no text is empty: `text` is `""` and `error` is `None`. An
  answer with neither a page nor a reason raises `unexpected_response`; it is not an empty page.
- A provider with no error inside a 200 either fails the call for a page it could not fetch or
  returns the text of the site's own error page. Find out which live, with a page that does not
  exist, and say so in the docstring, the README and `EXPECTED`'s `missing_page`.
- List the fields the adapter checks in the module's docstring and the README's section on the
  provider.
- `builtin` is not added here: the host registers it (`AnyFetch.register_builtin`).

## Learnings

### 2026-10-08, Exa (iteration one, both libraries)

What each adapter does is in its library's README; these are the lessons for the procedure.

- A provider's API and its SDK can differ in what they send by default. Exa's API returns only
  titles and URLs unless asked for more, while its SDKs ask for page text. Hence step 2's rule:
  follow the SDK.
- Not every provider has an in-body error: Exa's `/search` has none, so it has three fixtures.
- A provider can report an empty page as a page error (Exa's `CRAWL_EMPTY_CONTENT`); read that
  one as an empty page. A page error can also come with no tag at all.
- Check whether the provider's length cap is exact before relying on it. Exa's is, which is what
  makes asking for one character more work.
- Exa dates many pages by their day alone, as midnight, which is why a `time_range` start is
  rounded down to the day.
- A provider can report a cost of 0: Exa did for a search with no results and for a page it could
  not fetch. The host bills the reported cost first.
- Leave out of the options what the envelope cannot carry or the provider has deprecated. For
  Exa: the synthesis fields (`outputSchema`, `systemPrompt`, and `stream`, whose server-sent
  events the adapter cannot read), the enterprise `compliance` mode, and the deprecated fields.
- Fixture recipes: an empty search with `includeDomains` set to a domain that does not exist; an
  in-body fetch error with a page that does not exist; an empty page with a zero-byte file.
- The recorder reads the key from its own environment. When the key is set only in an
  interactive shell's startup file, run the recorder through that shell (`zsh -ic '...'`).
- `make lint-python` runs pre-commit over tracked files only, so stage new files first
  (`git add -N`), or they go unchecked.
- Step 5 for Exa waits for the gateway units that wire the libraries in, since none existed yet.

### 2026-10-13, field checks and the live workflow (both libraries)

- A provider's OpenAPI spec can mark as optional what every recorded answer carries: Exa marks
  `costDollars` optional on both endpoints, and on `/contents` also `results` and `statuses`.
  Follow the spec rather than the recordings: require only what the spec requires or the adapter
  cannot answer without (`results`), take the rest as optional but type-checked, and let the live
  tests' `EXPECTED` require what the host relies on, such as a reported cost, so its absence is
  noticed without failing every call.

### 2026-10-13, Mojeek (iteration two, any-search)

The first search provider with the key in the URL and errors inside a 200.

- A key in the URL: pass the key and the query to `self._http.request` as `params`, never format
  the URL yourself, and set `query_in_url` and `key_in_url`. httpx logs the URL at INFO, which the
  log filter redacts during a provider call. httpcore, below it, logs at DEBUG only the method, the
  host and the response headers, so a redirect's `Location` would be the one way the key reached
  it; Mojeek sent none in any case tried. Only a test over a real socket shows this. Over HTTP/2,
  which a host's client may use, hpack logs every request header at DEBUG, the path included, so
  the filter covers hpack's loggers too.
- Errors inside a 200 can be the only way a provider refuses a key: Mojeek answers a bad key with
  HTTP 200 and `response.status` `Access Denied: invalid key/password`, not the `ERROR: ...` its
  documentation shows. That key records the `in_body_error` fixture; the `error` one came from a
  malformed parameter (`-o s=abc`), which Mojeek answers with a 503.
- Turn a status text into a tag of the adapter's own, by how it starts, with a fallback, so none of
  the provider's text reaches an error.
- A documentation can list fields a default answer never carries. Mojeek's lists `pdate`,
  `timestamp`, `date`, `size` and `cfs` on every result, but its request parameters turn `date` and
  `size` on, and `pdate` never came. Check what a default answer carries, live, before deciding
  which fields are required, and send what the envelope needs (`date=1` for a date).
- A provider can mean "unknown" by a value that parses: Mojeek sends a `timestamp` of 0, the Unix
  epoch, for a page it has no time for. Read the recorded fixtures for such values.
- A provider can cap or refuse quietly: Mojeek returns 10 results for `t=50` on its entry plan,
  and no results with status `OK` for a `since` it does not take (`week`) or for `t=0`. Map the
  shared parameters to values the provider takes, since nothing else will say they were wrong.
- Mojeek reports no cost, so the live tests' `EXPECTED` says so, and says what the host relies on
  instead: dated hits and a snippet, since a hit carries no page text.

### 2026-10-13, Tabstack (the first fetch-only provider)

- The error shape a provider documents may not be what it sends. Tabstack documents
  `{"error": "..."}` for every error, but answers a refused key in plain text, and its sentences
  can quote the URL (`domain resolution failed for <url>`). Record the error fixture to see the
  real shape, and read no tag from a body that holds sentences: the tag is `http_error`.
- A documented format can be wrong for some pages. Tabstack documents `created_at` as ISO 8601,
  but a PDF's comes in the PDF's own format (`D:20240410211143Z`). Before reading a date, fetch a
  PDF and an article live; a field whose format the provider does not hold stays in `raw`, since
  checking it would fail every such call.
- Not every fetch provider has an error inside a 200. Tabstack returns a 404 page's text with a
  200 and does not say what status the site answered, hence `missing_page` in the live tests.
- A provider can be slower than the default 15-second timeout: Tabstack documents up to 15 s at
  its default effort and 15 to 60 s at `max`, and a zero-byte file took 29 s. Say so in the
  option's description, the README and the pricing note, which tells an operator to set the
  instance's `timeout`. The live tests keep the default, which is what hosts use. A slow fixture
  can be recorded with a faster option (`effort: min` for the empty page).
- A provider may report no cost in any answer: Tabstack shows spend only in its console. The
  pricing note in `docs/tools.md` then says what it charges, and no more.
- Fixture recipes: `https://example.com/` for a normal page small enough to keep whole, and the
  key variable set to a made-up key for the error.

### 2026-10-18, DeepSeek (both libraries)

The first provider whose name and key are also an any-llm provider's, and the first fetch
provider with no empty page.

- A search or fetch provider can share its name with a model provider. DeepSeek's tools were
  priced and allow-listed as `deepseek:<tool-name>`, in the key space of its models'
  `deepseek:<model>`, and gateway code that judged a key by its prefix took one for the other:
  the hosted catalog sweep kept unoffered model prices as tool rates, `deepseek:*` granted paid
  searches, and the startup warning called the key the search tool read ignored. So tool prices
  now have a kind of their own, keyed by the instance's name (`price_per_call` on its entry), and
  search tools an access list of their own (`allowed_tools`), and a provider's tools and models no
  longer share a key. What is left to the next author: instance names are unique across
  `search_tools` and `fetch_tools`, so a provider that searches and fetches needs two
  (`deepseek`, `deepseek-fetch`), and step 5's smoke test configures the provider's models beside
  its tools and checks that a model's price or allow-list entry reaches neither.
- An error body's fields can differ in how much they say. DeepSeek's OpenAI-shaped body sends
  `code` `invalid_request_error` for every failure, a refused key included, while `type` tells
  them apart (`authentication_error`, `not_found_error`). Record more than one failure before
  choosing which field becomes the tag.
- An error message can carry part of the key: DeepSeek's 401 quotes its last four characters
  after asterisks. The recorders redact that masked form as well as the key; the adapter still
  never reads the message.
- A fetch provider can fail the call for every page it cannot use and never answer an empty
  page. DeepSeek answers a 404 `not_found_error` for a missing page, a site's 500, a private
  address, a PDF, a zero-byte file and HTML with an empty body, with nothing saying which. That
  cannot be read as an empty page, since a missing page looks the same, so the provider leaves
  `empty` out of the conformance scenarios (`NO_EMPTY_PAGE`), and `EXPECTED` says
  `missing_page="fails"`. Probe those cases live before deciding: a page with only a title came
  back with the title as its text.
- A provider can have no recency parameter but a query operator: DeepSeek's `after:YYYY-MM-DD`,
  which counts toward its 128-character query limit, so a long query with a `time_range` is
  refused. Check the operator live, its boundary included: DeepSeek's `after:D` takes in day D
  from midnight UTC+8, which a probe shows as the earliest hit dated D-1 16:00 UTC, so a start
  day computed in UTC covers at least the span.
- A search provider can return URLs with tracking parameters or fragments
  (`?spm=a2c6h`, `#1`); the adapter passes them as they are.
- Fixture recipes: an empty search with `site:` set to a domain that does not exist; a refused
  key as any `sk-` string of the right length.

### 2026-11-03, Serply (any-search)

The first search provider with the query in the URL and the key in a header, and the first that
returns a scraped results page.

- Set `query_in_url` without `key_in_url` when only the query travels in the URL; the real-socket
  log test still applies, since httpx logs the URL with the query in it.
- A native option can be a request header: Serply's `X-Proxy-Location` and `X-User-Agent` keep
  the provider's header names and go out as headers, and the key is set after them, so no option
  replaces it.
- A provider can pass parameters through that its documentation does not list: Serply forwards
  Google's own `tbs` and `tbm`, which is how `time_range` is mapped. Check each one live before
  offering it, and say in the docstring when it was checked: `tbm=nws` works, `tbm=isch` returned
  no `results`.
- A result can carry a value of the right type that is not what the field promises: Serply
  sometimes returns an opaque Google token in `link` in place of a URL. Drop such an item rather
  than failing the whole search, and fill the count from the items after it.
- A provider can choose the region a search runs from unless an option pins it. Without `gl`,
  Serply answered a news query with Swedish relative times, and the same English web result came
  dated `May 27, 2026` on one call and `27.05.2026` on another. Say in the option's description
  and in the pricing note which option an operator should set on the instance.
- A results page shows its dates as text in the language of the region that served it: Serply's
  come in `metadata.published_time` (`Oct 7, 2026`, `17 hours ago`) or `metadata.attributes`
  (`27.05.2026`, `vor 23 Stunden`). Such a field stays in `raw`, as Tabstack's PDF dates do: a
  parser for the one form a fixture shows dates some hits and silently drops the rest. Probe with
  several queries rather than one repeated, since Serply answered a repeated query identically.
- A documentation's default can be wrong: Serply documents `desktop` as its `X-User-Agent`
  default, but its answers reported `mobile`. Describe an option by what it does, not by a default
  you have not seen.

### 2026-11-05, Synthetic (any-search)

The first provider added without a recorded success: its search answers only a subscribed key.

- A provider can refuse a valid key for want of a plan, with the same status as a bad one:
  Synthetic answers both with a 401, and only the `error` sentence tells them apart
  (`Invalid API Key.` against `The search API is subscription-only: ...`). Probe with a real key
  before choosing tags, and give the plan refusal a tag of its own (`subscription_required`), so an
  operator is not sent to rotate a key that works.
- When no key can record a success, the `normal` fixture is the documentation's own example and
  `empty` that shape with no results, said in a comment beside the conformance scenarios, and the
  live workflow skips the provider on every trigger rather than failing a scheduled run without
  the secret. What a recording would settle stays open in the PR: the most results a search
  returns, whether `text` is page text or an excerpt, and whether `published` can be null.
- A provider can take nothing but the query. Then `max_results` only cuts the hits, and
  `time_range` filters them by date after the answer, keeping the undated ones, since nothing
  says they fall outside the range.

### 2026-11-05, SearXNG (any-search)

The first provider with no key and no address of its own, and the first that replaced code otari
already had for it.

- An adapter speaks the provider's own API: its parameter names, its defaults and its fields,
  nothing carried over from a client the host had before. otari's old SearXNG client read
  `published_date` and `extracted_content`, which only otari's own SearXNG-shaped services sent;
  the adapter reads `publishedDate` and `content`, as SearXNG sends them. When the provider has
  no SDK, follow its server's own default: SearXNG's `server.method` is GET.
- A provider that every user runs for themselves has no default address: set
  `requires_api_base`, and an `env_api_base` so the CLI and the live tests can find an instance.
  The conformance fixture gives every such variable a fake value, as it does a key.
- What an instance answers depends on how its operator configured it. A name in `engines` that
  SearXNG does not know is not an error: with no name it knows, it searches its default engines
  (`mojeek` is not among its engines). `wikipedia` answers an infobox and no results. The engines that scrape search
  sites (`duckduckgo`, `qwant`) answer a laptop and a CI runner with CAPTCHAs, on some calls and
  not others, and an engine on a public API can refuse every caller: arXiv's answered 403 from
  2026-12-02. The live tests therefore ask four unrelated engines in one search, `google cse`,
  `stackoverflow`, `duckduckgo` and `wikinews`, since a search fails only when none returns a
  hit. The merged hits come grouped by engine, in an order that changes between calls, so the
  search for dated hits asks `wikinews`, the one that dates them, alone. An engine the settings
  mark `disabled` still answers a search that names it. SearXNG leaves an engine without a time
  filter, as `wikinews`, out of a search that sets one, and names an engine it suspended in
  each later search that asks for it.
- An error inside a 200 can be partial: `unresponsive_engines` names each engine that failed,
  beside the results of those that did not. Only a search that leaves no usable hit while an
  engine failed is the search's error; with hits, the failures stay in `raw`.
- When a provider documents none of its answer's fields, the 2026-10-13 rule applies in full:
  require only what the adapter cannot answer without (SearXNG's `results`), take the rest as
  optional but type-checked, and drop an item without a usable URL. A date in a form the provider
  does not hold stays in `raw`; one that starts like ISO 8601 and does not parse
  (`2026-13-40`) fails the call, since it means the provider's serializer broke.
- Tag a status by what it can mean, not by its likeliest cause: SearXNG answers 403 when `json`
  is not enabled, but so can a proxy in front of it, so the tag is `forbidden` and the docs name
  the likely cause. An option whose values only the adapter acts on (`method`) is refused
  outside its enum before any request; SearXNG cannot refuse what the adapter never sends.
- For a provider the host runs itself, the live workflow starts it: a
  container from a dated image, with the settings the host's compose file mounts, and the
  workflow runs again when those settings change.
- Fixture recipes: the `in_body_error` with `engines=google news`, which answers "access denied";
  the `error` with `pageno` set to a word, a 400 with a sentence in `error` (an empty value gives
  `Empty pageno parameter`); an empty search with `engines=wikinews` and words no article holds.
  A 403 is SearXNG's answer when `json` is not among the instance's `search.formats`, which no
  fixture records.

### 2026-11-09, Perplexity (any-search)

The first provider whose price per call depends on an option.

- A provider can sell one search at several prices: Perplexity's `search_type` is `web` at $5 per
  1,000 or `fast` at $1. A host that bills a flat price per tool cannot let a caller pick the
  dearer tier on a tool priced for the cheaper one, unless the provider reports what the call
  cost. Hence `cost_tier` and `reports_cost`: they state the provider's facts, and the host
  decides what to lock. Exa's `type` is a cost tier too, but Exa reports its cost.
- A field's name does not say what it holds. Perplexity's `snippet` is passages taken from the
  page, cut to `max_tokens_per_page`, so it is the hit's `text`, and a host reads no page for it.
  Map by meaning, and leave `text` empty when the provider sends an empty string.
- The error shape a provider documents may never come. Perplexity documents only a 422 with
  `detail` for its search; every failure probed came as a 400 or 401 with
  `{"error": {"message", "type", "code"}}`, and a message can quote the request (`got USA`).
  Probe several failures (a made-up key, a count out of range, a value outside a list, a field of
  the wrong type) before choosing where the tag comes from.
- Optional can mean absent rather than null: Perplexity leaves `date` out of a result it has no
  date for, and never sent the documented `server_time`. Check what the adapter reads as
  "absent or null".
- The documentation, its schema and the SDK can disagree: Perplexity's schema allows 50 results,
  its text says 20 for a web search, and its SDK's `search_type` lacks `fast`. The live probe
  decides: 30 results is a 400.
- A provider may accept what it does not apply. Perplexity ignores an unknown field and takes a
  domain filter that mixes domains to search and to leave out, which its documentation says it
  does not do. The base class refuses unknown options; say in an option's description what the
  provider documents it does not do.
- The base class checks an option's name, never its value, so an `enum` is documentation. When
  the adapter leaves out a value the provider runs, as Perplexity's `people` search type, the
  adapter refuses it before the request with `UnsupportedValueError`, as SearXNG's does for `method`
  (CodeRabbit on #3046); a value the provider refuses can stay the provider's to refuse.
- Fixture recipes: `normal` with `--max-results 2` and `max_tokens_per_page=40` keeps it small;
  `empty` with `search_domain_filter` set to a domain that does not exist; `error` with a made-up
  `pplx-` key.

### 2026-11-14, Brave (any-search)

The first provider that replaced old gateway code for a provider otari's own settings still name.

- A refused key need not be a 401: Brave answers it with a 422 and `error.code`
  `SUBSCRIPTION_TOKEN_INVALID`, the same status as a count out of range (`VALIDATION`). Take the
  tag from the code, so the two stay apart; `detail` and `meta` can quote the request (a missing
  header's `input`), so neither is read.
- A provider can ignore a value it does not validate: Brave answers `freshness=zz` with results,
  as if no filter was set. Map the shared parameters to values the provider documents, since
  nothing will say a wrong one was dropped.
- "Found nothing" can be a missing section: a Brave search with no web results has no `web` at
  all, not an empty list. Treat the section's absence as no hits, and a section of the wrong type
  as `unexpected_response`.
- A provider's answer can hold more than the envelope reads: Brave's default answer adds videos,
  news and a `mixed` ranking beside `web`. Leave them in `raw`, keep the provider's default, and
  offer its own filter (`result_filter`).
- A key's plan can be slower than the provider's published rate: the recording key allowed one
  request a second (`x-ratelimit-limit: 1, 2000`), so back-to-back live tests got 429s. `EXPECTED`
  takes a `wait` for such a provider, and the live tests sleep that long before each of its calls.
- httpx writes a boolean parameter as `true` or `false`, which is Brave's spelling, so the adapter
  passes booleans as they are. A `None` goes out as an empty value, so leave it out.
- The gateway refuses an option value outside its `enum` when a tool or a key is saved. Give an
  option an `enum` only for a short list the provider is unlikely to extend (`safesearch`), and
  leave a long one that it validates itself (`country`) to the provider.
- Fixture recipes: `normal` with `--max-results 2` and `result_filter=web` keeps it small; `empty`
  with `site:` set to a domain that does not exist; `error` with a made-up key.

### 2026-11-16, Tavily (any-search)

The first provider whose old gateway client sent an option the provider leaves off by default.

- When the host's old client sent an option the provider's own default leaves out, the adapter
  sends the provider's default, and the host keeps the option where its callers rely on it.
  otari's old client always asked Tavily for page text (`include_raw_content`). The adapter does
  not: otari's legacy settings add the option themselves, and a data migration wrote it into each
  stored key's options, where the key's owner sees it and can turn it off.
- An error body can hold only a sentence: Tavily answers `{"detail": {"error": "Unauthorized:
  ..."}}`, a 422 with pydantic's list that quotes the input, or its own statuses 432 and 433 for
  plan limits. With no code to read, tag by the status the provider documents.
- A provider can report what a call cost in its own unit: Tavily's `usage.credits`, sent when
  `include_usage` asks, counts credits, whose dollar price depends on the plan. That is not a
  reported cost: `reports_cost` stays false, and the host prices each tier (`search_depth`).
- An option can raise the price by choosing a tier itself: `auto_parameters` costs 2 credits and
  may pick `advanced`. Leave such an option out until the host can lock it.
- Page text can be very large: one `raw_content` was 946,000 characters. The host cuts what
  reaches a model; the adapter passes it as it came.
- Dates can be RFC 1123 (`Thu, 15 Oct 2026 00:00:00 GMT`); `email.utils.parsedate_to_datetime`
  reads them.
- Fixture recipes: `normal` with `--max-results 2 -o topic=news`, which dates every hit; `empty`
  with `include_domains=["example.com"]` and words no page there holds (a domain that does not
  exist is a 400); `error` with a made-up `tvly-` key.

### 2026-11-11, You.com (any-search)

The first provider that sends defaults on options that have a list of values.

- A default the adapter sends must be one a host can turn off. You.com's SDK sends `language`
  `EN` and `knowledge` `core`, and null turns each off, as it does `extraction`. otari refuses a
  value an option's `enum` does not list, and null is in none, so those two name their values in
  the description instead, like Exa's `contents` and Mojeek's `date`, which have no enum either.
- The status a provider documents may not be the one it sends. You.com lists a 401 for a bad key,
  but a made-up or empty key gets a 403 `{"message": "Forbidden"}` from the gateway in front of
  the API, and no key at all a 402 `payment_required`. Tag by status, and take a code from the
  body only where it is one, the 402's `error`; a 422's `error` is a sentence that quotes the
  request (`highlights supports count up to 50, got 60`).
- A budget shared across results makes snippets long when there are few: highlights share 8,192
  tokens, so two results came back at 10,000 to 13,500 characters each. otari cuts them;
  `extraction.highlights.total_max_tokens`, from 1,024, asks for less.
- A mode can lower the result cap. Under highlights a `count` above 50 is a 422, while one above
  100 is answered with no results, so the adapter caps the count by mode.
- An empty answer can drop the list rather than empty it: a search with no results answered
  `results: {}`, with no `web`. Both `results` and `web` are optional in the API contract.
- You.com accepts values it does not apply: a `freshness` of `decade`, a `country` or `language`
  of `XX`, and an `offset` of 10, past the documented 9, are each answered 200.
- Fixture recipes: `normal` with `--max-results 2` and `extraction` set to
  `{"extraction_mode": "highlights", "highlights": {"total_max_tokens": 1024}}` keeps it small;
  `empty` with `include_domains` naming a domain that does not exist; `error` with a made-up key,
  a 403.

### 2026-11-11, You.com (any-fetch)

The first fetch provider with a cost tier.

- When a provider's default tier adds a charge per page on top of the call, the adapter sends the
  cheaper tier unless the option is passed. It marks the option `cost_tier` with that tier as its
  `default`, since that is what a call without it is billed at, and says so in the option's
  description. A host that bills a flat price per call cannot see how many pages a call read, so
  the provider's default would bill it for pages its price never covered. You.com's
  `parse_effort` defaults to `standard`, which adds $0.50 per 1,000 PDF pages; `lite` adds none.
- An empty response can be a cache miss rather than an empty page: under
  `extraction_source: cache`, You.com returns `{}` for a page it has no copy of, which its
  documentation calls "nothing extracted". It is a `FetchError` (`not_cached`), not an empty page
  and not `unexpected_response`; an empty page is `markdown: ""`, which a site's 500 and HTML with
  an empty body both returned. Tag the same shape by what it can mean in each mode
  (`nothing_extracted` outside the cache).
- A provider's cached copy can differ from the page: `blend`, the default, answered
  `python.org/downloads/` with 3,154 characters titled `Release schedules`, and `fetch` with
  7,753 titled `Download Python | Python.org`, and `example.com` from the cache with no title.
- A native option can share a name with the library's own argument: You.com's `timeout` caps its
  side of the call, but `afetch(timeout=)` is the fetcher's, so the native option reaches the
  provider only through `fetch`. Say so in the option's description rather than renaming it, and
  say which of the two must be the longer.
- A provider can document error codes as stable. You.com's `error.code` (`invalid_url`,
  `site_unreachable`) is one, so it is the tag at any status that carries it, while its
  `details.reason` can name the host and is not read. The gateway in front of the API still
  returns 401, 403 and a key-less 402 with bodies of its own, so those are tagged by status as
  the search adapter does.
- Fixture recipes: `normal` with `https://example.com/` and `extraction_source=fetch`; `empty`
  with an httpbin `base64` URL holding HTML whose body is empty; `in_body_error` with
  `extraction_source=cache` and a path nobody has fetched; `error` with a made-up key, a 403.

### 2026-11-18, redirects and 3xx answers (both libraries)

Found in CodeRabbit's review of You.com. No adapter turned redirects off, and each took any
status below 400 as a success; what that cost depended on the provider.

- A key in a header other than `Authorization` follows a redirect to another host. httpx drops
  `Authorization` on such a redirect but keeps every other header, so the key of Exa
  (`x-api-key`), Serply (`X-Api-Key`), Brave (`X-Subscription-Token`) or You.com (`X-API-Key`)
  would reach that host through a host's client set to follow redirects. A Bearer key
  (DeepSeek, Perplexity, Synthetic, Tavily, Tabstack) was dropped. `self._http.request` turns
  redirects off per request, whatever the client says, so an adapter needs nothing for it.
- An answer below 400 is not always a success. A 3xx that is not followed reaches the adapter.
  Where the result list is optional, its JSON body read as an empty answer (Brave's `web`,
  You.com search's `results`) or as a page error (You.com fetch's `contents`); where it is
  required, the adapter already raised `unexpected_response`. `self._http.request` raises
  `http_error` for it, so an adapter's own check stays `status >= 400`. The conformance suite
  sends every provider a 302 with a JSON object, through a client set to follow redirects.

### 2026-11-23, SearchApi (any-search)

The second provider that returns a scraped Google results page, after Serply, with the key as a
Bearer token and the query in the URL.

- A documentation can call a parameter phased out while the API still honors it: SearchApi's docs
  say Google retired `num` in September 2025 and a page is 10, but `num=3` answered a page of 3
  and paged by 3 on 2026-11-23, and `num=20` was answered as 10. Send it and cut the hits to the
  count as well, so the adapter is right whichever way the provider goes, and say in the docstring
  what was checked and when.
- "Found nothing" can come two ways from one provider: a 200 with an `error` sentence (`Google
  didn't return any results.`) and no `organic_results`, or a 200 with no `error` and no
  `organic_results` when Google answered only other sections (`top_stories` for a news query
  under `time_period=last_day`). Treat the list's absence as no hits either way, and leave the
  sentence in `raw`; read `search_metadata.status` for whether the call itself succeeded.
- A no-results search can be slow: the `empty` fixture, a `site:` query on a domain that does not
  exist, timed out once at the default 15 seconds and recorded on the next try.
- A result's `link` can be a Google redirect (`https://www.google.com/goto?url=...`) with a
  `link_token` beside it. It is a URL with a host, but its `url` is usually a session token no
  caller can fetch, so the hit is dropped and the count filled from the next ones, as Serply's
  opaque tokens are; when `url` decodes to an http(s) URL, that URL is the hit. `snippet` is
  missing from some results (a rich-snippet-only result), never null, so an absent one is an
  empty snippet and a null one is `unexpected_response`, like an `error` that is not a sentence.
- Error bodies are one sentence in `error` at every status, and the sentence quotes the request
  (`Unsupported value `zz` in time_period parameter.`), so the tag comes from the status; only a
  400 and a 401 were seen live, 402 and 429 are from the pricing page's terms.
- Fixture recipes: `normal` with `--max-results 3`, which keeps the page small (2 organic results
  came back beside other sections); `empty` with `site:` set to a domain that does not exist;
  `error` with a made-up key, a 401.

### 2026-11-24, Keenable (any-search)

The first provider whose key is optional: with one it calls `/v1/search`, without one
`/v1/search/public`, limited per IP address.

- An optional key is `requires_api_key=False` with `env_key` still naming the SDK's variable, so a
  key in the environment is used and a missing one is not an error. The adapter picks the
  endpoint by whether a key resolved (`self._api_key`). An explicit empty key means none and never
  falls back to the environment, which is how otari passes a tool without one. Test the keyless
  path in the provider's own tests: the conformance suite sets every `env_key`, so it covers only
  the keyed one, and a keyless recording can stand for a keyed answer of the same shape, said
  beside the scenarios.
- In otari, a deployment tool on such a provider may run without a key, while an organization key
  on any provider with an address of its own must carry one, so an organization's calls never run
  keyless from the gateway's address. Both read the metadata, so the adapter needs nothing for it.
- A keyless endpoint can require a header naming the calling app, which the provider logs with
  each query (`X-Keenable-Title`). Send the library's name by default, not the SDK's own
  (`Keenable SDK`) or the host's, and offer the header as an operator-only option: its value can
  name the deployment. Send it on keyed calls too when the SDK does.
- A limit per IP address is shared with every other caller from that address, a CI runner's other
  jobs included. `EXPECTED`'s `shared_limits` names the tags of such a 429, which skip a live
  test, and `_require_key` skips a provider only for a key it requires.
- A field the provider documents as deprecated can still be sent, empty: Keenable's
  `description` is always `""`, so the snippet reads `snippet` first and falls back to it.
- Fixture recipes, all keyless but the error: `normal` with `--max-results 3` and
  `snippet_max_length=180`, since snippets run to thousands of characters; `empty` with `site`
  set to a domain that does not exist; `error` with a made-up key, a 401 `invalid_api_key`.

### 2026-11-12, SpecStream (any-search)

The first provider that takes the same parameters as a GET's query string or a POST's body.

- When a provider documents both, send the one that keeps the query out of the URL: SpecStream's
  `POST /v1/web-search` takes the GET's parameters as a JSON body, at the same price, so
  `query_in_url` stays false and no real-socket log test is owed.
- A provider can answer with every result it read unless a count is sent, and charge by the
  results returned: SpecStream without `num`. Send a count on every call, the provider's first
  price block (10) when the caller passes none, so a search without `max_results` costs what one
  search is listed at.
- A provider can report its cost and still sell tiers: SpecStream's `speed` is `cost_tier`, and
  `reports_cost` is set, since `price_usd` is in every successful answer, a search with no
  results included, at 0.
- A provider with a query operator for dates and none for recency: `after:` as DeepSeek's, here
  holding on every result, with an undated result kept, since nothing says it falls outside.
- Two date fields can mean different precisions: `published_at`, a news item's time, wins over
  `published`, a day; both are checked when sent.
- Fixture recipes: `error` with a made-up key (`invalid_token`, 401); `normal` recorded with
  `technology news`; `empty` with a nonsense query and `site:` on a domain that does not exist,
  since a nonsense query alone still returns loose matches.

### 2026-11-25, Firecrawl (both libraries)

The first fetch provider that reports where it found the page.

- A fetch provider can say where a redirect led: Firecrawl's `metadata.url` is the page's URL after
  redirects (`http://python.org/downloads` came back as `https://www.python.org/downloads/`), so
  `reports_final_url` is true. The adapter then requires that field rather than falling back to
  the URL asked for, since a fallback would hide a redirect from the host that checks it.
- Check the billing page before marking a cost tier. Firecrawl's `proxy: enhanced` was once billed
  above `basic`; its billing page, read 2026-11-25, bills both alike, and its documentation marks
  `proxy` deprecated, so the option is left out. Firecrawl has no string option whose values carry
  their own price, so neither adapter has a cost tier.
- A charge per page can hang on an option no `enum` describes. Firecrawl parses every page of a
  PDF at 1 credit each by default, and `parsers`, an array, is how to cap it. The adapter sends
  `[{"type": "pdf", "maxPages": 100}, "image"]` unless passed: Firecrawl's own default with a
  ceiling, since `parsers: []`, the cheapest, returns a PDF as base64 with no text. 100 is the page
  limit Otari's own fetch applies to a PDF. Keep `"image"` in the list: a list turns off the
  parsers it leaves out. `parsers` is `operator_only`, since a safe default does not stop a request
  from replacing it and lifting the cost ceiling.
- An SDK can tag every call with its own name: firecrawl-py sends `origin: python-sdk@<version>`.
  The adapters send neither `origin` nor Firecrawl's `integration` field, so the request body holds
  only what the search or the scrape needs.
- Capture what an SDK puts on the wire, not what its request model declares. firecrawl-py 4.57.0's
  models carry `limit: 5` and `timeout: 300000`, but `search("q")` sends only the query and
  `origin`, so Firecrawl applies its own defaults (10 results, 60 seconds). The adapter sends
  `limit` only for `max_results` and cuts the hits to 10 otherwise.
- An option that holds other options can carry a charge per page: `scrapeOptions` scrapes every
  result at 1 credit each, plus whatever its own options cost, so it is `operator_only`. Its
  `formats` always include `markdown`, and missing or empty `formats` become `["markdown"]`, since
  Firecrawl scrapes nothing without one.
- An option passed through whole carries every charge the provider hangs on it. `scrapeOptions`
  takes paid formats and checks (JSON, question, highlights, audio, video, `redactPII`,
  `checkPromptInjection`) at 4 credits a page each, which add up, and a PDF at 1 credit a page, so
  one search can cost hundreds of times a plain one. Keep the whole option from a tenant rather
  than refuse its paid keys one by one, so a key the provider adds is covered too.
- A ceiling the adapter sets on one endpoint is owed wherever the same charge is reached. Search
  scrapes a PDF through `scrapeOptions` as the scrape endpoint does, so the search adapter gives a
  `scrapeOptions` that passes no `parsers` the same `[{"type": "pdf", "maxPages": 100}, "image"]`.
  Checked live on 2026-11-30: a search that scraped one 47-page PDF with `maxPages: 2` parsed 2
  pages and cost 4 credits, 2 for the search and 2 for the pages. On 2026-12-01 a scraped search
  that passed no `parsers` went out with that list and cost 3 credits for one web page.
- A flag the envelope trusts is required: an answer without `success` raises
  `unexpected_response` rather than passing as a success.
- An error inside a 200 can cover some failures only. Firecrawl answers a host that does not
  resolve with a 200, `success: false` and `code` `SCRAPE_DNS_RESOLUTION_ERROR`, but a page it
  cannot read (a zero-byte file, HTML with an empty body or a title only, a private address) with a
  500 `SCRAPE_ALL_ENGINES_FAILED`. Its `code` values, as seen live, are short and fixed, so they are tags;
  its `error` sentences quote the host, a signup link or the request, so they are not read. A 401,
  402 and 429 carry no code and are tagged by status.
- A page with no text is usually a failure: only a site's error status with an empty body came back
  as an empty page, with the site's status in `metadata.statusCode`. A missing page comes back as
  the site's 404 page (`missing_page="site_page"`).
- A field can be a string or a list: Firecrawl documents `metadata.title` as either, so the adapter
  takes the first title of a list.
- A source option can move every result out of the field the envelope reads: Firecrawl's
  `sources: ["news"]` answers in `data.news` with no `data.web`, and `alexandria` answers with data
  tools in `data.tools`. `sources` is left out, so a search always reads web results.
- Highlights, Firecrawl's default, make `description` a set of passages of up to a few thousand
  characters; `highlights: false` returns the site's own description. A `tbs` Firecrawl does not
  take (`qdr:zz`) is answered as if none was set.
- A call without a key can be refused by where it comes from: Firecrawl answered a keyless call from
  the recording machine with a 403 saying the address looked like a proxy, so `requires_api_key`
  stays true.
- Fixture recipes: search `normal` with `--max-results 2 -o highlights=false`, which keeps it small;
  `empty` with `includeDomains` naming a domain that does not exist; `error` with a made-up `fc-`
  key, a 401. Fetch `normal` with `https://example.com/`; `empty` with
  `https://httpbin.org/status/500`; `in_body_error` with a host that does not resolve; `error` with
  a made-up key.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.