Web

Searches the web and returns ranked results. Optional site scopes the query to one domain; scrape: true returns each result's main content as markdown. Synchronous. Charges credits on success.

post/web/search

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

object required
query, string required

Search query.

count, integer

Number of results (1–20, default 5).

site, string

Optional domain to scope the search to, e.g. "stripe.com".

scrape, boolean

Scrape each result's page content into markdown (default false).

Response

OK

object required
results, object[]
provider, string

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    3 more changes in this revision