Skip to main content
POST
/
api
/
search
curl -X POST https://api.rhizomeai.com/api/search \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "query_text": "FDA approval process",
    "top_k": 10,
    "offset": 0
  }'
{
  "results": [
    {
      "id": "nda/2017/208264Orig1s000ChemR.pdf 3 42",
      "doc_id": "nda/2017/208264Orig1s000ChemR.pdf",
      "dataset": "fda_drug",
      "page_num": 42,
      "score": 15.57,
      "name": "TEPADINA THIOTEPA",
      "url": "https://www.accessdata.fda.gov/drugsatfda_docs/nda/2017/208264Orig1s000ChemR.pdf",
      "company": "ADIENNE SA",
      "year_decision": 2017,
      "text": "QUALITY ASSESSMENT | post approval + Formulation...",
      "highlight": "<b>Process</b> parameters * Scale/equipment * Site Leachables..."
    }
  ],
  "total": 17319
}

Request Body

query_text
string
required
The search query text. Searches across document content using BM25 ranking.
top_k
integer
default:20
Maximum number of results to return. Min: 1, Max: 100.
offset
integer
default:0
Number of results to skip for pagination. Min: 0.
Filter results to specific datasets. Empty array searches all datasets. Available datasets include: fda_drug, fda_biologic, fda_pma, fda_denovo_or_510k, fda_guidance, fda_warning_letters, fda_clinical_trials, fda_483, fda_inspections, ema_epar, ema_guidelines, canada_guidance, and more. See Introduction for the full list.
year_from
integer
Filter results from this year onwards (inclusive).
year_to
integer
Filter results up to this year (inclusive).

Response

results
array
Array of search results, ordered by relevance score.
total
integer
Total number of matching results (for pagination).
curl -X POST https://api.rhizomeai.com/api/search \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "query_text": "FDA approval process",
    "top_k": 10,
    "offset": 0
  }'
{
  "results": [
    {
      "id": "nda/2017/208264Orig1s000ChemR.pdf 3 42",
      "doc_id": "nda/2017/208264Orig1s000ChemR.pdf",
      "dataset": "fda_drug",
      "page_num": 42,
      "score": 15.57,
      "name": "TEPADINA THIOTEPA",
      "url": "https://www.accessdata.fda.gov/drugsatfda_docs/nda/2017/208264Orig1s000ChemR.pdf",
      "company": "ADIENNE SA",
      "year_decision": 2017,
      "text": "QUALITY ASSESSMENT | post approval + Formulation...",
      "highlight": "<b>Process</b> parameters * Scale/equipment * Site Leachables..."
    }
  ],
  "total": 17319
}

Error Codes

StatusDescription
400Invalid request body
401Missing or invalid API key
429Rate limit exceeded (50 requests/minute)
500Internal server error