# Clinical Trials Search via ClinicalTrials.gov

> Clinical Trials Search via ClinicalTrials.gov is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-26).

Searches ClinicalTrials.gov for studies matching a condition, intervention, or keywords, returning trial details including status, phase, sponsor, enrollment, and locations.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/gov/clinical-trials?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-clinical-trials-search-via-3d0d2c94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HmZnn28-xUePW3zolPAFC

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 agent-data-tools-revmesh2074-workers-dev-clinical-trials-search-via-3d0d2c94
```

Example prompt: Can you search ClinicalTrials.gov for currently recruiting trials for type 2 diabetes that are testing semaglutide, and show me up to 10 results with their status, phase, sponsor, and locations?

## When to prefer this

Use this endpoint when you need structured, up-to-date clinical trial data from the authoritative US government source (ClinicalTrials.gov). Prefer it over generic web search when you need filterable, machine-readable trial records including phase, enrollment, and sponsor details. Ideal for patients researching options, researchers surveying the landscape, or developers building health information tools. Not a substitute for medical advice.

## Known failure modes

- No studies found for the given condition or intervention (returns empty array with count 0)
- ClinicalTrials.gov API upstream timeout or unavailability
- Invalid status parameter value (must be recruiting, active, completed, or all)
- limit parameter out of range (must be 1-20)
- No query parameters provided — at least one of condition, intervention, or q is recommended

## How this service works

Clinical trials search. Search ClinicalTrials.gov studies by condition, intervention or any words, optionally only recruiting ones: NCT id, title, status, phase, conditions, interventions, sponsor, enrollment, start and completion dates, number of locations and countries, and a link. From the ClinicalTrials.gov API (US National Library of Medicine). Information only, not medical advice. Use to find trials for a condition or drug.

## Output

Returns a list of up to 20 clinical studies, each with NCT ID, title, status, phase, conditions, interventions, sponsor, enrollment count, start and completion dates, number of locations, countries, and a direct link to the ClinicalTrials.gov entry. Also includes a total count of matching studies and the data source.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "q": {
       "type": "string",
       "examples": [
        "insulin pump"
       ],
       "description": "Any other words (optional)"
      },
      "limit": {
       "type": "string",
       "examples": [
        "10"
       ],
       "description": "Studies to return, 1-20 (default 10)"
      },
      "status": {
       "type": "string",
       "examples": [
        "recruiting"
       ],
       "description": "recruiting, active, completed or all (default recruiting)"
      },
      "condition": {
       "type": "string",
       "examples": [
        "type 1 diabetes"
       ],
       "description": "Condition or disease, e.g. type 1 diabetes"
      },
      "intervention": {
       "type": "string",
       "examples": [
        "semaglutide"
       ],
       "description": "Drug or intervention, e.g. semaglutide (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "note": {
       "type": "string"
      },
      "count": {
       "type": "number"
      },
      "total": {
       "type": "number"
      },
      "source": {
       "type": "string"
      },
      "studies": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "url": {
          "type": "string"
         },
         "nctId": {
          "type": "string"
         },
         "phase": {
          "type": "array",
          "items": {
           "type": "string"
          }
         },
         "start": {
          "type": "string"
         },
         "title": {
          "type": "string"
         },
         "status": {
          "type": "string"
         },
         "sponsor": {
          "type": "string"
         },
         "countries": {
          "type": "array",
          "items": {
           "type": "string"
          }
         },
         "locations": {
 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Information only, not medical advice.",
  "count": 1,
  "total": 412,
  "source": "ClinicalTrials.gov API (U.S. National Library of Medicine)",
  "studies": [
   {
    "url": "https://clinicaltrials.gov/study/NCT07154251",
    "nctId": "NCT07154251",
    "phase": [
     "NA"
    ],
    "start": "2026-01",
    "title": "Utilizing Community Health Workers as Diabetes Technology Coaches…",
    "status": "RECRUITING",
    "sponsor": "University of …",
    "countries": [
     "United States"
    ],
    "locations": 1,
    "completion": "2027-12",
    "conditions": [
     "Type 1 Diabetes"
    ],
    "enrollment": 60,
    "interventions": [
     "Behavioral: CHW coaching"
    ]
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-clinical-trials-search-via-3d0d2c94/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
