DocsResearchAPI reference

ResearchAnything API

ResearchAnything's programmatic surface is the Platform API: two query endpoints, authenticated with an ra- key from the API Console. This page sums it up in ResearchAnything's terms and points to the full reference.

01At a glance

ItemValue
Base URLhttps://researchanything.ai
EndpointsPOST /api/query returns the finished answer as JSON. POST /api/query/stream streams the run as Server-Sent Events.
AuthenticationAuthorization: Bearer ra-… or X-Api-Key: ra-…
Getting a keyAny ResearchAnything account can create keys in the API Console at researchanything.ai/console/keys.
Request{"query": "…"}, 1 to 2,000 characters.
Model and sourcesRA-Lite, with sources chosen automatically from the web and academic databases.
LimitsOne research run per call, from your plan's monthly allowance.

02A request

cURL
curl https://researchanything.ai/api/query \
  -H "Authorization: Bearer $ESSARION_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "What were the main findings of recent trials of GLP-1 drugs for heart failure?"}'

The response carries request_id, status, answer (Markdown with [S1]-style source markers), sources, usage and errors. See Queries for every field and Streaming for the event stream.

03How API runs relate to the app

04What is not part of the API

The ResearchAnything web app talks to its own endpoints under /api/v1/: starting and following research runs, sources, projects, documents, Cite and the library. Those endpoints accept only the browser session, are built for the app's own pages, and change with it. They are not an integration surface and are not documented here. Earlier versions of this page listed some of them.

There are no webhooks, and no API access to Sourcipedia or Essarion Science.

05Full reference

Can’t find what you need?

Write to us and a person will answer.