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
X-API-Key header. See Authentication for setup and troubleshooting.
Your First Request
pip install httpx. The TypeScript example uses Node.js built-in fetch.
What Success Looks Like
Successful requests return HTTP200. 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.
Read Next
TinyAnswer reference
Request fields, response fields, errors, and limits
TinyAnswer examples
Current facts, company information, and source handling