Search Medical Papers

Search medical and biomedical papers with a natural-language question. Federates PubMed, PMC full-text, ClinicalTrials.gov, and Semantic Scholar, then synthesizes a cited answer.

stream=true returns text/event-stream with tool_use, tool_result_summary, text_delta, and done event types.

Authentication

AuthorizationBearer
Bearer token authentication using API key

Headers

X-Organization-IDstringRequired

Request

This endpoint expects an object.
questionstringRequired3-2000 characters

Natural-language question.

max_sourcesintegerOptional1-25Defaults to 10
Target number of cited sources in the final answer.
include_trialsbooleanOptionalDefaults to true
Whether the agent may call ClinicalTrials.gov.
recency_yearsinteger or nullOptional1-50Defaults to 10
Prefer evidence within the last N years where the question allows.
streambooleanOptionalDefaults to false

If true, response is text/event-stream; otherwise JSON.

Response

Synthesized answer with cited sources. Returns JSON by default; when stream=true the response is text/event-stream with tool_use, tool_result_summary, text_delta, and done events.

domainstring
The scientific domain, e.g. 'medical'.
answerstring
Synthesized answer with inline citations.
sourceslist of objects
gapslist of strings
Things the agent could not find or verify.
tool_callsintegerDefaults to 0
Number of tool calls the agent made.
latency_msintegerDefaults to 0

End-to-end wall-clock latency.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error