Skip to main content
POST /v1/search returns ranked web results for a query, with the text of the best passages of each page, the publish date and the licence where one applies. It is built for an agent that reads the answer, so the default answer is compact: about half the tokens of the full object, with the same results, the same order and the same bill. Base URL: https://api.styne.ai. Every request carries Authorization: Bearer $STYNE_API_KEY. The key is the one you use for sandboxes and browsers; see API keys.

Quick start

The answer:
The ids and numbers are an illustration; the field names are the service’s.

Request fields

Only query is required. A request can carry an Idempotency-Key header; a replay within 24 hours returns the same answer and is not billed again.

Response fields

With "format": "full" each result also carries domain, language, score, passages, tokens, crawled_at, rights and the date evidence. The full schema is in the OpenAPI document.

Limits

An over-limit request answers 429 with Retry-After. See Errors and Limits.

Pricing

Search is billed per started block of 10 results, by the mode served: Eleven to twenty results are two blocks. An error, a timeout, an empty answer and a partial answer are never billed. It is billed from your prepaid credit, which never expires; an account with no credit gets 402. See Plans and billing.