Skip to main content
The Answer API searches across web, academic, and financial sources, then uses AI to generate a readable response with citations. You get a finished answer instead of raw search results.

Ask a question

Common options

Search and AI are billed separately - the cost field breaks down both. Use data_max_price to cap search cost and fast_mode for lower latency.

Streaming

Enable streaming to receive the answer progressively. The stream sends search results first, then content chunks, then metadata.
Chunk types: search_results (sources, streamed first), content (partial answer text), metadata (final costs, tokens, full results), done, error.

Structured output

Pass a JSON schema in structured_output to get a parseable object back instead of prose:
Keep schemas shallow, mark essential fields required, add description fields to guide the AI, and use maxItems to bound arrays.

Response format

Without structured_output, contents is a string. When you pass a structured_output schema, contents is instead a structured object matching that schema - in Python, check with isinstance(response.contents, dict).

Next steps

API reference

Complete parameter documentation

Python SDK

Python integration

TypeScript SDK

TypeScript integration

Integrations

LangChain, LlamaIndex, and more