Skip to main content

Arca Research API

Search public sources through one endpoint. Your application sends a query and gets back ranked, cited results from the same sources and retrieval that Arca's research chat uses. It is read-only and covers public sources only: it never sees an organization's documents.

Searches combine Arca-maintained indexed records with live retrieval from public sources, including regulators' APIs, literature and legal sources. Results use consistent fields and link back to the source page.

Search endpoint: POST https://app.arca.inc/api/research/search

This API is separate from the HTTP API. It does not run chats, and it uses its own keys rather than personal access tokens.

Get a key​

Organization admins can open API Keys in Arca Platform and select Create API key. The key starts with arca_pk_ and also works with Model Inference when your organization has access. Arca shows the full key once. Store it in your secret manager and set ARCA_RESEARCH_KEY in your server environment. Keep the key out of browser code.

Your Arca key covers publication search and the other Research API categories. Arca manages the underlying search services and their credentials.

Send it on every request:

Authorization: Bearer arca_pk_…

Platform keys start with 1,000 Search calls per key per UTC day. If you lose your key, rotate or revoke it from API Keys. Rotation and revocation take effect for both APIs. Existing Search keys that start with arca_rk_ still work.

Send one query to search medical, publications and legal sources. The request accepts top-level search options and a contents object. The response returns a flat results array with readable source references.

curl --fail-with-body https://app.arca.inc/api/research/search \
-H "Authorization: Bearer $ARCA_RESEARCH_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "evidence for CAR-T therapy in autoimmune disease",
"type": "auto",
"category": "publications",
"numResults": 10,
"includeDomains": ["pubmed.ncbi.nlm.nih.gov", "pmc.ncbi.nlm.nih.gov"],
"startPublishedDate": "2024-01-01",
"contents": { "highlights": true, "summary": true, "text": { "maxCharacters": 4000 } }
}'

No X-Organization-Id header or browser session is needed.

FieldMeaning
queryRequired string, 2–10,000 characters after trimming.
typeauto (default). Arca chooses the search sources automatically.
categoryall (default), medical, publications or legal.
numResultsInteger from 1 to 25, default 10. Caps the final combined list.
additionalQueriesUp to 10 alternate phrasings of the query.
includeDomainsOnly return matching hostnames or hostname/path prefixes; up to 100 entries.
excludeDomainsExclude matching hostnames or hostname/path prefixes; takes priority over inclusion.
startPublishedDateInclusive lower publication-date bound, as YYYY-MM-DD or an ISO 8601 timestamp with timezone.
endPublishedDateInclusive upper publication-date bound. A date without a time includes the whole day in UTC.
contents.texttrue or { "maxCharacters": 4000 }. Include extracted source text. Defaults to at most 16,000 characters; maximum 48,000.
contents.highlightstrue or { "maxCharacters": 2000 }. Return relevant excerpts, with an optional total character cap per result.
contents.summarytrue or {}. Return the source's search description as summary. Custom summary prompts and structured summaries are not supported.
filtersExact public-record metadata filters; requires category: "medical". See medical record filters.
sourceTypesMedical source categories, such as ["fda_records"]; requires category: "medical".
sourcesDirect legal sources: federal_register, sec_edgar, govinfo; requires category: "legal". The existing legal web and mirror lanes still run.
scholarQueryKeyword query for the Scholar lane when available; requires category: "publications".

Domains have no https://, port or query. fda.gov includes its subdomains; *.fda.gov includes subdomains only. fda.gov/drugs also restricts the URL path prefix. Domain and publication-date constraints filter retrieved candidates from every source, so a restrictive search may return fewer results or no results. A result with no publication date is excluded when either date bound is set. Category engine rankings are interleaved before the final limit; duplicate source references and URLs are returned once.

Exact filters retain their record-search semantics and cannot be mixed with publication-date bounds; use filters.startDate and filters.endDate for record dates. Content fields are opt-in: omitted or false fields are absent from each result. Unsupported request fields such as moderation, crawl controls and custom content queries return 400. Successful text and highlight projections include textCoverage and highlightsCoverage, respectively, with { "complete": true } or { "complete": false, "reason": "..." }. Text is partial if the preview or source extraction was capped. Highlight coverage reports whether all retrieved excerpts fit the character budget; highlights remain excerpts of the source. A partial text preview must not be treated as the complete source. A requested size limit does not set partialFailure.

Successful responses contain a flat result list:

{
"requestId": "019b0000-0000-7000-8000-000000000001",
"resolvedSearchType": "auto",
"results": [
{
"id": "https://pubmed.ncbi.nlm.nih.gov/12345678/",
"category": "publications",
"sourceRef": "https://pubmed.ncbi.nlm.nih.gov/12345678/",
"title": "CAR-T therapy study",
"url": "https://pubmed.ncbi.nlm.nih.gov/12345678/",
"summary": "A short description of the research question and findings.",
"text": "Extracted source text...",
"textCoverage": { "complete": true },
"highlights": ["Relevant passage from the source."],
"highlightsCoverage": { "complete": true },
"publishedDate": "2025-03-01",
"author": null
}
],
"partialFailure": false,
"warnings": []
}

