# ClinicalTrials.gov Search

> ClinicalTrials.gov Search is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-15).

Search ClinicalTrials.gov by condition, intervention, sponsor, or free text and return a ranked, normalized list of clinical trial records with facet summary and total count.

## Facts

- Endpoint: GET https://api.agentstools.dev/trials/search
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clinicaltrials-gov-search-3866ba0b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__NNXHn6SGNvNG-u0hhodR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability clinicaltrials-gov-search-3866ba0b
```

Example prompt: Can you search ClinicalTrials.gov for recruiting phase 3 interventional trials for non-small cell lung cancer sponsored by AstraZeneca — show me up to 20 results?

## When to prefer this

Use this endpoint as a fast, cheap first step when you need to discover or enumerate clinical trials matching a condition, drug, or sponsor. Prefer it over deeper trial-detail endpoints (/trials/study, /trials/pipeline) when you need a list overview, facet counts, or want to check trial existence before fetching full records. Best when the user wants to explore the trial landscape rather than retrieve a single known trial.

## Known failure modes

- No matching trials found — returns empty list with total count of 0
- Invalid enum value for phase/status/study_type — returns validation error
- ClinicalTrials.gov upstream timeout or unavailability — returns 5xx error
- Missing required query intent (no cond, intr, lead, term, or titles provided) — may return overly broad or error result
- page_size exceeds maximum of 50 — returns validation error

## How this service works

Search ClinicalTrials.gov by indication, company, molecule or free text and get a ranked list of normalized trial records with total count and on-page facet summary. Optional phase, status, study-type and country filters. A cheap first step before /trials/study or /trials/pipeline.

## Output

A ranked list of normalized clinical trial records (up to page_size results), each containing NCT ID, title, phase, status, sponsor, conditions, interventions, and country. Also includes total match count and an on-page facet summary (e.g. breakdown by phase or status) to help orient further queries.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "cond": {
       "type": "string",
       "description": "Condition, indication or disease"
      },
      "intr": {
       "type": "string",
       "description": "Intervention, drug or molecule name"
      },
      "lead": {
       "type": "string",
       "description": "Lead sponsor name"
      },
      "term": {
       "type": "string",
       "description": "Free-text other terms"
      },
      "phase": {
       "enum": [
        "0",
        "1",
        "2",
        "3",
        "4"
       ],
       "type": "string",
       "description": "Trial phase to filter by, where 0 is Early Phase 1"
      },
      "spons": {
       "type": "string",
       "description": "Sponsor or collaborator name"
      },
      "status": {
       "enum": [
        "recruiting",
        "not_yet_recruiting",
        "active_not_recruiting",
        "completed",
        "terminated",
        "withdrawn",
        "suspended"
       ],
       "type": "string",
       "description": "Overall recruitment status to filter by"
      },
      "titles": {
       "type": "string",
       "description": "Title or acronym terms"
      },
      "country": {
       "type": "string",
       "description": "Country to narrow trial sites"
      },
      "page_size": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1,
       "description": "Max records to return, default 10"
      },
      "study_type": {
       "enum": [
        "int",
        "obs",
        "exp"
       ],
       "type": "string",
       "description": "Study type: int interventional, obs observational, exp expanded access"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clinicaltrials-gov-search-3866ba0b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
