# ScriptMasterLabs Clinical Trials Lookup API

> ScriptMasterLabs Clinical Trials Lookup API is a paid API for AI agents from mcp-x402-discovery.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Searches ClinicalTrials.gov for active or completed clinical studies by condition, drug, sponsor, or keyword, returning paginated trial results via pay-per-call x402 micropayment.

## Facts

- Endpoint: GET https://mcp-x402-discovery.onrender.com/x402/clinical-trials
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-clinical-trials-lookup-api-6169ec66
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EzwdwmhbXynServf9Ulsm

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 scriptmasterlabs-clinical-trials-lookup-api-6169ec66
```

Example prompt: Find me up to 10 recruiting clinical trials for diabetes — search ClinicalTrials.gov and return the results.

## When to prefer this

Use this endpoint when you need programmatic, pay-per-call access to ClinicalTrials.gov data without managing a separate NIH API key — ideal for agents that need on-demand trial lookups for medical research, pharmaceutical intelligence, compliance workflows, or patient-facing apps. Prefer this over direct ClinicalTrials.gov API calls when operating in a micropayment x402 architecture on Base/USDC.

## Known failure modes

- 402 Payment Required if no valid x402 payment or API key is provided
- Missing required 'input' object returns a validation error
- No results returned if condition/term doesn't match any trials
- Status filter mismatch may return empty set for niche conditions
- Rate limiting or service unavailability on the underlying ClinicalTrials.gov data source

## How this service works

Pay-per-call crypto, RWA, federal, SEC, Section 8/HUD housing, and compliance APIs via x402. Primary: USDC on Base (eip155:8453). Also accepts Global Dollar (USDG) on Robinhood Chain (eip155:4663) via sovereign X-PAYMENT-TX. Hyphen routes only (e.g. /x402/gas-tracker, /x402/pha-lookup, /x402/sec-8k). MARKETPLACE REVIEW: use free /x402/playground/* (no key, no payment). Production /x402/* returns 402 unless paid via x402 or X-Api-Market-Key / X-API-Key from seller dashboard.

## Output

Returns a list of clinical trial records matching the query, including trial IDs, titles, conditions, sponsors, status, and enrollment details — sourced from ClinicalTrials.gov. Results are paginated up to 25 rows per call.

## 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": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "rows": {
       "type": "integer",
       "default": 10,
       "maximum": 25,
       "minimum": 1
      },
      "term": {
       "type": "string",
       "description": "Drug, sponsor, or keyword (required if no condition)."
      },
      "status": {
       "enum": [
        "RECRUITING",
        "ACTIVE",
        "COMPLETED",
        "ALL"
       ],
       "type": "string",
       "default": "RECRUITING"
      },
      "condition": {
       "type": "string",
       "description": "Disease or condition (e.g. diabetes)."
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-clinical-trials-lookup-api-6169ec66/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-x402-discovery.onrender.com](https://www.zero.xyz/host/mcp-x402-discovery.onrender.com/llms.txt)
