# ToolMint ClinicalTrials Search

> ToolMint ClinicalTrials Search is a paid API for AI agents from toolmint-clinicaltrials.toolmint.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-03).

Searches ClinicalTrials.gov and returns structured JSON with trial status, phase, eligibility criteria (split into inclusion/exclusion lists), and site locations — optimized for AI agent consumption.

## Facts

- Endpoint: GET https://toolmint-clinicaltrials.toolmint.workers.dev/trials?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolmint-clinicaltrials-search-b143001c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gqFXjLFfTDzAHjdDUSRFe

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 toolmint-clinicaltrials-search-b143001c
```

Example prompt: Find me up to 20 recruiting Phase 2 or Phase 3 clinical trials for non-small cell lung cancer near Houston, TX within 100 miles — I need each trial's eligibility split into inclusion and exclusion criteria.

## When to prefer this

Choose this endpoint when you need agent-ready, structured clinical trial data with eligibility criteria already parsed into inclusion/exclusion lists — rather than scraping or parsing raw ClinicalTrials.gov HTML or XML. Ideal when you need to filter by location radius, phase, status, sponsor, or intervention in a single call. Prefer over direct ClinicalTrials.gov API calls when the flat JSON format and pre-split eligibility criteria save downstream parsing work.

## Known failure modes

- No trials found matching the search criteria — returns empty results array
- Invalid phase or status enum value causes 400 bad request
- lat/lon provided without the other coordinate causes filter to be ignored or error
- pageToken expired or invalid, requiring a fresh search from page 1
- radiusMi out of range (must be 1–500) results in validation error
- term or condition exceeds 200 character limit causing rejection

## How this service works

Search ClinicalTrials.gov → flat agent JSON (status, phase, eligibility split into inclusion/exclusion lists, sites). One price per page (up to 50 studies). No personal contact data.

## Output

Returns a flat JSON array of studies, each containing trial ID, title, status, phase, brief description, inclusion criteria as a list, exclusion criteria as a list, and site location details. May include a nextPageToken for pagination through additional results.

## 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": {
      "lat": {
       "type": "number",
       "description": "Latitude for distance filter (with lon)"
      },
      "lon": {
       "type": "number",
       "description": "Longitude for distance filter (with lat)"
      },
      "term": {
       "type": "string",
       "description": "Any other search words (max 200 chars)"
      },
      "phase": {
       "type": "string",
       "description": "Comma list of: EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4, NA (or 1,2,3,4)"
      },
      "status": {
       "type": "string",
       "description": "Comma list of: ACTIVE_NOT_RECRUITING, COMPLETED, ENROLLING_BY_INVITATION, NOT_YET_RECRUITING, RECRUITING, SUSPENDED, TERMINATED, WITHDRAWN, AVAILABLE, NO_LONGER_AVAILABLE, TEMPORARILY_NOT_AVAILABLE, APPROVED_FOR_MARKETING, WITHHELD, UNKNOWN"
      },
      "sponsor": {
       "type": "string",
       "description": "Lead sponsor or collaborator (max 200 chars)"
      },
      "location": {
       "type": "string",
       "description": "Place text, e.g. 'Houston, TX' (max 200 chars)"
      },
      "pageSize": {
       "type": "integer",
       "default": 10,
       "description": "Studies per page (1-50)"
      },
      "radiusMi": {
       "type": "number",
       "description": "Distance in miles (1-500, default 50)"
      },
      "condition": {
       "type": "string",
       "description": "Condition or disease (max 200 chars)"
      },
      "pageToken": {
       "type": "string",
       "description": "nextPageToken from the previous page"
      },
      "intervention": {
       "type": "string",
       "description": "Drug, device or procedure (max 200 chars)"
      }
     }
    }
   },
   "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/toolmint-clinicaltrials-search-b143001c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolmint-clinicaltrials.toolmint.workers.dev](https://www.zero.xyz/host/toolmint-clinicaltrials.toolmint.workers.dev/llms.txt)