The response requestId matches the x-request-id header. Each result has an id, URL, title and available publication date and author, plus requested content. sourceRef is an opaque source identifier; preserve it unchanged. If some categories or sources fail, usable results return 200 with partialFailure: true and category-specific warnings. A source text read failure retains the result and adds a warning with its sourceRef. If all selected categories fail, the response is a non-success HTTP status with the error envelope below. One request counts once against your key's daily quota, even when category is all or source text is requested.

TypeScript​

import { createResearchClient } from "@arca/sdk";

const research = createResearchClient({
baseUrl: "https://app.arca.inc",
researchKey: process.env.ARCA_RESEARCH_KEY,
});
const found = await research.search("CAR-T therapy for autoimmune disease", {
category: "publications",
numResults: 10,
contents: { highlights: true, summary: true },
});
if (found.isErr()) throw new Error(found.error.message);
for (const result of found.value.results)
console.log(result.title, result.sourceRef);

Categories and filters​

Use category: "all" to search all three categories, or choose one:

CategoryCoverage
medicalMedical, pharmaceutical, clinical, regulatory and device sources.
publicationsScholarly articles, preprints, conference proceedings and technical publications across disciplines.
legalStatutes, regulations, case law, filings and patents. Include the jurisdiction or citation in your query when known.

Medical sources​

With category: "medical", narrow the search using sourceTypes:

ValueSource group
fda_recordsFDA drug and device approvals, labels, safety reports, recalls and enforcement records.
regulatory_guidanceRegulatory guidance, regulations and consultation materials.
biomedical_literatureBiomedical literature and preprints. Open-access papers return the passage that matches.
clinical_trialsClinical trial registries.
clinical_guidelinesClinical guidelines and health technology assessments.
public_healthPublic-health agencies and surveillance sources.
standards_qualityPharmaceutical and medical-device standards and quality guidance.
global_regulatoryRegulators outside the U.S., including EUDAMED device and certificate records when selected.
device_vigilanceMedical-device field safety notices, corrective actions, recalls and safety alerts.
patentsUSPTO and EPO patent grants and applications, other offices, and PTAB decisions.

Omit sourceTypes to use the default medical sources. EUDAMED requires global_regulatory; live device-vigilance sources require device_vigilance. A query that names a patent (a patent number such as US 7,964,580, or the word patent) adds the patents sources on its own when you omit sourceTypes and set no date range. When the query carries a patent number in any common form (US 7,964,580 B2, US7964580, U.S. Pat. No. 7,964,580, US 2023/0123456, EP 1 234 567 B1, WO 2019/123456), that patent's record is the first result, followed by the other records on the same application (its publication and PTAB decisions). Patents granted before 2005 are not in the index.

Medical record filters​

filters filters Arca's indexed records by exact metadata. All the arrays together can hold at most 50 values; split a larger search into several calls.

FieldTypeDescription
applicationNumbersstring[]Drug application, 510(k) or PMA numbers, such as NDA209637, K070051 or P900052.
recordIdsstring[]Source record IDs: label set or document IDs, NCT numbers, K numbers, PMA supplements such as P900052-S016, docket numbers or certificate numbers.
productCodesstring[]FDA product codes.
ndcCodesstring[]NDC product codes, with leading zeros and hyphens.
dinsstring[]Health Canada eight-digit Drug Identification Numbers, with leading zeros.
feiNumbersstring[]FDA Establishment Identifiers.
recallNumbersstring[]Recall numbers.
recallClassesstring[]Recall classes I, II or III.
recordTypesstring[]Record types such as 483, EIR, WARNING LETTER, INSPECTION, IMPORT REFUSAL, RECALL, ADVERSE EVENT, DRUG LABEL, 510(K) or PMA.
inspectionOutcomesstring[]FDA inspection classifications NAI, VAI or OAI.
decisionCodesstring[]FDA device decision codes, such as SESE or APPR.
deviceClassesstring[]FDA device classes 1, 2 or 3.
productTypesstring[]Product type or category.
reactionsstring[]Reported reactions on FDA food, supplement and cosmetic adverse event reports.
eventOutcomesstring[]Outcomes on those reports, such as DEATH or HOSPITALIZATION.
trialStatuses, trialPhases, studyTypesstring[]Clinical trial status, phase and study type.
countries, statesstring[]Country and U.S. state.
dateFieldstringThe date startDate and endDate apply to: recordDate, postedDate, studyStartDate, primaryCompletionDate, completionDate, lastUpdateDate or inspectionDate.
startDate, endDatestringDate range, as YYYY-MM-DD.

recordDate means the date that matters for each source: the decision date for a device, the effective date for a label, the first submission for a trial, the issue date for guidance and enforcement.

For example, send this body to POST /api/research/search to find indexed device records by product code and decision date:

{
"query": "device clearance",
"category": "medical",
"sourceTypes": ["fda_records"],
"filters": {
"productCodes": ["QAS"],
"startDate": "2025-01-01",
"endDate": "2025-12-31"
},
"contents": { "highlights": true }
}

