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

> ## Agent Instructions
> Searchia's JSON API needs no API key and no account. Call POST https://www.searchia.com/api with a JSON body such as {"query":"…","type":"web"}. It is rate-limited to 30 requests per minute per IP and answers 429 with a Retry-After header when over the limit. For terminals and agents, the searchia CLI (npx searchia) wraps the same API.

# Search

> Search the web, images, news or maps.

## Body

**query** `string` *required*

The search query. [Bangs](https://docs.searchia.com/guides/bangs.md) and [search operators](https://docs.searchia.com/guides/search-operators.md) work here as on the website.

**type** `string` (default: web)

One of `web`, `images`, `news`, `maps`. `videos` is switched off for now and answers `400`.

**page** `integer` (default: 0)

The result page. `0` is the first page; increment it to paginate. Capped at `100`.

**safesearch** `string` (default: moderate)

One of `off`, `moderate`, `strict`. For now `moderate` and `strict` filter the same way.

**country** `string` (default: all)

`all` or a 2-letter ISO country code, such as `us` or `de`.

**time** `string` (default: any)

`day`, `week`, `month` or `year` returns only pages from that recent period. Applies to web results only for now.

**exact** `boolean` (default: false)

`true` searches the query as typed, without spelling correction. Has no effect for now: queries are always searched as typed.

**engine** `string` (default: brave)

`brave` or `exa`, when the server has more than one engine on. An engine the server has switched off falls back to the default.

## Response

Every successful response has `query`, `type`, `page`, `engine` and `more_results_available`, plus `results`. Its shape depends on `type`.

**more\_results\_available** `boolean`

`true` when there is another page. See [Pagination](https://docs.searchia.com/api/introduction.md#pagination).

**engine** `string`

The engine that answered: `brave`, `exa`, or `mapbox` for maps.

**results** `object | array`

For `web`, an object grouping result kinds. For `images`, `news` and `maps`, an array.

### Web

`results` groups the different result kinds. A field is `null` when the query has none.

**results.web.results** `array`

The main web results, each with `title`, `url`, `description`, `age`, `meta_url`, and optionally `profile`, `thumbnail`, `deep_results` and `cluster`.

**results.rich** `array`

Instant answers, such as calculator, weather, currency, crypto, time zones and unit conversions. Each is tagged with a `subtype`. Absent when the query has none.

**results.infobox** `object | null`

Searchia's own infobox. When one of the top three results is a Wikipedia article about the query, it holds that article's summary and picture from Wikipedia and facts from Wikidata.

`source` names the article and the licence of the text (CC BY-SA 4.0): keep that credit when you show the text. `images[].src` is a path on [www.searchia.com](http://www.searchia.com), `images[].original` the file at Wikimedia. When Wikidata did not answer in time, `attributes` and `profiles` are empty and `facts_url` is a path that returns them as JSON.

**results.mixed** `array`

The upstream order of the main column.

**spelling** `object | null`

On page 0, set when the engine searched a corrected query instead. In `parts`, `true` marks the changed words.

**related** `array | null`

On page 0, up to 8 related searches. In `parts`, `true` marks the added words.

Results come from Brave. When Brave can't answer and Exa steps in (`engine` is then `exa`), only `web` is filled: the other groups, `spelling` and `related` stay empty.

### Images, news and maps

`results` is an array. Images carry `thumbnail`, `source` and `properties` (`url`, `width`, `height`). News carries `description`, `age` and `is_live`. Maps returns Mapbox place suggestions with `name`, `place`, `type` and `coords` as `[longitude, latitude]`; `page` and `engine` are ignored.

```bash curl theme={null}
curl -X POST https://www.searchia.com/api \
  -H "Content-Type: application/json" \
  -d '{"query":"searchia","type":"web","page":0}'
```

```javascript JavaScript theme={null}
const res = await fetch("https://www.searchia.com/api", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ query: "searchia", type: "web", page: 0 }),
});

const data = await res.json();
console.log(data.results.web.results);
```

```python Python theme={null}
import requests

res = requests.post(
    "https://www.searchia.com/api",
    json={"query": "searchia", "type": "web", "page": 0},
)
print(res.json()["results"]["web"]["results"])
```

```json Web theme={null}
{
  "query": "searchia",
  "type": "web",
  "page": 0,
  "engine": "brave",
  "safesearch": "moderate",
  "country": "all",
  "more_results_available": true,
  "spelling": null,
  "related": [{ "query": "searchia api", "parts": [[false, "searchia"], [true, "api"]] }],
  "results": {
    "web": {
      "results": [
        {
          "title": "Searchia",
          "url": "https://www.searchia.com/",
          "description": "Fast, privacy-friendly search without AI slop.",
          "age": null,
          "meta_url": { "hostname": "www.searchia.com", "favicon": "https://…" }
        }
      ]
    },
    "news": null,
    "videos": null,
    "discussions": null,
    "faq": null,
    "infobox": null,
    "locations": null,
    "mixed": [{ "type": "web", "index": 0, "all": false }]
  }
}
```

```json Images theme={null}
{
  "query": "teto",
  "type": "images",
  "page": 0,
  "engine": "brave",
  "more_results_available": true,
  "results": [
    {
      "title": "…",
      "url": "https://…",
      "source": "…",
      "thumbnail": "https://…",
      "properties": { "url": "https://…", "width": 1200, "height": 800 },
      "meta_url": { "hostname": "…", "favicon": "…" }
    }
  ]
}
```

```json Maps theme={null}
{
  "query": "eiffel tower",
  "type": "maps",
  "page": 0,
  "engine": "mapbox",
  "more_results_available": false,
  "results": [
    {
      "id": "…",
      "name": "Eiffel Tower",
      "place": "Paris, France",
      "full": "…",
      "type": "poi",
      "coords": [2.2945, 48.8584]
    }
  ]
}
```

```json 400 theme={null}
{ "error": "missing required field: query" }
```


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