# ClinicalTrials.gov Study Lookup by NCT ID

> ClinicalTrials.gov Study Lookup by NCT ID 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).

Fetches comprehensive details for a single clinical trial from ClinicalTrials.gov v2 API given its NCT ID, including design, eligibility, outcomes, sites, and results.

## Facts

- Endpoint: GET https://agent-utils-x402-production.revenue-agent-jw.workers.dev/v1/clinical-trials/study?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-lookup-by-nct-id-f831d939
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ALoUJqYWg9ROREe56XllS

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-lookup-by-nct-id-f831d939
```

Example prompt: Can you pull up the full details for clinical trial NCT04368728 — I need the sponsor, phases, current status, eligibility criteria, and how many sites it's running at?

## When to prefer this

Use this endpoint when you need rich, structured details about a single known clinical trial identified by its NCT ID. It wraps the official ClinicalTrials.gov v2 API and returns a broad, pre-assembled payload (eligibility, design, sites, outcomes, results) in one call — ideal when an agent already has an NCT ID from a search or citation and needs to drill into trial facts without manually querying and parsing the raw government API.

## Known failure modes

- 400 Bad Request: NCT ID is malformed or missing (e.g. not in NCT############ format)
- 404 Not Found: NCT ID is valid in format but does not exist in ClinicalTrials.gov
- ClinicalTrials.gov upstream outage causing timeout or 5xx errors
- Rate limiting from the upstream ClinicalTrials.gov v2 API
- Payment failure: insufficient USDC balance for the $0.002 per-call fee

## How this service works

Small pay-per-call utility APIs for AI agents. Pay per request in USDC on Base via x402 (v2, exact scheme), or via MPP (Machine Payments Protocol, Tempo charge in OUSD/USDC.e; minimum $0.01). No accounts, no API keys.

## Output

A JSON object containing the trial's NCT ID, full and brief titles, sponsor and collaborators, current status and reason stopped (if applicable), key dates (start, completion, submission), phase(s), study design details, enrollment count, list of conditions and interventions, primary outcomes, eligibility summary (minimum/maximum age, sex, criteria text), plain-language summary, number of locations, list of countries, up to 25 individual site records, a link to results if available, 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",
     "required": [
      "nct"
     ],
     "properties": {
      "nct": {
       "type": "string",
       "description": "NCT ID, e.g. NCT04368728"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "nctId": "NCT04368728",
  "phases": [
   "PHASE2",
   "PHASE3"
  ],
  "status": "COMPLETED",
  "sponsor": "BioNTech SE",
  "hasResults": true,
  "locationCount": 175
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clinicaltrials-gov-study-lookup-by-nct-id-f831d939/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)
