# ClinicalTrials.gov Study Search

> ClinicalTrials.gov Study Search is a paid API for AI agents from agent-utils-x402-production.revenue-agent-jw.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-18).

Searches ClinicalTrials.gov (official v2 API) for clinical trials by condition, drug, sponsor, location, phase, and recruitment status, returning paginated trial metadata.

## Facts

- Endpoint: GET https://agent-utils-x402-production.revenue-agent-jw.workers.dev/v1/clinical-trials/search?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clinicaltrials-gov-study-search-40f8cf99
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HB5CVL0IssTERjBWojZ19

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-study-search-40f8cf99
```

Example prompt: Find me recruiting phase 3 clinical trials studying pembrolizumab for non-small cell lung cancer in the United States — show up to 20 results sorted by relevance.

## When to prefer this

Use this endpoint when you need to search across many clinical trials by flexible criteria (condition, drug, sponsor, location, phase, status) and retrieve structured metadata in bulk with pagination. Prefer this over the sibling NCT-ID lookup endpoint when you don't already know specific NCT IDs and need discovery or pipeline/competitive research at scale. It wraps the official ClinicalTrials.gov v2 API with a clean interface and consistent response format.

## Known failure modes

- 400 Bad Request if query parameters are invalid (e.g. unrecognized phase or status values)
- Empty results array if no trials match the search criteria
- Pagination token expiry if nextPageToken from a previous call is stale
- Rate limiting or timeout if the upstream ClinicalTrials.gov v2 API is unavailable

## How this service works

ClinicalTrials.gov study search (official v2 API) by condition, intervention/drug, sponsor, location, keyword, recruitment status and phase. Useful for trial finding, pipeline and competitive research. Returns total count, NCT IDs, titles, status, phases, conditions, interventions, sponsor, enrollment, key dates, has-results flag and study links, with paging token, source URL and retrievedAt. Errors: 400 invalid input.

## Output

Returns a JSON object with a totalCount of matching trials, a results array containing per-trial metadata (NCT ID, title, status, phases, conditions, interventions, sponsor, enrollment, key dates, has-results flag, and ClinicalTrials.gov study URL), a nextPageToken for pagination, the source URL, and a retrievedAt timestamp.

## 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",
     "properties": {
      "q": {
       "type": "string",
       "description": "any-field keywords"
      },
      "sort": {
       "enum": [
        "relevance",
        "updated",
        "start"
       ],
       "type": "string"
      },
      "limit": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1
      },
      "phase": {
       "type": "string",
       "description": "comma-separated: early1, 1, 2, 3, 4, na"
      },
      "status": {
       "type": "string",
       "description": "comma-separated: RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED, ..."
      },
      "sponsor": {
       "type": "string"
      },
      "location": {
       "type": "string",
       "description": "city, state or country"
      },
      "condition": {
       "type": "string"
      },
      "page_token": {
       "type": "string",
       "description": "nextPageToken from a previous call"
      },
      "intervention": {
       "type": "string",
       "description": "drug, device or procedure"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "results": [
   {
    "url": "https://clinicaltrials.gov/study/NCT04095195",
    "nctId": "NCT04095195",
    "title": "Registry of Subjects at Risk of Pancreatic Cancer",
    "phases": [],
    "status": "RECRUITING",
    "sponsor": "Associazione Italiana per lo Studio del Pancreas"
   }
  ],
  "totalCount": 484
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clinicaltrials-gov-study-search-40f8cf99/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-utils-x402-production.revenue-agent-jw.workers.dev](https://www.zero.xyz/host/agent-utils-x402-production.revenue-agent-jw.workers.dev/llms.txt)
