---
title: "Search the web"
method: GET
path: "/v1/search"
tags: ["search"]
---

# Search the web

`GET /v1/search`

## Request

- Base URL: `https://api.lithtrix.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.lithtrix.ai/v1/search`
- Auth: none declared

Web search with HTML-free snippets and credibility scores. Primary provider is Brave; when configured, Tavily may answer if Brave is unavailable (see `provider_used`). Requires `Authorization: Bearer ltx_...`. Brave hits may be cached in Redis (`cached: true`); Tavily responses are not cached. Logs usage and returns usage quota.

## Query parameters

- `q` string, required: Search query string (1–500 characters).
- `num_results` integer: Number of search results to return (1–20, default 10).

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- SearchSuccessResponse: Successful search response including usage counters.
  - `status` 'success'
  - `query` string, required
  - `results` SearchResultItem[], required
    - `title` string, required
    - `url` string, required
    - `snippet` string, required
    - `source` string, required
    - `credibility_score` number, required
    - `published_date` string, nullable
  - `cached` boolean
  - `response_time_ms` integer, required
  - `usage` UsageInfo, required: Usage snapshot for the authenticated agent.
    - `calls_total` integer, required
    - `calls_remaining` integer, nullable
    - `over_limit` boolean
    - `upgrade_url` string
    - `search_quota_period` 'lifetime' | 'monthly' | 'trial_credits' | 'rolling_30d', nullable
    - `search_calls_limit` integer, nullable
    - `search_overage_rate_per_call` number, nullable
    - `credits_remaining_usd` string
  - `provider_used` 'brave' | 'tavily'
  - `_lithtrix` LithtrixPropagationBlock, required: Passive discovery URLs included on high-traffic API responses.
    - `served_by` string, required
    - `register_url` string, required
    - `discover_url` string, required
    - `guide_url` string, required
    - `feedback_url` string, required
    - `terms_url` string, required
    - `terms_version` string, required
    - `browse_url` string, required
    - `search_id` string, nullable
    - `community` CommunityBlock: Founding-period community progress (D71) — sibling of ``usage`` under ``_lithtrix``.
      - `agents_total` integer, required
      - `agents_active_30d` integer, required
      - `agents_target` integer
      - `percent_to_target` number, required
      - `founding_period` boolean, required

## Other responses

- `422`: Validation Error
- `502`: Bad Gateway

---

[API](https://skmtc.dev/lithtrix/apis/lithtrix-api.md) · [All operations](https://skmtc.dev/lithtrix/apis/lithtrix-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lithtrix/apis/lithtrix-api/revisions/be5de51bf4f8?raw)
