Skip to main content
TinyAnswer searches the web and returns an answer with citations in one JSON response. Use it for focused questions when you need an answer and its sources rather than a list of search results.
Try TinyAnswer in the playground.

Before You Start

1

Get your API key

Create a personal API key at agent.tinyfish.ai/api-keys. TinyAnswer must be enabled for your account. Team API keys are not supported.
2

Store it in your environment

All requests require the X-API-Key header. See Authentication for setup and troubleshooting.

Your First Request

The Python example requires pip install httpx. The TypeScript example uses Node.js built-in fetch.

What Success Looks Like

Successful requests return HTTP 200. This response is illustrative; answers and citations depend on the question and available sources.
answer is plain text. Each [n] marker cites citations[n-1], numbered from [1] in order of first use. When no source supports the answer, citations is empty; treat that answer as unsourced.

When to Use TinyAnswer vs the Other APIs

  • Use TinyAnswer for a focused answer with web citations.
  • Use TinyResearch for broader synthesis across multiple sources.
  • Use TinySearch for ranked links, snippets, and source discovery.
  • Use TinyFetch when you know which pages to extract.
  • Use TinyAgent when TinyFish should interact with websites.
  • Use TinyBrowser when you need direct Playwright or CDP control.

TinyAnswer reference

Request fields, response fields, errors, and limits

TinyAnswer examples

Current facts, company information, and source handling