Errors and limits​

StatusMeaning
400The body is not JSON, exceeds 64 KiB, or does not match the search input schema.
401The key is missing, wrong or revoked.
429The key reached its daily limit. Retry-After gives the seconds until midnight UTC, when the count resets.
502The search failed as a whole. Inspect code, error and retryable.
503A required service is unavailable. Inspect retryable before retrying.

Failures return:

{
"ok": false,
"error": "A description of the problem.",
"code": "invalid_input",
"requestId": "019b0000-0000-7000-8000-000000000001",
"retryable": false
}

error is readable text; branch on code. Codes include invalid_input, unauthorized, rate_limited, search_failed and tool_failed. A rate limit also includes retryAfterSeconds. Every response carries x-request-id; include it when reporting a problem. A failed whole search returns an error status; usable partial results retain 200 and partialFailure: true.

Each authenticated POST /api/research/search counts as one call against the key's daily limit, including invalid search bodies that return 400. Searching all categories or requesting source text does not add calls.

The API returns information from public sources. It is not regulatory, legal or medical advice.

Papers and broader publication discovery​

POST /api/public/v1/search_papers takes a natural-language query, optional year, publication-type, citation-count and open-access filters, and numResults (1–25 PubMed papers, default 10). It searches retained PubMed/PMC evidence and broader publication discovery together. Verified PubMed papers stay in results; broader sources appear in the separate discovery.results collection. numResults also sets the request size for each discovery provider; the optional scholarly provider can add results beyond that count. resultCount counts only PubMed papers; discovery.resultCount counts the broader sources. Broader sources do not imply verified PubMed identifiers, citation counts, open-access status or peer review.

discovery.kind is searched when broader discovery ran, or excluded_by_filters with a reason when PMC-only, open-access, citation-count or publication-type filters cannot be verified. Year bounds are forwarded as provider publication-date bounds, not verified PubMed years. A failed lane leaves usable results from the other lane and marks overall coverage incomplete. discovery is optional during the server/SDK rollout; older servers may omit it, and older SDKs may not expose it.

A separate, bounded preprints array contains results from the configured preprint servers. Preprints are not peer reviewed. Citation-count, publication-type, open-access and PMC-only filters exclude preprints when those filters cannot be established.

A separate, bounded otherWorks array lists life-science papers PubMed does not index (from OpenAlex: journals outside MEDLINE, chemistry, engineering, books, conference papers), each with its OpenAlex id, DOI, authors, venue, year, citation count and open-access link; they never carry a PMID. Year, citation-count and open-access filters apply after the search to each candidate's stored record, over the top 25 ranked candidates, so a narrow filter can return fewer; publication-type and PMC-only filters exclude them. A discovery result with the same DOI as an otherWorks entry is dropped from discovery.results, so each paper appears once.

Each result carries sourceRef; pass it unchanged to read_source. A matched PMC passage identifies the retained record that supplied it. A passage is partial evidence, and the returned coverage states when a search lane or paper metadata could not be read. This operation reads public data and does not save a tenant paper search or create a Grid. The SDK exposes research.searchPapers(...); the CLI exposes arca research search papers "research question".

Answer a question from the top papers​

Search returns the right papers more often than the right passage. A method detail or a result number sits deep in the full text, and a search excerpt may show a figure caption or the abstract instead. POST /api/public/v1/answer_from_sources closes that gap. Pass the question and up to five sourceRef values from a search, best first:

{
"question": "Beta-amyrin synthase from what plant gives the highest yield in yeast?",
"sourceRefs": [
"https://pmc.ncbi.nlm.nih.gov/articles/PMC11725140/",
"arca:public-source:975b3250-c1e1-49f4-a86c-edd48e794c6a"
]
}

A reader model reads each source's text and answers for that source alone. The response has one entry per sourceRef, in request order:

outcomeMeaning
answeredThe source states the answer. quotes holds one to three verbatim quotes, each with range and section.
not_statedThe source does not state it. answer says what the source covers; it is never a guess.
unsupportedThe reader gave an answer but no quote checked out against the source. Treat the answer as unverified.
failedThe source could not be read or answered. failure carries code, message and retryable; other sources still answer.

The answer sentence is written by a model from untrusted source text, so treat the quotes as the evidence. Every quote is copied from the source text by the server, not by the model, and range uses the same character offsets as read_source, so a caller can open the exact place. section is the nearest heading before the quote, or null when the text has none. Each answered entry also has coverage. It is complete only when the reader saw the whole source: a long source is read up to 192,000 characters, and the reader is shown the passages that best match the question when the source is longer than about 60,000 characters. Do not treat not_stated on a partial coverage as proof the paper omits the answer.

The call is synchronous, usually a few seconds, and counts once against the key's daily limit however many sources it reads. It fails as a whole (502 or 503, with the per-source reasons in sources) only when no source could be answered; otherwise partialFailure: true marks the sources that failed. Answers are per source and are not merged: compare them yourself. The SDK exposes research.answerFromSources(...); the CLI exposes arca research answer "question" <source-ref>....