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

# TinySearch API Reference

> Complete reference for the TinySearch endpoints

All TinySearch endpoints are documented across the pages below. All requests require the `X-API-Key` header. See [Authentication](https://docs.tinyfish.ai/authentication.md). For wallet balance and top-ups, see [Wallet](https://docs.tinyfish.ai/wallet.md).

Each page covers one resource end to end: every parameter, every response field, and the SDK call. Start with **Search** if you are running queries; use **Runs** to review past searches.

> [card] [Search](https://docs.tinyfish.ai/tinysearch/api/search.md)
>
> Search the web, news, or research papers with filters and pagination

> [card] [Runs](https://docs.tinyfish.ai/tinysearch/api/runs.md)
>
> List your past searches with status, result counts, and request IDs

## Error Codes

| Status | Meaning |
| - | - |
| `400` | Invalid request — missing `query` parameter or bad parameter value |
| `401` | Missing or invalid API key |
| `402` | Daily free allowance used and wallet balance is zero or below (`INSUFFICIENT_CREDITS`) — add funds at the [wallet page](https://agent.tinyfish.ai/wallet) or wait for the daily reset (when wallet spending is enabled) |
| `403` | Search request forbidden by the upstream service |
| `404` | TinySearch is not available |
| `429` | Per-minute limit exceeded, or daily free allowance exhausted with wallet spending disabled (`RATE_LIMIT_EXCEEDED`) |
| `500` | Internal server error |
| `503` | Search service or rate limiting unavailable — retry with backoff |

## Rate Limits

Limits apply per person, or per [organization](https://docs.tinyfish.ai/key-concepts/organizations.md) when you work for one, measured across all requests.

| Plan | Rate limit |
| - | - |
| Hobby (free) | 30 requests / minute |
| Builder | 150 requests / minute |

An organization's limit comes from its contract. When the limit is exceeded, the API returns `HTTP 429`.

***

## Billing

Search is free on the Hobby plan, up to 12,000 requests per day; the allowance resets at 00:00 UTC. On the Builder plan, each query costs \$0.005. Select Builder in your wallet to move onto it; Pricing and limits in the wallet lists the current rates. When wallet spending is enabled, requests beyond the allowance need a positive wallet balance: with a balance of zero or below the API returns `HTTP 402` with code `INSUFFICIENT_CREDITS` until you add funds or the allowance resets. After a top-up, allow a few seconds for the balance to apply. When wallet spending is disabled, exhausting the allowance returns `HTTP 429` with code `RATE_LIMIT_EXCEEDED` and `details.reason="free_allowance_exhausted"`. Wait until 00:00 UTC or follow the wallet link in the message to view options to increase your limits. Adding funds alone does not enable wallet spending; do not retry this daily limit with short backoff.

## Related

> [card] [TinySearch overview](https://docs.tinyfish.ai/tinysearch.md)
>
> First request, how-tos, and explanations

> [card] [Authentication](https://docs.tinyfish.ai/authentication.md)
>
> API key setup and troubleshooting

> [card] [Error Codes](https://docs.tinyfish.ai/error-codes.md)
>
> Full list of API error codes


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