> ## 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.

# Introduction

> Search the web, images, news and maps over a public JSON API. No API key.

The Searchia API is the one the website itself uses. Send a `POST` with a JSON body and get results back as JSON.

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

> [card] [Search](https://docs.searchia.com/api/search.md)
>
> `POST /api` for web, images, news and maps results.

> [card] [Suggest](https://docs.searchia.com/api/suggest.md)
>
> `GET /suggest` for autocomplete.

## Base URL

```text theme={null}
https://www.searchia.com
```

## Authentication

None. There are no API keys and no accounts. Requests are rate-limited per IP address instead.

## Rate limits

| Endpoint | Limit |
| - | - |
| `POST /api` | 30 requests per minute |
| `GET /suggest` | 120 requests per minute |

When you go over, the API answers `429` with a `Retry-After` header. Wait that many seconds before you try again.

## CORS

`POST /api` sends `Access-Control-Allow-Origin: *`, so you can call it from a browser on any site. `Retry-After` is exposed to scripts, so browser clients can read it on a `429`.

## Errors

Errors come back as JSON with an `error` string and a matching status code.

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

| Status | Meaning |
| - | - |
| `400` | Bad body, missing `query`, unknown `type`, or an invalid `page`, `safesearch`, `country`, `exact` or `time` |
| `429` | Rate limit exceeded for your IP. Retry after the `Retry-After` header |
| `502` | The upstream search failed |
| `503` | A required secret or rate limiter is unavailable |

## Pagination

Start at `page: 0`. If the response has `more_results_available: true`, request `page: 1`, then `2`, and so on. When it is `false`, there is nothing more to fetch.

## Prefer a terminal?

The [`searchia` CLI](https://docs.searchia.com/cli) wraps this API, with plain-text, JSON and URL-only output.


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