> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Andi AI Search

> Web search API for agents with adjustable effort, optional full page content, a page fetch/extract endpoint and curated topic news feeds.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/andi.svg?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=dfe14ef9ecf48acb0732770f5f84a0d9)

[Web Catalog · Search](https://docs.webrouter.net/data-apis.md?category=search)

Needs&#x20;

`ANDI_API_KEY`

Endpoints

4

Auth

Key in header

[Vendor docs](https://docs.andiai.com/api-reference/introduction)

&#x20;·&#x20;

[Pricing](https://docs.andiai.com/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `ANDI_API_KEY` | required | an Andi API key (console.andiai.com). Sent in the x-api-key header. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Outcome-based pricing: each call is charged for the work it did plus a per-token rate on returned content. Every JSON response reports its cost in metrics.cost\_dollars (frontmatter cost\_dollars with format=context). An empty balance answers 402.
* Rate limits are per key, per endpoint, per second, set in the console; responses carry X-RateLimit-\* headers and 429 carries Retry-After.

## Endpoints

GET

Search the web

Ranked web results for a query, with optional extracts or full page text.

[Open](#andi-search)

GET

Fetch and extract a web page

Clean title, article text and metadata of one page, as JSON or LLM-ready markdown.

[Open](#andi-fetch)

GET

List news feed topics

Every topic available to andi.news.feed, with formats and recent story counts.

[Open](#andi-news-topics)

GET

Get a curated topic news feed

Ranked recent articles for a fixed topic, optionally filtered by keyword, with an AI brief.

[Open](#andi-news-feed)

### Search the web

GET

`/api/v1/search`

`andi.search`

Ranked web results for a query, with optional extracts or full page text.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `q`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Query; operators such as site:, filetype:, intitle: are parsed unless parseOperators=false. A JSON array of up to 5 queries runs a multi-query search.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1 to 100. Omitted: 10 to 40 picked to fit the query (20 with offset or multi-query).
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to skip, default 0.
      </td>
    </tr>

    <tr><td>`searchMode`</td><td>string</td><td>query</td><td>Effort: auto (default) picks per query; low-cost caps the cost. One of `auto`, `low-cost`, `fast`, `balanced`, `deep`, `exhaustive`</td></tr>
    <tr><td>`effort`</td><td>string</td><td>query</td><td>Thoroughness dial, independent of searchMode. One of `low`, `medium`, `high`, `max`</td></tr>

    <tr>
      <td>
        `intent`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Force an intent (search, news, video, images, weather, wiki, code, recipe, place, time...); none disables detection.
      </td>
    </tr>

    <tr><td>`format`</td><td>string</td><td>query</td><td>json (default) or context (markdown for an LLM). One of `json`, `context`</td></tr>

    <tr>
      <td>
        `extracts`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include passages from result pages (no extra cost).
      </td>
    </tr>

    <tr><td>`content`</td><td>string</td><td>query</td><td>Full page text per result: true (head of page), focused (query-relevant parts) or false (default). One of `true`, `focused`, `false`</td></tr>

    <tr>
      <td>
        `maxContentLength`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Character cap of page content per result, when content is on.
      </td>
    </tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO 3166-1 alpha-2 locale bias, default US.
      </td>
    </tr>

    <tr>
      <td>
        `sourceCountry`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO 3166-1 alpha-2: only sources from this country.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language tag such as en or zh-Hans; detected when omitted.
      </td>
    </tr>

    <tr><td>`dateRange`</td><td>string</td><td>query</td><td>Relative date filter. One of `day`, `week`, `month`, `year`, `24h`, `7d`, `30d`, `90d`, `1y`</td></tr>

    <tr>
      <td>
        `dateFrom`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Published on or after, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `dateTo`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Published on or before, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `includeDomains`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated domains to restrict to; wildcards like \*.example.com allowed.
      </td>
    </tr>

    <tr>
      <td>
        `excludeDomains`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated domains to exclude; wildcards allowed.
      </td>
    </tr>

    <tr><td>`safe`</td><td>string</td><td>query</td><td>Safe search, default off. One of `off`, `moderate`, `strict`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.andiai.com/api-reference/search-the-web) · Same job: [Apify](https://docs.webrouter.net/data-apis/apify.md#apify-store-search), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-search), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-videos-search), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-web-search), [Crawl4AI Cloud](https://docs.webrouter.net/data-apis/crawl4ai.md#crawl4ai-search), [Crustdata](https://docs.webrouter.net/data-apis/crustdata.md#crustdata-web-search)

> [!NOTE]
>
> * Full content is charged per token: cap it with maxContentLength and limit. extracts are free.
> * POST /api/v1/search takes the same parameters as a JSON body (and location fields); not in this entry.

### Fetch and extract a web page

GET

`/api/v1/fetch`

`andi.fetch`

Clean title, article text and metadata of one page, as JSON or LLM-ready markdown.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `url`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Full http(s) URL.
      </td>
    </tr>

    <tr><td>`format`</td><td>string</td><td>query</td><td>json (default) or context (markdown). One of `json`, `context`</td></tr>
    <tr><td>`effort`</td><td>string</td><td>query</td><td>How hard to try; max helps slow or client-rendered pages. One of `low`, `medium`, `high`, `max`</td></tr>

    <tr>
      <td>
        `maxContentLength`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Content characters, 1 to 200000, default 100000.
      </td>
    </tr>

    <tr>
      <td>
        `query`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Scope extraction to this query; adds query\_extracts and query\_snippet.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.andiai.com/api-reference/fetch-a-web-page) · Same job: [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-scrape), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-llm-context), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-fetch), [cloro](https://docs.webrouter.net/data-apis/cloro.md#cloro-google-product), [Context7](https://docs.webrouter.net/data-apis/context7.md#context7-page-fetch), [Crawl4AI Cloud](https://docs.webrouter.net/data-apis/crawl4ai.md#crawl4ai-scrape)

> [!NOTE]
>
> * \$0.001 per request plus \$0.05 per 1M tokens of content. 422 and 503 answers are free.

### List news feed topics

GET

`/api/v1/news`

`andi.news.topics`

Every topic available to andi.news.feed, with formats and recent story counts.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`format`</td><td>string</td><td>query</td><td>json (default) or html. One of `json`, `html`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.andiai.com/api-reference/list-news-topics) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-news-search), [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-news), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-google-news), [Benzinga](https://docs.webrouter.net/data-apis/benzinga.md#benzinga-news), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-news-search), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-news-search)

```python Python theme={null}
router.call_data_api("andi.news.topics")
```

```text MCP theme={null}
call_data_api(endpoint="andi.news.topics")
```

> [!NOTE]
>
> * Free.

### Get a curated topic news feed

GET

`/api/v1/news/{topic}`

`andi.news.feed`

Ranked recent articles for a fixed topic, optionally filtered by keyword, with an AI brief.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`topic` required</td><td>string</td><td>path</td><td>Topic slug. One of `technology`, `business`, `finance`, `politics`, `sports`, `health`, `science`, `world`, `entertainment`, `us`, `europe`, `uk`, `asia`, `middle-east`, `africa`, `latin-america`, `australia`, `programming`, `startups`, `media`, `crypto`, `legal`, `space`, `top`, `hn-frontpage`, `ai-news`, `tech-news`</td></tr>

    <tr>
      <td>
        `q`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Keyword filter within the topic, up to 200 characters (no brief is returned with q).
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1 to 50, default 20.
      </td>
    </tr>

    <tr>
      <td>
        `hours`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Recency window in hours, 1 to 336, default 48.
      </td>
    </tr>

    <tr>
      <td>
        `lang`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language code, or all. Default en.
      </td>
    </tr>

    <tr><td>`format`</td><td>string</td><td>query</td><td>json (default), context (markdown) or rss. embed and ticker are HTML widgets. One of `json`, `context`, `rss`, `embed`, `ticker`</td></tr>

    <tr>
      <td>
        `summary`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        false drops the topic brief.
      </td>
    </tr>

    <tr>
      <td>
        `extracts`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include stored passages per article.
      </td>
    </tr>

    <tr>
      <td>
        `content`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include stored full article text (billed per token).
      </td>
    </tr>

    <tr>
      <td>
        `maxContentLength`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Character cap of content per article.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.andiai.com/api-reference/get-a-curated-news-feed) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-news-search), [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-news), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-google-news), [Benzinga](https://docs.webrouter.net/data-apis/benzinga.md#benzinga-news), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-news-search), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-news-search)

> [!NOTE]
>
> * results are ranked by relevance; news holds the same articles newest first. Charged for ranking plus per token of content.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.