{"uid":"cap_3FhYPtu_baXyt3Jfi5A1p","slug":"agent-data-api-clinical-trials-search-0c8ea6f0","name":"Agent Data API – Clinical Trials Search","description":"SEC and supplement safety data, pay per call in USDC via x402.","url":"https://x402-agent-api-production.up.railway.app/trials/%7Bquery%7D?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"},"pathParams":{"type":"object","required":["query"],"properties":{"query":{"type":"string","description":"Drug, company, condition or keyword, e.g. tirzepatide"}}},"queryParams":{"type":"object","properties":{"by":{"enum":["term","drug","sponsor","condition"],"type":"string"},"limit":{"type":"integer","maximum":50,"minimum":1}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"query":"tirzepatide","by_phase":{"PHASE3":12},"total_matches":150,"upcoming_primary_completions_12mo":[{"nct_id":"NCT05000000","phases":["PHASE3"],"sponsor":"Eli Lilly and Company","primary_completion_date":"2027-03"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7NZ33GITWG87FeZAKRxQs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches ClinicalTrials.gov data by drug, sponsor, condition, or keyword and returns trial counts, phase breakdowns, and upcoming primary completion dates","exampleAgentPrompt":"Search clinical trials for tirzepatide by drug name and show me up to 20 results, including how many are in Phase 3 and which ones have primary completion dates coming up in the next year.","exampleUseCases":[{"title":"Drug pipeline research for investors","prompt":"How many clinical trials are currently running for semaglutide, broken down by phase? I want to see which ones are completing soon — search by drug name and give me up to 50 results."},{"title":"Competitive sponsor landscape analysis","prompt":"Find all clinical trials sponsored by Eli Lilly and Company and tell me which phases they're in and which trials have primary completion dates coming up in the next 12 months."},{"title":"Condition-based trial discovery","prompt":"I'm looking into trials related to type 2 diabetes — search by condition and give me the top 30 results including a breakdown by phase and any upcoming completion dates."}],"resultDescription":"Returns a JSON object containing the search query term, total number of matching trials, a breakdown of trial counts by phase (e.g. PHASE1, PHASE2, PHASE3), and a list of trials with upcoming primary completion dates within the next 12 months including NCT ID, phases, sponsor name, and projected completion month.","failureModes":["Invalid or misspelled query returns zero results","Unsupported 'by' enum value causes a validation error","Limit parameter outside 1-50 range causes rejection","Missing required 'query' path parameter returns 400 or 402","Payment failure via x402 protocol blocks access","Intermittent Railway.app hosting downtime causes 502 errors"],"whenToPreferThis":"Use this endpoint when an agent needs structured, aggregated clinical trial data searchable by drug, condition, sponsor, or keyword — especially when phase breakdowns and upcoming completion timelines are needed. Prefer this over raw ClinicalTrials.gov API calls when pay-per-call USDC micropayment billing is acceptable and a simple GET interface is preferred. Best suited for pharmaceutical research, investment due diligence, competitive intelligence, and health research workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T18:42:03.749Z","isFirstParty":false,"canonicalSlug":"agent-data-api-clinical-trials-search-0c8ea6f0"}