{"uid":"cap_eSWjVSS6lxu076OAknDXe","slug":"decision-data-studio-clinical-trials-query-01d0690a","name":"Decision Data Studio — Clinical Trials Query","description":"Local-first data and agent workflow tools from Decision Data Studio, plus verified EU tender shortlists and machine-callable utilities.","url":"https://api.ikoles.dev/v1/clinical-trials-query","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"limit":{"type":"integer","default":10,"maximum":20,"minimum":1},"phase":{"type":"string","maxLength":100,"minLength":1},"query":{"type":"string","maxLength":200,"minLength":1},"condition":{"type":"string","maxLength":200,"minLength":1},"intervention":{"type":"string","maxLength":200,"minLength":1},"overallStatus":{"type":"string","maxLength":100,"minLength":1},"resultsFirstPostTo":{"type":"string","format":"date"},"resultsFirstPostFrom":{"type":"string","format":"date"}}},"responseSchema":{"type":"json","example":{"caveat":"Public registry information only; not medical advice, evidence grading, or a treatment recommendation. Verify the current primary record.","trials":[{"title":"Intraoperative Investigation of a Directional Lead and Local Field Potentials","phases":[],"trialId":"NCT03630302","sourceUrl":"https://clinicaltrials.gov/study/NCT03630302","startDate":"2018-07-12","conditions":["Parkinson"],"resultStatus":"POSTED","interventions":["DBS"],"overallStatus":"COMPLETED","completionDate":"2020-01-31","enrollmentType":"ACTUAL","enrollmentCount":10,"primaryEndpoints":["Clinical programming prediction"],"lastUpdatePostDate":"2021-05-28","secondaryEndpoints":["Side effect threshold"],"resultsFirstPostDate":"2021-05-28"}],"filters":{"limit":5,"query":"Parkinson programming","condition":"Parkinson","overallStatus":"COMPLETED","resultsFirstPostFrom":"2023-01-01"},"attribution":"Source: ClinicalTrials.gov, a resource of the U.S. National Library of Medicine.","generatedAt":"2026-07-24T05:00:00.000Z","totalTrials":38638,"matchedTrials":42,"datasetVersion":"2026-07-23","returnedTrials":1,"sourceDataTimestamp":"2026-07-23T09:00:05"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZKa_h5hCfGBT0WeLdg8ZC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Queries the ClinicalTrials.gov registry to return structured trial records filtered by condition, intervention, phase, status, and date range.","exampleAgentPrompt":"Search ClinicalTrials.gov for up to 10 completed phase 3 trials studying metformin for type 2 diabetes that have posted results since January 2022, and give me the trial IDs, titles, and primary endpoints.","exampleUseCases":[{"title":"Drug efficacy research for a condition","prompt":"Find me up to 15 completed clinical trials on ClinicalTrials.gov studying pembrolizumab as an intervention for non-small-cell lung cancer, with results posted after 2021-01-01 — I want the trial IDs, phases, enrollment counts, and primary endpoints."},{"title":"Patient advocacy trial awareness","prompt":"Can you look up active and recruiting clinical trials for Duchenne muscular dystrophy, any phase, and give me the titles, start dates, and links so I can share them with a patient support group?"},{"title":"Competitive landscape scan for biotech","prompt":"Search for all phase 2 and phase 3 trials studying CRISPR gene editing interventions with results already posted — give me up to 20, including completion dates and enrollment numbers."}],"resultDescription":"Returns a JSON object containing a list of matched trial records (up to 20), each with trial ID, title, phases, conditions, interventions, overall status, start and completion dates, enrollment count and type, primary and secondary endpoints, and a source URL to the ClinicalTrials.gov record. Also includes aggregate metadata: total trials in dataset, number matched, number returned, applied filters, dataset version, and a timestamp. A caveat note reminds that results are public registry data only and not medical advice.","failureModes":["No trials match the specified filters — returns empty trials array with zero matchedTrials","Query or condition string exceeds 200-character limit — validation error","Phase or overallStatus value not recognized by the registry — may return zero results","Limit out of range (below 1 or above 20) — validation error","Date format incorrect (not ISO 8601 YYYY-MM-DD) — schema validation failure","Upstream ClinicalTrials.gov data unavailable — service may return error or stale dataset version"],"whenToPreferThis":"Choose this endpoint when you need structured, machine-readable access to ClinicalTrials.gov data filtered by condition, intervention, phase, or status without scraping the web UI. It is ideal for agents doing biomedical research, competitive intelligence, patient advocacy lookups, or evidence synthesis pipelines where you need trial IDs, endpoints, and enrollment data in a single call. Prefer this over general web search when you need reliable, structured fields like enrollment counts, primary endpoints, and result post dates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:40:50.523Z","isFirstParty":false}