{
  "data": {
    "id": "SKvvznYMTZF5b9Hiq",
    "actId": "geFvd8bEgRzgFr40o",
    "userId": "NL4ThgItAwaoBlffQ",
    "startedAt": "2026-11-24T09:17:55.019Z",
    "finishedAt": "2026-11-24T09:17:57.921Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "inputSchema": "{\n  \"title\": \"ClinicalTrials.gov Sponsor, Location & NCT Lookup Input\",\n  \"description\": \"Query the public ClinicalTrials.gov v2 registry without a login, cookie or proxy. Choose a sponsor, trial-site location or NCT-ID lookup, or search by condition, intervention, title, outcome, study ID or facility. Narrow by recruitment status, study type, phase, eligibility, funder, documents, results, enrollment and dates, then page to as many as 10,000 matching studies.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"Which lookup axis to use.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"search\",\n        \"byNctIds\",\n        \"byCondition\",\n        \"byIntervention\",\n        \"byLocation\",\n        \"bySponsor\",\n        \"byTitle\",\n        \"byOutcome\",\n        \"byStudyId\",\n        \"byFacility\"\n      ],\n      \"enumTitles\": [\n        \"Free-text search (all fields)\",\n        \"Lookup by NCT IDs\",\n        \"Browse by condition / disease\",\n        \"Browse by intervention / drug\",\n        \"Browse by location / country\",\n        \"Browse by sponsor\",\n        \"Search by title / acronym\",\n        \"Search by outcome measure\",\n        \"Lookup by sponsor study ID\",\n        \"Search by facility name\"\n      ],\n      \"default\": \"search\",\n      \"prefill\": \"search\"\n    },\n    \"searchQuery\": {\n      \"title\": \"Search query (mode=search)\",\n      \"type\": \"string\",\n      \"description\": \"Free-text query against the full study record. Used by mode=search; also serves as a fallback for the other browse modes if their specific query is empty.\",\n      \"editor\": \"textfield\",\n      \"default\": \"cancer immunotherapy\",\n      \"prefill\": \"cancer immunotherapy\"\n    },\n    \"conditionQuery\": {\n      \"title\": \"Condition / disease (mode=byCondition)\",\n      \"type\": \"string\",\n      \"description\": \"Disease, condition, or medical term (e.g. `diabetes`, `breast cancer`, `Alzheimer disease`).\",\n      \"editor\": \"textfield\"\n    },\n    \"interventionQuery\": {\n      \"title\": \"Intervention / drug (mode=byIntervention)\",\n      \"type\": \"string\",\n      \"description\": \"Drug name, device, biological, or therapy (e.g. `metformin`, `pembrolizumab`, `CAR-T`).\",\n      \"editor\": \"textfield\"\n    },\n    \"interventionTypes\": {\n      \"title\": \"Intervention types\",\n      \"type\": \"array\",\n      \"description\": \"Keep studies with any of the selected intervention types. Empty = no intervention-type filter.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"DRUG\",\n          \"DEVICE\",\n          \"BIOLOGICAL\",\n          \"PROCEDURE\",\n          \"BEHAVIORAL\",\n          \"DIETARY_SUPPLEMENT\",\n          \"COMBINATION_PRODUCT\",\n          \"DIAGNOSTIC_TEST\",\n          \"GENETIC\",\n          \"OTHER\"\n        ],\n        \"enumTitles\": [\n          \"Drug\",\n          \"Device\",\n          \"Biological\",\n          \"Procedure\",\n          \"Behavioral\",\n          \"Dietary supplement\",\n          \"Combination product\",\n          \"Diagnostic test\",\n          \"Genetic\",\n          \"Other\"\n        ]\n      },\n      \"uniqueItems\": true,\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"locationQuery\": {\n      \"title\": \"Location (mode=byLocation)\",\n      \"type\": \"string\",\n      \"description\": \"Geographic location text (city, state, country) — e.g. `Boston`, `California`, `United States`.\",\n      \"editor\": \"textfield\"\n    },\n    \"sponsorQuery\": {\n      \"title\": \"Sponsor (mode=bySponsor)\",\n      \"type\": \"string\",\n      \"description\": \"Lead sponsor or collaborator name. Use `sponsorScope` to choose which one. Exact registered names work best (e.g. `Pfizer Inc.`, `Mayo Clinic`); partial names usually still match.\",\n      \"editor\": \"textfield\"\n    },\n    \"sponsorScope\": {\n      \"title\": \"Sponsor scope\",\n      \"type\": \"string\",\n      \"description\": \"Match `sponsorQuery` against the lead sponsor only or against lead sponsor plus collaborators.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"lead\",\n        \"all\"\n      ],\n      \"enumTitles\": [\n        \"Lead sponsor only\",\n        \"Lead sponsor or collaborator\"\n      ],\n      \"default\": \"lead\",\n      \"prefill\": \"lead\"\n    },\n    \"titleQuery\": {\n      \"title\": \"Title / acronym (mode=byTitle)\",\n      \"type\": \"string\",\n      \"description\": \"Words from the brief title, official title or acronym (e.g. `remdesivir`, `ACTT`).\",\n      \"editor\": \"textfield\"\n    },\n    \"outcomeQuery\": {\n      \"title\": \"Outcome measure (mode=byOutcome)\",\n      \"type\": \"string\",\n      \"description\": \"Words from a primary or secondary outcome measure (e.g. `quality of life`, `progression-free survival`).\",\n      \"editor\": \"textfield\"\n    },\n    \"studyIdQuery\": {\n      \"title\": \"Sponsor study ID (mode=byStudyId)\",\n      \"type\": \"string\",\n      \"description\": \"The sponsor's own study identifier (e.g. `20-0006`, `SC2900`). Exact identifier only.\",\n      \"editor\": \"textfield\"\n    },\n    \"facilityQuery\": {\n      \"title\": \"Facility name (mode=byFacility)\",\n      \"type\": \"string\",\n      \"description\": \"Trial-site facility name (e.g. `Mayo Clinic`, `Johns Hopkins`).\",\n      \"editor\": \"textfield\"\n    },\n    \"nctIds\": {\n      \"title\": \"NCT IDs (mode=byNctIds)\",\n      \"type\": \"array\",\n      \"description\": \"List of NCT identifiers like `NCT04280705`. Full URLs (`https://clinicaltrials.gov/study/NCT...`) are also accepted.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"startUrl\": {\n      \"title\": \"Start from a ClinicalTrials.gov URL\",\n      \"type\": \"string\",\n      \"description\": \"Paste a study URL (`https://clinicaltrials.gov/study/NCT...`), a search-results URL, or an `https://clinicaltrials.gov/api/v2/studies?...` URL. Values in the URL take precedence over the matching input fields; the remaining filters still apply.\",\n      \"editor\": \"textfield\"\n    },\n    \"statuses\": {\n      \"title\": \"Recruitment / overall status\",\n      \"type\": \"array\",\n      \"description\": \"Keep studies with any of the selected statuses. Empty = no status filter.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"NOT_YET_RECRUITING\",\n          \"RECRUITING\",\n          \"ENROLLING_BY_INVITATION\",\n          \"ACTIVE_NOT_RECRUITING\",\n          \"SUSPENDED\",\n          \"TERMINATED\",\n          \"COMPLETED\",\n          \"WITHDRAWN\",\n          \"UNKNOWN\",\n          \"AVAILABLE\",\n          \"NO_LONGER_AVAILABLE\",\n          \"TEMPORARILY_NOT_AVAILABLE\",\n          \"APPROVED_FOR_MARKETING\",\n          \"WITHHELD\"\n        ],\n        \"enumTitles\": [\n          \"Not yet recruiting\",\n          \"Recruiting\",\n          \"Enrolling by invitation\",\n          \"Active, not recruiting\",\n          \"Suspended\",\n          \"Terminated\",\n          \"Completed\",\n          \"Withdrawn\",\n          \"Unknown\",\n          \"Available (expanded access)\",\n          \"No longer available (expanded access)\",\n          \"Temporarily not available (expanded access)\",\n          \"Approved for marketing (expanded access)\",\n          \"Withheld\"\n        ]\n      },\n      \"uniqueItems\": true,\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"studyTypes\": {\n      \"title\": \"Study type\",\n      \"type\": \"array\",\n      \"description\": \"Keep studies of any of the selected types. Empty = no study-type filter.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"INTERVENTIONAL\",\n          \"OBSERVATIONAL\",\n          \"EXPANDED_ACCESS\"\n        ],\n        \"enumTitles\": [\n          \"Interventional (clinical trial)\",\n          \"Observational\",\n          \"Expanded access (compassionate use)\"\n        ]\n      },\n      \"uniqueItems\": true,\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"phases\": {\n      \"title\": \"Phases\",\n      \"type\": \"array\",\n      \"description\": \"Keep studies in any of the selected trial phases. Empty = no phase filter.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"EARLY_PHASE1\",\n          \"PHASE1\",\n          \"PHASE2\",\n          \"PHASE3\",\n          \"PHASE4\",\n          \"NA\"\n        ],\n        \"enumTitles\": [\n          \"Early Phase 1\",\n          \"Phase 1\",\n          \"Phase 2\",\n          \"Phase 3\",\n          \"Phase 4\",\n          \"Not Applicable\"\n        ]\n      },\n      \"uniqueItems\": true,\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"sex\": {\n      \"title\": \"Eligible sex\",\n      \"type\": \"string\",\n      \"description\": \"Restrict by the sex a study enrolls. `ALL` keeps only studies open to both sexes; `MALE`/`FEMALE` keep studies open to that sex (including both-sex studies).\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"ALL\",\n        \"MALE\",\n        \"FEMALE\"\n      ],\n      \"enumTitles\": [\n        \"Any\",\n        \"All sexes (both)\",\n        \"Male (including all-sex studies)\",\n        \"Female (including all-sex studies)\"\n      ]\n    },\n    \"ageGroups\": {\n      \"title\": \"Age groups\",\n      \"type\": \"array\",\n      \"description\": \"Keep studies that enroll any of the selected age groups. Empty = no age-group filter.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"CHILD\",\n          \"ADULT\",\n          \"OLDER_ADULT\"\n        ],\n        \"enumTitles\": [\n          \"Child (birth-17)\",\n          \"Adult (18-64)\",\n          \"Older Adult (65+)\"\n        ]\n      },\n      \"uniqueItems\": true,\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"healthyVolunteersFilter\": {\n      \"title\": \"Accepts healthy volunteers\",\n      \"type\": \"string\",\n      \"description\": \"Keep studies that do or do not accept healthy volunteers. Empty = no filter.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"yes\",\n        \"no\"\n      ],\n      \"enumTitles\": [\n        \"Any\",\n        \"Accepts healthy volunteers\",\n        \"Does not accept healthy volunteers\"\n      ]\n    },\n    \"ageRangeUnit\": {\n      \"title\": \"Age range unit\",\n      \"type\": \"string\",\n      \"description\": \"Unit for ageRangeFrom/ageRangeTo.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"years\",\n        \"months\"\n      ],\n      \"enumTitles\": [\n        \"Years\",\n        \"Months\"\n      ],\n      \"default\": \"years\",\n      \"prefill\": \"years\"\n    },\n    \"ageRangeFrom\": {\n      \"title\": \"Age range — from (years)\",\n      \"type\": \"integer\",\n      \"description\": \"Keep studies whose eligibility age window overlaps this lower bound, expressed in `ageRangeUnit` (years by default). Studies with no age limit are treated as 0-120 years.\",\n      \"minimum\": 0,\n      \"maximum\": 1440\n    },\n    \"ageRangeTo\": {\n      \"title\": \"Age range — to (years)\",\n      \"type\": \"integer\",\n      \"description\": \"Keep studies whose eligibility age window overlaps this upper bound, expressed in `ageRangeUnit`.\",\n      \"minimum\": 0,\n      \"maximum\": 1440\n    },\n    \"country\": {\n      \"title\": \"Country\",\n      \"type\": \"string\",\n      \"description\": \"Keep studies with a trial location in this country.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"United States\",\n        \"Canada\",\n        \"United Kingdom\",\n        \"Germany\",\n        \"France\",\n        \"Italy\",\n        \"Spain\",\n        \"Netherlands\",\n        \"Belgium\",\n        \"Sweden\",\n        \"Norway\",\n        \"Denmark\",\n        \"Finland\",\n        \"Switzerland\",\n        \"Austria\",\n        \"Poland\",\n        \"Czechia\",\n        \"Hungary\",\n        \"Romania\",\n        \"Bulgaria\",\n        \"Greece\",\n        \"Portugal\",\n        \"Ireland\",\n        \"Iceland\",\n        \"Russia\",\n        \"Ukraine\",\n        \"Turkey\",\n        \"Israel\",\n        \"Saudi Arabia\",\n        \"United Arab Emirates\",\n        \"Egypt\",\n        \"South Africa\",\n        \"China\",\n        \"Japan\",\n        \"Korea, Republic of\",\n        \"Taiwan\",\n        \"Hong Kong\",\n        \"India\",\n        \"Pakistan\",\n        \"Bangladesh\",\n        \"Thailand\",\n        \"Vietnam\",\n        \"Indonesia\",\n        \"Malaysia\",\n        \"Singapore\",\n        \"Philippines\",\n        \"Australia\",\n        \"New Zealand\",\n        \"Mexico\",\n        \"Brazil\",\n        \"Argentina\",\n        \"Chile\",\n        \"Colombia\",\n        \"Peru\"\n      ],\n      \"enumTitles\": [\n        \"Any country\",\n        \"United States\",\n        \"Canada\",\n        \"United Kingdom\",\n        \"Germany\",\n        \"France\",\n        \"Italy\",\n        \"Spain\",\n        \"Netherlands\",\n        \"Belgium\",\n        \"Sweden\",\n        \"Norway\",\n        \"Denmark\",\n        \"Finland\",\n        \"Switzerland\",\n        \"Austria\",\n        \"Poland\",\n        \"Czechia\",\n        \"Hungary\",\n        \"Romania\",\n        \"Bulgaria\",\n        \"Greece\",\n        \"Portugal\",\n        \"Ireland\",\n        \"Iceland\",\n        \"Russia\",\n        \"Ukraine\",\n        \"Turkey\",\n        \"Israel\",\n        \"Saudi Arabia\",\n        \"United Arab Emirates\",\n        \"Egypt\",\n        \"South Africa\",\n        \"China\",\n        \"Japan\",\n        \"Korea, Republic of\",\n        \"Taiwan\",\n        \"Hong Kong\",\n        \"India\",\n        \"Pakistan\",\n        \"Bangladesh\",\n        \"Thailand\",\n        \"Vietnam\",\n        \"Indonesia\",\n        \"Malaysia\",\n        \"Singapore\",\n        \"Philippines\",\n        \"Australia\",\n        \"New Zealand\",\n        \"Mexico\",\n        \"Brazil\",\n        \"Argentina\",\n        \"Chile\",\n        \"Colombia\",\n        \"Peru\"\n      ]\n    },\n    \"countryText\": {\n      \"title\": \"Country name (any)\",\n      \"type\": \"string\",\n      \"description\": \"Any country name, including countries not in the dropdown. Takes precedence over `country`.\",\n      \"editor\": \"textfield\"\n    },\n    \"state\": {\n      \"title\": \"State / region\",\n      \"type\": \"string\",\n      \"description\": \"Trial-site state or region as registered on ClinicalTrials.gov (e.g. `California`, `Ontario`). Exact name, not a two-letter code.\",\n      \"editor\": \"textfield\"\n    },\n    \"sponsorClass\": {\n      \"title\": \"Funder type\",\n      \"type\": \"string\",\n      \"description\": \"Keep studies by lead-sponsor class. Empty = no funder filter.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"NIH\",\n        \"FED\",\n        \"INDUSTRY\",\n        \"NETWORK\",\n        \"INDIV\",\n        \"OTHER\",\n        \"OTHER_GOV\",\n        \"UNKNOWN\",\n        \"AMBIG\"\n      ],\n      \"enumTitles\": [\n        \"Any funder type\",\n        \"NIH\",\n        \"Other U.S. federal agency\",\n        \"Industry\",\n        \"Network\",\n        \"Individual\",\n        \"All others (universities, organizations, individuals)\",\n        \"Other government\",\n        \"Unknown\",\n        \"Ambiguous\"\n      ]\n    },\n    \"fdaRegulated\": {\n      \"title\": \"FDA-regulated\",\n      \"type\": \"string\",\n      \"description\": \"Keep studies that are FDA-regulated drug or device trials. Empty = no filter.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"drug\",\n        \"device\"\n      ],\n      \"enumTitles\": [\n        \"Any\",\n        \"FDA-regulated drug\",\n        \"FDA-regulated device\"\n      ]\n    },\n    \"onlyPatientRegistries\": {\n      \"title\": \"Patient registries only\",\n      \"type\": \"boolean\",\n      \"description\": \"When enabled, keep only studies flagged as patient registries.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"onlyFdaaaViolations\": {\n      \"title\": \"FDAAA 801 violations only\",\n      \"type\": \"boolean\",\n      \"description\": \"When enabled, keep only studies with an FDAAA 801 violation.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"resultsAvailability\": {\n      \"title\": \"Study results\",\n      \"type\": \"string\",\n      \"description\": \"Keep studies with or without posted results. Empty = no filter.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"with_results\",\n        \"without_results\"\n      ],\n      \"enumTitles\": [\n        \"Any\",\n        \"With posted results\",\n        \"Without posted results\"\n      ]\n    },\n    \"startDateFrom\": {\n      \"title\": \"Study start — from\",\n      \"type\": \"string\",\n      \"description\": \"Drop studies that started before this date. ISO 8601 partial dates accepted (e.g. `2020`, `2020-01`, `2020-01-15`).\",\n      \"editor\": \"textfield\"\n    },\n    \"startDateTo\": {\n      \"title\": \"Study start — to\",\n      \"type\": \"string\",\n      \"description\": \"Drop studies that started after this date.\",\n      \"editor\": \"textfield\"\n    },\n    \"primaryCompletionDateFrom\": {\n      \"title\": \"Primary completion — from\",\n      \"type\": \"string\",\n      \"description\": \"Drop studies whose primary completion date is before this date.\",\n      \"editor\": \"textfield\"\n    },\n    \"primaryCompletionDateTo\": {\n      \"title\": \"Primary completion — to\",\n      \"type\": \"string\",\n      \"description\": \"Drop studies whose primary completion date is after this date.\",\n      \"editor\": \"textfield\"\n    },\n    \"completionDateFrom\": {\n      \"title\": \"Study completion — from\",\n      \"type\": \"string\",\n      \"description\": \"Drop studies whose completion date is before this date.\",\n      \"editor\": \"textfield\"\n    },\n    \"completionDateTo\": {\n      \"title\": \"Study completion — to\",\n      \"type\": \"string\",\n      \"description\": \"Drop studies whose completion date is after this date.\",\n      \"editor\": \"textfield\"\n    },\n    \"firstPostedDateFrom\": {\n      \"title\": \"First posted — from\",\n      \"type\": \"string\",\n      \"description\": \"Drop studies first posted before this date.\",\n      \"editor\": \"textfield\"\n    },\n    \"firstPostedDateTo\": {\n      \"title\": \"First posted — to\",\n      \"type\": \"string\",\n      \"description\": \"Drop studies first posted after this date.\",\n      \"editor\": \"textfield\"\n    },\n    \"resultsFirstPostedDateFrom\": {\n      \"title\": \"Results first posted — from\",\n      \"type\": \"string\",\n      \"description\": \"Drop studies whose results were first posted before this date.\",\n      \"editor\": \"textfield\"\n    },\n    \"resultsFirstPostedDateTo\": {\n      \"title\": \"Results first posted — to\",\n      \"type\": \"string\",\n      \"description\": \"Drop studies whose results were first posted after this date.\",\n      \"editor\": \"textfield\"\n    },\n    \"lastUpdatePostedDateFrom\": {\n      \"title\": \"Last update posted — from\",\n      \"type\": \"string\",\n      \"description\": \"Drop studies last updated before this date.\",\n      \"editor\": \"textfield\"\n    },\n    \"lastUpdatePostedDateTo\": {\n      \"title\": \"Last update posted — to\",\n      \"type\": \"string\",\n      \"description\": \"Drop studies last updated after this date.\",\n      \"editor\": \"textfield\"\n    },\n    \"enrollmentFrom\": {\n      \"title\": \"Enrollment — minimum\",\n      \"type\": \"integer\",\n      \"description\": \"Drop studies whose planned or actual enrollment is below this number.\",\n      \"minimum\": 0,\n      \"maximum\": 10000000\n    },\n    \"enrollmentTo\": {\n      \"title\": \"Enrollment — maximum\",\n      \"type\": \"integer\",\n      \"description\": \"Drop studies whose planned or actual enrollment is above this number.\",\n      \"minimum\": 0,\n      \"maximum\": 10000000\n    },\n    \"containsKeyword\": {\n      \"title\": \"Contains keyword\",\n      \"type\": \"string\",\n      \"description\": \"Client-side filter: keep only records whose title, summary, eligibility, conditions, keywords, or interventions contain this substring (case-insensitive).\",\n      \"editor\": \"textfield\"\n    },\n    \"documentTypes\": {\n      \"title\": \"Study documents\",\n      \"type\": \"array\",\n      \"description\": \"Keep studies that have any of these documents posted. Empty = no document filter.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"PROTOCOL\",\n          \"SAP\",\n          \"ICF\"\n        ],\n        \"enumTitles\": [\n          \"Study protocol\",\n          \"Statistical analysis plan (SAP)\",\n          \"Informed consent form (ICF)\"\n        ]\n      },\n      \"uniqueItems\": true,\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"sort\": {\n      \"title\": \"Sort by\",\n      \"type\": \"string\",\n      \"description\": \"Order of the results returned by ClinicalTrials.gov.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"relevance\",\n        \"lastUpdateDesc\",\n        \"lastUpdateAsc\",\n        \"startDateDesc\",\n        \"startDateAsc\",\n        \"completionDateDesc\",\n        \"completionDateAsc\",\n        \"firstPostedDesc\",\n        \"firstPostedAsc\",\n        \"resultsFirstPostedDesc\",\n        \"resultsFirstPostedAsc\",\n        \"enrollmentDesc\",\n        \"enrollmentAsc\"\n      ],\n      \"enumTitles\": [\n        \"Relevance\",\n        \"Last update — newest first\",\n        \"Last update — oldest first\",\n        \"Start date — newest first\",\n        \"Start date — oldest first\",\n        \"Completion date — newest first\",\n        \"Completion date — oldest first\",\n        \"First posted — newest first\",\n        \"First posted — oldest first\",\n        \"Results first posted — newest first\",\n        \"Results first posted — oldest first\",\n        \"Enrollment — largest first\",\n        \"Enrollment — smallest first\"\n      ],\n      \"default\": \"relevance\",\n      \"prefill\": \"relevance\"\n    },\n    \"includeResults\": {\n      \"title\": \"Include posted results summary\",\n      \"type\": \"boolean\",\n      \"description\": \"When enabled, add a compact `results` object (participant-flow/baseline group counts, outcome-measure counts and a 5-item sample, adverse-event counts, limitations) for studies with posted results.\",\n      \"default\": false,\n      \"prefill\": false,\n      \"groupCaption\": \"Output\"\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"type\": \"integer\",\n      \"description\": \"Hard cap on emitted records.\",\n      \"minimum\": 1,\n      \"maximum\": 10000,\n      \"default\": 50,\n      \"prefill\": 3\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# ClinicalTrials.gov Sponsor, Location & NCT Lookup Tool\n\nClinicalTrials.gov is the US National Library of Medicine's public registry of clinical research, covering more than 500,000 studies worldwide. This actor is built for the registry's three practical lookup paths — follow a sponsor's pipeline, see what is running at a trial site or in a country, or resolve a saved list of NCT IDs — and it also searches by condition, intervention, title, outcome, sponsor study ID or facility. Everything is public: no account, cookie or proxy is needed.\n\n## What this actor does\n\n- **Ten lookup modes**: `search`, `byNctIds`, `byCondition`, `byIntervention`, `byLocation`, `bySponsor`, `byTitle`, `byOutcome`, `byStudyId`, `byFacility`\n- **Paste a URL**: a study link, a search-results link, or an `api/v2/studies` link is parsed into the matching mode and filters\n- **Sponsor scope**: match the lead sponsor only, or include collaborators\n- **Server-side filtering** for recruitment status, study type, phase, intervention type, age group, country, state, facility, funder class, healthy volunteers, patient registries, FDAAA 801 violations, results availability, FDA regulation, document labels, enrollment and six date ranges\n- **Eligibility parsing**: raw criteria plus separated inclusion/exclusion lines, sex, minimum/maximum age in text and years, standard age groups and the healthy-volunteer flag\n- **Posted documents**: protocol, statistical-analysis-plan and informed-consent metadata with public PDF URLs\n- **Optional posted-results summary**: participant-flow and baseline counts, outcome-measure counts and a short sample, adverse-event counts and limitations\n- **Token pagination up to 10,000 records per run**, deduplicated by NCT ID; the first page asks for the server-side match total\n- **Omit-empty output**: a field the registry does not have is left out, never written as `null`, `\"\"`, `[]` or `{}`\n\n## Output per study (sample)\n\n```json\n{\n  \"nctId\": \"NCT04280705\",\n  \"briefTitle\": \"Adaptive COVID-19 Treatment Trial (ACTT)\",\n  \"officialTitle\": \"A Multicenter, Adaptive, Randomized Blinded Controlled Trial...\",\n  \"organization\": \"National Institute of Allergy and Infectious Diseases (NIAID)\",\n  \"overallStatus\": \"COMPLETED\",\n  \"startDate\": \"2020-02-21\",\n  \"completionDate\": \"2020-05-21\",\n  \"leadSponsor\": \"National Institute of Allergy and Infectious Diseases (NIAID)\",\n  \"leadSponsorClass\": \"NIH\",\n  \"conditions\": [\"COVID-19\"],\n  \"studyType\": \"INTERVENTIONAL\",\n  \"phases\": [\"PHASE3\"],\n  \"enrollmentCount\": 1062,\n  \"sex\": \"ALL\",\n  \"minimumAge\": \"18 Years\",\n  \"maximumAge\": \"99 Years\",\n  \"minimumAgeYears\": 18.0,\n  \"maximumAgeYears\": 99.0,\n  \"standardAges\": [\"ADULT\", \"OLDER_ADULT\"],\n  \"healthyVolunteers\": false,\n  \"inclusionCriteria\": [\"Admitted to a hospital with symptoms suggestive of COVID-19 infection.\"],\n  \"exclusionCriteria\": [\"Alanine Transaminase (ALT) or Aspartate Transaminase (AST) > 5 times the upper limit of normal.\"],\n  \"documentTypes\": [\"PROTOCOL\", \"SAP\"],\n  \"documents\": [\n    {\n      \"type\": \"Prot_SAP\",\n      \"label\": \"Study Protocol and Statistical Analysis Plan\",\n      \"filename\": \"Prot_SAP_000.pdf\",\n      \"sizeBytes\": 989192,\n      \"url\": \"https://clinicaltrials.gov/ProvidedDocs/05/NCT04280705/Prot_SAP_000.pdf\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"facility\": \"National Institutes of Health Clinical Center\",\n      \"city\": \"Bethesda\",\n      \"state\": \"Maryland\",\n      \"country\": \"United States\"\n    }\n  ],\n  \"locationCountries\": [\"United States\", \"Japan\"],\n  \"locationCount\": 73,\n  \"hasResults\": true,\n  \"studyUrl\": \"https://clinicaltrials.gov/study/NCT04280705\",\n  \"recordType\": \"clinicalTrial\",\n  \"scrapedAt\": \"2026-11-24T12:00:00+00:00\"\n}\n```\n\n### Available fields\n\n- **Identification**: `nctId`, `briefTitle`, `officialTitle`, `acronym`, `organization`, `organizationClass`, `orgStudyId`\n- **Status & dates**: `overallStatus`, `startDate`, `startDateType`, `primaryCompletionDate`, `completionDate`, `studyFirstSubmitDate`, `studyFirstPostDate`, `lastUpdateSubmitDate`, `lastUpdatePostDate`, `resultsFirstPostDate`, `statusVerifiedDate`, `hasExpandedAccess`\n- **Sponsors**: `leadSponsor`, `leadSponsorClass`, `collaborators[]`, `responsiblePartyType`, `responsiblePartyInvestigator`\n- **Oversight**: `isFdaRegulatedDrug`, `isFdaRegulatedDevice`, `hasDataMonitoringCommittee`, `fdaaa801Violation`\n- **Description**: `briefSummary`, `detailedDescription`\n- **Conditions**: `conditions[]`, `keywords[]`\n- **Design**: `studyType`, `phases[]`, `enrollmentCount`, `enrollmentType`, `allocation`, `interventionModel`, `primaryPurpose`, `masking`, `whoMasked[]`, `observationalModel`, `timePerspective`, `targetDuration`, `patientRegistry`\n- **Arms / interventions**: `armGroups[]`, `interventions[]`, `interventionNames[]`, `interventionTypes[]`\n- **Eligibility**: `eligibilityCriteria`, `inclusionCriteria[]`, `exclusionCriteria[]`, `sex`, `minimumAge`, `maximumAge`, `minimumAgeYears`, `maximumAgeYears`, `standardAges[]`, `healthyVolunteers`\n- **Outcomes**: `primaryOutcomes[]`, `secondaryOutcomes[]`\n- **Locations**: `locations[]`, `locationCities[]`, `locationStates[]`, `locationCountries[]`, `locationCount`, `overallOfficials[]`\n- **Documents**: `documents[]`, `documentTypes[]`, `documentCount`\n- **Results** (with `includeResults`): `results` → `participantFlowGroupCount`, `participantFlowPeriodCount`, `baselineGroupCount`, `outcomeMeasureCount`, `outcomeMeasureTypes[]`, `topOutcomeMeasures[]`, `seriousAdverseEventCount`, `otherAdverseEventCount`, `adverseEventFrequencyThreshold`, `adverseEventTimeFrame`, `limitationsAndCaveats`, `resultsUrl`\n- **Derived**: `studyUrl`, `recordType`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | enum | `search` | `search`, `byNctIds`, `byCondition`, `byIntervention`, `byLocation`, `bySponsor`, `byTitle`, `byOutcome`, `byStudyId`, `byFacility` |\n| `searchQuery` | string | `cancer immunotherapy` | Free-text query for `mode=search`; fallback for the other browse modes |\n| `conditionQuery` | string | – | Disease or condition for `mode=byCondition` |\n| `interventionQuery` | string | – | Drug, device, biological or therapy for `mode=byIntervention` |\n| `interventionTypes` | array enum | – | Drug / Device / Biological / Procedure / Behavioral / Dietary supplement / Combination product / Diagnostic test / Genetic / Other |\n| `locationQuery` | string | – | City, state or country text for `mode=byLocation` |\n| `sponsorQuery` | string | – | Sponsor name for `mode=bySponsor`; exact registered names work best |\n| `sponsorScope` | enum | `lead` | `lead` (lead sponsor only) or `all` (lead sponsor plus collaborators) |\n| `titleQuery` | string | – | Words from the title or acronym for `mode=byTitle` |\n| `outcomeQuery` | string | – | Words from an outcome measure for `mode=byOutcome` |\n| `studyIdQuery` | string | – | Sponsor's own study identifier for `mode=byStudyId` |\n| `facilityQuery` | string | – | Trial-site facility name for `mode=byFacility` |\n| `nctIds` | array | – | NCT IDs or study URLs for `mode=byNctIds`; repeats are dropped |\n| `startUrl` | string | – | Study, search-results or `api/v2/studies` URL; parsed values override the matching fields |\n| `statuses` | array enum | – | Any of the 14 recruitment/overall statuses |\n| `studyTypes` | array enum | – | Interventional / Observational / Expanded Access |\n| `phases` | array enum | – | Early Phase 1 / Phase 1 / 2 / 3 / 4 / Not Applicable |\n| `sex` | enum | – | `ALL` (both sexes only), `MALE`, `FEMALE`; empty keeps every study |\n| `ageGroups` | array enum | – | Child / Adult / Older Adult |\n| `healthyVolunteersFilter` | enum | – | `yes` or `no`; empty means no filter |\n| `ageRangeUnit` | enum | `years` | Unit for `ageRangeFrom` and `ageRangeTo`: `years` or `months` |\n| `ageRangeFrom` | int | – | Lower bound of the eligible-age overlap window (0-1440) |\n| `ageRangeTo` | int | – | Upper bound of the eligible-age overlap window (0-1440) |\n| `country` | enum | – | 54 common trial countries |\n| `countryText` | string | – | Any country name; overrides `country` |\n| `state` | string | – | Registered state or region name (not a two-letter code) |\n| `sponsorClass` | enum | – | NIH / Other US federal / Industry / Network / Individual / Other / Other government / Unknown / Ambiguous |\n| `fdaRegulated` | enum | – | `drug` or `device` |\n| `onlyPatientRegistries` | bool | `false` | Keep only studies flagged as patient registries |\n| `onlyFdaaaViolations` | bool | `false` | Keep only studies with an FDAAA 801 violation |\n| `resultsAvailability` | enum | – | `with_results` or `without_results` |\n| `startDateFrom` | string | – | Study-start lower bound |\n| `startDateTo` | string | – | Study-start upper bound |\n| `primaryCompletionDateFrom` | string | – | Primary-completion lower bound |\n| `primaryCompletionDateTo` | string | – | Primary-completion upper bound |\n| `completionDateFrom` | string | – | Study-completion lower bound |\n| `completionDateTo` | string | – | Study-completion upper bound |\n| `firstPostedDateFrom` | string | – | First-posted lower bound |\n| `firstPostedDateTo` | string | – | First-posted upper bound |\n| `resultsFirstPostedDateFrom` | string | – | Results-first-posted lower bound |\n| `resultsFirstPostedDateTo` | string | – | Results-first-posted upper bound |\n| `lastUpdatePostedDateFrom` | string | – | Last-update lower bound |\n| `lastUpdatePostedDateTo` | string | – | Last-update upper bound |\n| `enrollmentFrom` | int | – | Minimum planned or actual enrollment |\n| `enrollmentTo` | int | – | Maximum planned or actual enrollment |\n| `containsKeyword` | string | – | Client-side case-insensitive substring across title, summary, eligibility, conditions, keywords and interventions |\n| `documentTypes` | array enum | – | Protocol / Statistical analysis plan / Informed consent form |\n| `sort` | enum | `relevance` | Relevance, last update, start/completion/first-posted/results dates or enrollment |\n| `includeResults` | bool | `false` | Add the compact `results` summary when the study has posted results |\n| `maxItems` | int | `50` | Hard cap (1-10,000); prefill `3` for the smallest paid test run |\n\nDates accept ISO 8601 partial values — `2020`, `2020-01` or `2020-01-15`.\n\n### Example: a sponsor's recruiting pipeline\n\n```json\n{\n  \"mode\": \"bySponsor\",\n  \"sponsorQuery\": \"Mayo Clinic\",\n  \"sponsorScope\": \"lead\",\n  \"statuses\": [\"RECRUITING\"],\n  \"studyTypes\": [\"INTERVENTIONAL\"],\n  \"sort\": \"lastUpdateDesc\",\n  \"maxItems\": 100\n}\n```\n\n### Example: what is running at sites in a country\n\n```json\n{\n  \"mode\": \"byLocation\",\n  \"locationQuery\": \"Germany\",\n  \"phases\": [\"PHASE2\", \"PHASE3\"],\n  \"country\": \"Germany\",\n  \"maxItems\": 200\n}\n```\n\n### Example: resolve a saved NCT list, including URLs\n\n```json\n{\n  \"mode\": \"byNctIds\",\n  \"nctIds\": [\n    \"NCT04280705\",\n    \"https://clinicaltrials.gov/study/NCT03695107\",\n    \"NCT04611802\"\n  ],\n  \"includeResults\": true\n}\n```\n\n### Example: filtered condition landscape by URL\n\n```json\n{\n  \"startUrl\": \"https://clinicaltrials.gov/search?cond=breast%20cancer&aggFilters=status:rec%20act,phase:3,studyType:int&country=United%20States\",\n  \"ageRangeFrom\": 18,\n  \"ageRangeTo\": 65,\n  \"maxItems\": 500\n}\n```\n\n## Legacy input compatibility\n\nSaved tasks and integrations built on earlier versions keep working. The actor maps these old keys in code without showing them in the input form:\n\n`query`, `searchTerm`, `term`, `keyword`, `q`, `condition`, `cond`, `intervention`, `intr`, `location`, `locationTerm`, `locn`, `sponsor`, `sponsorOrCollaborator`, `leadSponsor`, `titleOrAcronym`, `outcomeMeasure`, `studyIds`, `nctId`, `nct_id`, `status`, `overallStatus`, `statusFilter`, `studyType`, `phase`, `phaseFilter`, `hasResults`, `resultsSubmitted`, `acceptsHealthyVolunteers`, `healthyVolunteers`, `maxStudies`, `maxResults`, `limit`, `sortBy`, `studyStartDateFrom/To`, `studyCompletionDateFrom/To`, `postedFrom/To`, `url`, `searchUrl`.\n\nOnly the fields the actor actually reads are shown in the form; old keys are accepted in the raw input and mapped onto the current contract.\n\n## Use cases\n\n- **Competitive intelligence** — collect every registered trial for a named sponsor, including collaborators, and sort by the latest update\n- **Site feasibility** — see which studies are recruiting around a city, state or country before opening a new site\n- **Portfolio tracking** — resolve a spreadsheet of NCT IDs into current status, dates and enrollment on a schedule\n- **Patient matching** — combine condition, sex and age-window filters with the raw inclusion/exclusion criteria\n- **Regulatory and policy work** — monitor FDA-regulated studies, posted results and protocol/SAP/ICF documents\n- **Research data pipelines** — export a filtered trial landscape with structured interventions, outcomes and locations\n\n## FAQ\n\n**Who runs ClinicalTrials.gov?** The US National Library of Medicine, part of the National Institutes of Health. Sponsors and investigators worldwide submit and update the records.\n\n**Is this an official ClinicalTrials.gov or NIH product?** No. It is an independent client for the registry's public v2 API.\n\n**Why does a sponsor lookup sometimes miss a company I know?** The API matches the registered sponsor string, so `Pfizer` and `Pfizer Inc.` are not identical. Check the exact name in a ClinicalTrials.gov record, and remember that collaborators are only searched when `sponsorScope` is `all`.\n\n**What happens with a mixed NCT list?** Valid IDs resolve; IDs that do not match a study are omitted, and the status message reports how many were emitted. Duplicate IDs are removed before lookup.\n\n**Do I need an API key or proxy?** No. The actor calls the public registry directly and never uses cookies or credentials.\n\n**How does pagination stop?** It stops when `maxItems` is reached, when the registry returns no further page token, or when the query is exhausted. It never pads the dataset to hit the cap.\n\n**What is the difference between `locations[]` and the flattened location fields?** `locations[]` holds one object per trial site (facility, city, state, zip, country, coordinates). `locationCities[]`, `locationStates[]` and `locationCountries[]` are convenience lists derived from those sites, and `locationCount` is the number of sites.\n\n**Why do some dates have only a month?** Sponsors may register partial dates. The actor preserves the precision the registry supplies instead of inventing a day.\n\n**What does `includeResults` add?** A small `results` object with counts, a five-item outcome-measure sample, adverse-event counts, limitations and a `resultsUrl` — not the full results tables.\n\n**Are filters applied before or after download?** Status, study type, phase, intervention type, age group, country, state, facility, funder, healthy volunteers, registries, FDAAA, results availability, FDA regulation, documents, enrollment and date ranges are applied by the API. Sex, age-window overlap and the keyword substring are re-checked after fetch; the status message notes when that reduces the result set.\n\n**Why is `officialTitle` sometimes absent?** Many records register only a brief title. The actor omits fields the registry does not provide rather than sending a placeholder.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "clinicaltrials-gov-sponsor-location-and-nct-lookup",
      "title": "ClinicalTrials.gov Sponsor, Location & NCT Lookup Tool",
      "description": "Look up ClinicalTrials.gov studies by sponsor, trial-site location or NCT ID batch, or search by condition, intervention, title, outcome, study ID or facility. Filter by status, phase, eligibility, documents, results and dates. No login or proxy.",
      "version": "1.1",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# ClinicalTrials.gov Sponsor, Location & NCT Lookup Tool\n\nClinicalTrials.gov is the US National Library of Medicine's public registry of clinical research, covering more than 500,000 studies worldwide. This actor is built for the registry's three practical lookup paths — follow a sponsor's pipeline, see what is running at a trial site or in a country, or resolve a saved list of NCT IDs — and it also searches by condition, intervention, title, outcome, sponsor study ID or facility. Everything is public: no account, cookie or proxy is needed.\n\n## What this actor does\n\n- **Ten lookup modes**: `search`, `byNctIds`, `byCondition`, `byIntervention`, `byLocation`, `bySponsor`, `byTitle`, `byOutcome`, `byStudyId`, `byFacility`\n- **Paste a URL**: a study link, a search-results link, or an `api/v2/studies` link is parsed into the matching mode and filters\n- **Sponsor scope**: match the lead sponsor only, or include collaborators\n- **Server-side filtering** for recruitment status, study type, phase, intervention type, age group, country, state, facility, funder class, healthy volunteers, patient registries, FDAAA 801 violations, results availability, FDA regulation, document labels, enrollment and six date ranges\n- **Eligibility parsing**: raw criteria plus separated inclusion/exclusion lines, sex, minimum/maximum age in text and years, standard age groups and the healthy-volunteer flag\n- **Posted documents**: protocol, statistical-analysis-plan and informed-consent metadata with public PDF URLs\n- **Optional posted-results summary**: participant-flow and baseline counts, outcome-measure counts and a short sample, adverse-event counts and limitations\n- **Token pagination up to 10,000 records per run**, deduplicated by NCT ID; the first page asks for the server-side match total\n- **Omit-empty output**: a field the registry does not have is left out, never written as `null`, `\"\"`, `[]` or `{}`\n\n## Output per study (sample)\n\n```json\n{\n  \"nctId\": \"NCT04280705\",\n  \"briefTitle\": \"Adaptive COVID-19 Treatment Trial (ACTT)\",\n  \"officialTitle\": \"A Multicenter, Adaptive, Randomized Blinded Controlled Trial...\",\n  \"organization\": \"National Institute of Allergy and Infectious Diseases (NIAID)\",\n  \"overallStatus\": \"COMPLETED\",\n  \"startDate\": \"2020-02-21\",\n  \"completionDate\": \"2020-05-21\",\n  \"leadSponsor\": \"National Institute of Allergy and Infectious Diseases (NIAID)\",\n  \"leadSponsorClass\": \"NIH\",\n  \"conditions\": [\"COVID-19\"],\n  \"studyType\": \"INTERVENTIONAL\",\n  \"phases\": [\"PHASE3\"],\n  \"enrollmentCount\": 1062,\n  \"sex\": \"ALL\",\n  \"minimumAge\": \"18 Years\",\n  \"maximumAge\": \"99 Years\",\n  \"minimumAgeYears\": 18.0,\n  \"maximumAgeYears\": 99.0,\n  \"standardAges\": [\"ADULT\", \"OLDER_ADULT\"],\n  \"healthyVolunteers\": false,\n  \"inclusionCriteria\": [\"Admitted to a hospital with symptoms suggestive of COVID-19 infection.\"],\n  \"exclusionCriteria\": [\"Alanine Transaminase (ALT) or Aspartate Transaminase (AST) > 5 times the upper limit of normal.\"],\n  \"documentTypes\": [\"PROTOCOL\", \"SAP\"],\n  \"documents\": [\n    {\n      \"type\": \"Prot_SAP\",\n      \"label\": \"Study Protocol and Statistical Analysis Plan\",\n      \"filename\": \"Prot_SAP_000.pdf\",\n      \"sizeBytes\": 989192,\n      \"url\": \"https://clinicaltrials.gov/ProvidedDocs/05/NCT04280705/Prot_SAP_000.pdf\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"facility\": \"National Institutes of Health Clinical Center\",\n      \"city\": \"Bethesda\",\n      \"state\": \"Maryland\",\n      \"country\": \"United States\"\n    }\n  ],\n  \"locationCountries\": [\"United States\", \"Japan\"],\n  \"locationCount\": 73,\n  \"hasResults\": true,\n  \"studyUrl\": \"https://clinicaltrials.gov/study/NCT04280705\",\n  \"recordType\": \"clinicalTrial\",\n  \"scrapedAt\": \"2026-11-24T12:00:00+00:00\"\n}\n```\n\n### Available fields\n\n- **Identification**: `nctId`, `briefTitle`, `officialTitle`, `acronym`, `organization`, `organizationClass`, `orgStudyId`\n- **Status & dates**: `overallStatus`, `startDate`, `startDateType`, `primaryCompletionDate`, `completionDate`, `studyFirstSubmitDate`, `studyFirstPostDate`, `lastUpdateSubmitDate`, `lastUpdatePostDate`, `resultsFirstPostDate`, `statusVerifiedDate`, `hasExpandedAccess`\n- **Sponsors**: `leadSponsor`, `leadSponsorClass`, `collaborators[]`, `responsiblePartyType`, `responsiblePartyInvestigator`\n- **Oversight**: `isFdaRegulatedDrug`, `isFdaRegulatedDevice`, `hasDataMonitoringCommittee`, `fdaaa801Violation`\n- **Description**: `briefSummary`, `detailedDescription`\n- **Conditions**: `conditions[]`, `keywords[]`\n- **Design**: `studyType`, `phases[]`, `enrollmentCount`, `enrollmentType`, `allocation`, `interventionModel`, `primaryPurpose`, `masking`, `whoMasked[]`, `observationalModel`, `timePerspective`, `targetDuration`, `patientRegistry`\n- **Arms / interventions**: `armGroups[]`, `interventions[]`, `interventionNames[]`, `interventionTypes[]`\n- **Eligibility**: `eligibilityCriteria`, `inclusionCriteria[]`, `exclusionCriteria[]`, `sex`, `minimumAge`, `maximumAge`, `minimumAgeYears`, `maximumAgeYears`, `standardAges[]`, `healthyVolunteers`\n- **Outcomes**: `primaryOutcomes[]`, `secondaryOutcomes[]`\n- **Locations**: `locations[]`, `locationCities[]`, `locationStates[]`, `locationCountries[]`, `locationCount`, `overallOfficials[]`\n- **Documents**: `documents[]`, `documentTypes[]`, `documentCount`\n- **Results** (with `includeResults`): `results` → `participantFlowGroupCount`, `participantFlowPeriodCount`, `baselineGroupCount`, `outcomeMeasureCount`, `outcomeMeasureTypes[]`, `topOutcomeMeasures[]`, `seriousAdverseEventCount`, `otherAdverseEventCount`, `adverseEventFrequencyThreshold`, `adverseEventTimeFrame`, `limitationsAndCaveats`, `resultsUrl`\n- **Derived**: `studyUrl`, `recordType`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | enum | `search` | `search`, `byNctIds`, `byCondition`, `byIntervention`, `byLocation`, `bySponsor`, `byTitle`, `byOutcome`, `byStudyId`, `byFacility` |\n| `searchQuery` | string | `cancer immunotherapy` | Free-text query for `mode=search`; fallback for the other browse modes |\n| `conditionQuery` | string | – | Disease or condition for `mode=byCondition` |\n| `interventionQuery` | string | – | Drug, device, biological or therapy for `mode=byIntervention` |\n| `interventionTypes` | array enum | – | Drug / Device / Biological / Procedure / Behavioral / Dietary supplement / Combination product / Diagnostic test / Genetic / Other |\n| `locationQuery` | string | – | City, state or country text for `mode=byLocation` |\n| `sponsorQuery` | string | – | Sponsor name for `mode=bySponsor`; exact registered names work best |\n| `sponsorScope` | enum | `lead` | `lead` (lead sponsor only) or `all` (lead sponsor plus collaborators) |\n| `titleQuery` | string | – | Words from the title or acronym for `mode=byTitle` |\n| `outcomeQuery` | string | – | Words from an outcome measure for `mode=byOutcome` |\n| `studyIdQuery` | string | – | Sponsor's own study identifier for `mode=byStudyId` |\n| `facilityQuery` | string | – | Trial-site facility name for `mode=byFacility` |\n| `nctIds` | array | – | NCT IDs or study URLs for `mode=byNctIds`; repeats are dropped |\n| `startUrl` | string | – | Study, search-results or `api/v2/studies` URL; parsed values override the matching fields |\n| `statuses` | array enum | – | Any of the 14 recruitment/overall statuses |\n| `studyTypes` | array enum | – | Interventional / Observational / Expanded Access |\n| `phases` | array enum | – | Early Phase 1 / Phase 1 / 2 / 3 / 4 / Not Applicable |\n| `sex` | enum | – | `ALL` (both sexes only), `MALE`, `FEMALE`; empty keeps every study |\n| `ageGroups` | array enum | – | Child / Adult / Older Adult |\n| `healthyVolunteersFilter` | enum | – | `yes` or `no`; empty means no filter |\n| `ageRangeUnit` | enum | `years` | Unit for `ageRangeFrom` and `ageRangeTo`: `years` or `months` |\n| `ageRangeFrom` | int | – | Lower bound of the eligible-age overlap window (0-1440) |\n| `ageRangeTo` | int | – | Upper bound of the eligible-age overlap window (0-1440) |\n| `country` | enum | – | 54 common trial countries |\n| `countryText` | string | – | Any country name; overrides `country` |\n| `state` | string | – | Registered state or region name (not a two-letter code) |\n| `sponsorClass` | enum | – | NIH / Other US federal / Industry / Network / Individual / Other / Other government / Unknown / Ambiguous |\n| `fdaRegulated` | enum | – | `drug` or `device` |\n| `onlyPatientRegistries` | bool | `false` | Keep only studies flagged as patient registries |\n| `onlyFdaaaViolations` | bool | `false` | Keep only studies with an FDAAA 801 violation |\n| `resultsAvailability` | enum | – | `with_results` or `without_results` |\n| `startDateFrom` | string | – | Study-start lower bound |\n| `startDateTo` | string | – | Study-start upper bound |\n| `primaryCompletionDateFrom` | string | – | Primary-completion lower bound |\n| `primaryCompletionDateTo` | string | – | Primary-completion upper bound |\n| `completionDateFrom` | string | – | Study-completion lower bound |\n| `completionDateTo` | string | – | Study-completion upper bound |\n| `firstPostedDateFrom` | string | – | First-posted lower bound |\n| `firstPostedDateTo` | string | – | First-posted upper bound |\n| `resultsFirstPostedDateFrom` | string | – | Results-first-posted lower bound |\n| `resultsFirstPostedDateTo` | string | – | Results-first-posted upper bound |\n| `lastUpdatePostedDateFrom` | string | – | Last-update lower bound |\n| `lastUpdatePostedDateTo` | string | – | Last-update upper bound |\n| `enrollmentFrom` | int | – | Minimum planned or actual enrollment |\n| `enrollmentTo` | int | – | Maximum planned or actual enrollment |\n| `containsKeyword` | string | – | Client-side case-insensitive substring across title, summary, eligibility, conditions, keywords and interventions |\n| `documentTypes` | array enum | – | Protocol / Statistical analysis plan / Informed consent form |\n| `sort` | enum | `relevance` | Relevance, last update, start/completion/first-posted/results dates or enrollment |\n| `includeResults` | bool | `false` | Add the compact `results` summary when the study has posted results |\n| `maxItems` | int | `50` | Hard cap (1-10,000); prefill `3` for the smallest paid test run |\n\nDates accept ISO 8601 partial values — `2020`, `2020-01` or `2020-01-15`.\n\n### Example: a sponsor's recruiting pipeline\n\n```json\n{\n  \"mode\": \"bySponsor\",\n  \"sponsorQuery\": \"Mayo Clinic\",\n  \"sponsorScope\": \"lead\",\n  \"statuses\": [\"RECRUITING\"],\n  \"studyTypes\": [\"INTERVENTIONAL\"],\n  \"sort\": \"lastUpdateDesc\",\n  \"maxItems\": 100\n}\n```\n\n### Example: what is running at sites in a country\n\n```json\n{\n  \"mode\": \"byLocation\",\n  \"locationQuery\": \"Germany\",\n  \"phases\": [\"PHASE2\", \"PHASE3\"],\n  \"country\": \"Germany\",\n  \"maxItems\": 200\n}\n```\n\n### Example: resolve a saved NCT list, including URLs\n\n```json\n{\n  \"mode\": \"byNctIds\",\n  \"nctIds\": [\n    \"NCT04280705\",\n    \"https://clinicaltrials.gov/study/NCT03695107\",\n    \"NCT04611802\"\n  ],\n  \"includeResults\": true\n}\n```\n\n### Example: filtered condition landscape by URL\n\n```json\n{\n  \"startUrl\": \"https://clinicaltrials.gov/search?cond=breast%20cancer&aggFilters=status:rec%20act,phase:3,studyType:int&country=United%20States\",\n  \"ageRangeFrom\": 18,\n  \"ageRangeTo\": 65,\n  \"maxItems\": 500\n}\n```\n\n## Legacy input compatibility\n\nSaved tasks and integrations built on earlier versions keep working. The actor maps these old keys in code without showing them in the input form:\n\n`query`, `searchTerm`, `term`, `keyword`, `q`, `condition`, `cond`, `intervention`, `intr`, `location`, `locationTerm`, `locn`, `sponsor`, `sponsorOrCollaborator`, `leadSponsor`, `titleOrAcronym`, `outcomeMeasure`, `studyIds`, `nctId`, `nct_id`, `status`, `overallStatus`, `statusFilter`, `studyType`, `phase`, `phaseFilter`, `hasResults`, `resultsSubmitted`, `acceptsHealthyVolunteers`, `healthyVolunteers`, `maxStudies`, `maxResults`, `limit`, `sortBy`, `studyStartDateFrom/To`, `studyCompletionDateFrom/To`, `postedFrom/To`, `url`, `searchUrl`.\n\nOnly the fields the actor actually reads are shown in the form; old keys are accepted in the raw input and mapped onto the current contract.\n\n## Use cases\n\n- **Competitive intelligence** — collect every registered trial for a named sponsor, including collaborators, and sort by the latest update\n- **Site feasibility** — see which studies are recruiting around a city, state or country before opening a new site\n- **Portfolio tracking** — resolve a spreadsheet of NCT IDs into current status, dates and enrollment on a schedule\n- **Patient matching** — combine condition, sex and age-window filters with the raw inclusion/exclusion criteria\n- **Regulatory and policy work** — monitor FDA-regulated studies, posted results and protocol/SAP/ICF documents\n- **Research data pipelines** — export a filtered trial landscape with structured interventions, outcomes and locations\n\n## FAQ\n\n**Who runs ClinicalTrials.gov?** The US National Library of Medicine, part of the National Institutes of Health. Sponsors and investigators worldwide submit and update the records.\n\n**Is this an official ClinicalTrials.gov or NIH product?** No. It is an independent client for the registry's public v2 API.\n\n**Why does a sponsor lookup sometimes miss a company I know?** The API matches the registered sponsor string, so `Pfizer` and `Pfizer Inc.` are not identical. Check the exact name in a ClinicalTrials.gov record, and remember that collaborators are only searched when `sponsorScope` is `all`.\n\n**What happens with a mixed NCT list?** Valid IDs resolve; IDs that do not match a study are omitted, and the status message reports how many were emitted. Duplicate IDs are removed before lookup.\n\n**Do I need an API key or proxy?** No. The actor calls the public registry directly and never uses cookies or credentials.\n\n**How does pagination stop?** It stops when `maxItems` is reached, when the registry returns no further page token, or when the query is exhausted. It never pads the dataset to hit the cap.\n\n**What is the difference between `locations[]` and the flattened location fields?** `locations[]` holds one object per trial site (facility, city, state, zip, country, coordinates). `locationCities[]`, `locationStates[]` and `locationCountries[]` are convenience lists derived from those sites, and `locationCount` is the number of sites.\n\n**Why do some dates have only a month?** Sponsors may register partial dates. The actor preserves the precision the registry supplies instead of inventing a day.\n\n**What does `includeResults` add?** A small `results` object with counts, a five-item outcome-measure sample, adverse-event counts, limitations and a `resultsUrl` — not the full results tables.\n\n**Are filters applied before or after download?** Status, study type, phase, intervention type, age group, country, state, facility, funder, healthy volunteers, registries, FDAAA, results availability, FDA regulation, documents, enrollment and date ranges are applied by the API. Sex, age-window overlap and the keyword substring are re-checked after fetch; the status message notes when that reduces the result set.\n\n**Why is `officialTitle` sometimes absent?** Many records register only a brief title. The actor omits fields the registry does not provide rather than sending a placeholder.\n",
      "input": {
        "title": "ClinicalTrials.gov Sponsor, Location & NCT Lookup Input",
        "description": "Query the public ClinicalTrials.gov v2 registry without a login, cookie or proxy. Choose a sponsor, trial-site location or NCT-ID lookup, or search by condition, intervention, title, outcome, study ID or facility. Narrow by recruitment status, study type, phase, eligibility, funder, documents, results, enrollment and dates, then page to as many as 10,000 matching studies.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "Which lookup axis to use.",
            "editor": "select",
            "enum": [
              "search",
              "byNctIds",
              "byCondition",
              "byIntervention",
              "byLocation",
              "bySponsor",
              "byTitle",
              "byOutcome",
              "byStudyId",
              "byFacility"
            ],
            "enumTitles": [
              "Free-text search (all fields)",
              "Lookup by NCT IDs",
              "Browse by condition / disease",
              "Browse by intervention / drug",
              "Browse by location / country",
              "Browse by sponsor",
              "Search by title / acronym",
              "Search by outcome measure",
              "Lookup by sponsor study ID",
              "Search by facility name"
            ],
            "default": "search",
            "prefill": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Free-text query against the full study record. Used by mode=search; also serves as a fallback for the other browse modes if their specific query is empty.",
            "editor": "textfield",
            "default": "cancer immunotherapy",
            "prefill": "cancer immunotherapy"
          },
          "conditionQuery": {
            "title": "Condition / disease (mode=byCondition)",
            "type": "string",
            "description": "Disease, condition, or medical term (e.g. `diabetes`, `breast cancer`, `Alzheimer disease`).",
            "editor": "textfield"
          },
          "interventionQuery": {
            "title": "Intervention / drug (mode=byIntervention)",
            "type": "string",
            "description": "Drug name, device, biological, or therapy (e.g. `metformin`, `pembrolizumab`, `CAR-T`).",
            "editor": "textfield"
          },
          "interventionTypes": {
            "title": "Intervention types",
            "type": "array",
            "description": "Keep studies with any of the selected intervention types. Empty = no intervention-type filter.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "DRUG",
                "DEVICE",
                "BIOLOGICAL",
                "PROCEDURE",
                "BEHAVIORAL",
                "DIETARY_SUPPLEMENT",
                "COMBINATION_PRODUCT",
                "DIAGNOSTIC_TEST",
                "GENETIC",
                "OTHER"
              ],
              "enumTitles": [
                "Drug",
                "Device",
                "Biological",
                "Procedure",
                "Behavioral",
                "Dietary supplement",
                "Combination product",
                "Diagnostic test",
                "Genetic",
                "Other"
              ]
            },
            "uniqueItems": true,
            "default": [],
            "prefill": []
          },
          "locationQuery": {
            "title": "Location (mode=byLocation)",
            "type": "string",
            "description": "Geographic location text (city, state, country) — e.g. `Boston`, `California`, `United States`.",
            "editor": "textfield"
          },
          "sponsorQuery": {
            "title": "Sponsor (mode=bySponsor)",
            "type": "string",
            "description": "Lead sponsor or collaborator name. Use `sponsorScope` to choose which one. Exact registered names work best (e.g. `Pfizer Inc.`, `Mayo Clinic`); partial names usually still match.",
            "editor": "textfield"
          },
          "sponsorScope": {
            "title": "Sponsor scope",
            "type": "string",
            "description": "Match `sponsorQuery` against the lead sponsor only or against lead sponsor plus collaborators.",
            "editor": "select",
            "enum": [
              "lead",
              "all"
            ],
            "enumTitles": [
              "Lead sponsor only",
              "Lead sponsor or collaborator"
            ],
            "default": "lead",
            "prefill": "lead"
          },
          "titleQuery": {
            "title": "Title / acronym (mode=byTitle)",
            "type": "string",
            "description": "Words from the brief title, official title or acronym (e.g. `remdesivir`, `ACTT`).",
            "editor": "textfield"
          },
          "outcomeQuery": {
            "title": "Outcome measure (mode=byOutcome)",
            "type": "string",
            "description": "Words from a primary or secondary outcome measure (e.g. `quality of life`, `progression-free survival`).",
            "editor": "textfield"
          },
          "studyIdQuery": {
            "title": "Sponsor study ID (mode=byStudyId)",
            "type": "string",
            "description": "The sponsor's own study identifier (e.g. `20-0006`, `SC2900`). Exact identifier only.",
            "editor": "textfield"
          },
          "facilityQuery": {
            "title": "Facility name (mode=byFacility)",
            "type": "string",
            "description": "Trial-site facility name (e.g. `Mayo Clinic`, `Johns Hopkins`).",
            "editor": "textfield"
          },
          "nctIds": {
            "title": "NCT IDs (mode=byNctIds)",
            "type": "array",
            "description": "List of NCT identifiers like `NCT04280705`. Full URLs (`https://clinicaltrials.gov/study/NCT...`) are also accepted.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "startUrl": {
            "title": "Start from a ClinicalTrials.gov URL",
            "type": "string",
            "description": "Paste a study URL (`https://clinicaltrials.gov/study/NCT...`), a search-results URL, or an `https://clinicaltrials.gov/api/v2/studies?...` URL. Values in the URL take precedence over the matching input fields; the remaining filters still apply.",
            "editor": "textfield"
          },
          "statuses": {
            "title": "Recruitment / overall status",
            "type": "array",
            "description": "Keep studies with any of the selected statuses. Empty = no status filter.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "NOT_YET_RECRUITING",
                "RECRUITING",
                "ENROLLING_BY_INVITATION",
                "ACTIVE_NOT_RECRUITING",
                "SUSPENDED",
                "TERMINATED",
                "COMPLETED",
                "WITHDRAWN",
                "UNKNOWN",
                "AVAILABLE",
                "NO_LONGER_AVAILABLE",
                "TEMPORARILY_NOT_AVAILABLE",
                "APPROVED_FOR_MARKETING",
                "WITHHELD"
              ],
              "enumTitles": [
                "Not yet recruiting",
                "Recruiting",
                "Enrolling by invitation",
                "Active, not recruiting",
                "Suspended",
                "Terminated",
                "Completed",
                "Withdrawn",
                "Unknown",
                "Available (expanded access)",
                "No longer available (expanded access)",
                "Temporarily not available (expanded access)",
                "Approved for marketing (expanded access)",
                "Withheld"
              ]
            },
            "uniqueItems": true,
            "default": [],
            "prefill": []
          },
          "studyTypes": {
            "title": "Study type",
            "type": "array",
            "description": "Keep studies of any of the selected types. Empty = no study-type filter.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "INTERVENTIONAL",
                "OBSERVATIONAL",
                "EXPANDED_ACCESS"
              ],
              "enumTitles": [
                "Interventional (clinical trial)",
                "Observational",
                "Expanded access (compassionate use)"
              ]
            },
            "uniqueItems": true,
            "default": [],
            "prefill": []
          },
          "phases": {
            "title": "Phases",
            "type": "array",
            "description": "Keep studies in any of the selected trial phases. Empty = no phase filter.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "EARLY_PHASE1",
                "PHASE1",
                "PHASE2",
                "PHASE3",
                "PHASE4",
                "NA"
              ],
              "enumTitles": [
                "Early Phase 1",
                "Phase 1",
                "Phase 2",
                "Phase 3",
                "Phase 4",
                "Not Applicable"
              ]
            },
            "uniqueItems": true,
            "default": [],
            "prefill": []
          },
          "sex": {
            "title": "Eligible sex",
            "type": "string",
            "description": "Restrict by the sex a study enrolls. `ALL` keeps only studies open to both sexes; `MALE`/`FEMALE` keep studies open to that sex (including both-sex studies).",
            "editor": "select",
            "enum": [
              "",
              "ALL",
              "MALE",
              "FEMALE"
            ],
            "enumTitles": [
              "Any",
              "All sexes (both)",
              "Male (including all-sex studies)",
              "Female (including all-sex studies)"
            ]
          },
          "ageGroups": {
            "title": "Age groups",
            "type": "array",
            "description": "Keep studies that enroll any of the selected age groups. Empty = no age-group filter.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "CHILD",
                "ADULT",
                "OLDER_ADULT"
              ],
              "enumTitles": [
                "Child (birth-17)",
                "Adult (18-64)",
                "Older Adult (65+)"
              ]
            },
            "uniqueItems": true,
            "default": [],
            "prefill": []
          },
          "healthyVolunteersFilter": {
            "title": "Accepts healthy volunteers",
            "type": "string",
            "description": "Keep studies that do or do not accept healthy volunteers. Empty = no filter.",
            "editor": "select",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "enumTitles": [
              "Any",
              "Accepts healthy volunteers",
              "Does not accept healthy volunteers"
            ]
          },
          "ageRangeUnit": {
            "title": "Age range unit",
            "type": "string",
            "description": "Unit for ageRangeFrom/ageRangeTo.",
            "editor": "select",
            "enum": [
              "years",
              "months"
            ],
            "enumTitles": [
              "Years",
              "Months"
            ],
            "default": "years",
            "prefill": "years"
          },
          "ageRangeFrom": {
            "title": "Age range — from (years)",
            "type": "integer",
            "description": "Keep studies whose eligibility age window overlaps this lower bound, expressed in `ageRangeUnit` (years by default). Studies with no age limit are treated as 0-120 years.",
            "minimum": 0,
            "maximum": 1440
          },
          "ageRangeTo": {
            "title": "Age range — to (years)",
            "type": "integer",
            "description": "Keep studies whose eligibility age window overlaps this upper bound, expressed in `ageRangeUnit`.",
            "minimum": 0,
            "maximum": 1440
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Keep studies with a trial location in this country.",
            "editor": "select",
            "enum": [
              "",
              "United States",
              "Canada",
              "United Kingdom",
              "Germany",
              "France",
              "Italy",
              "Spain",
              "Netherlands",
              "Belgium",
              "Sweden",
              "Norway",
              "Denmark",
              "Finland",
              "Switzerland",
              "Austria",
              "Poland",
              "Czechia",
              "Hungary",
              "Romania",
              "Bulgaria",
              "Greece",
              "Portugal",
              "Ireland",
              "Iceland",
              "Russia",
              "Ukraine",
              "Turkey",
              "Israel",
              "Saudi Arabia",
              "United Arab Emirates",
              "Egypt",
              "South Africa",
              "China",
              "Japan",
              "Korea, Republic of",
              "Taiwan",
              "Hong Kong",
              "India",
              "Pakistan",
              "Bangladesh",
              "Thailand",
              "Vietnam",
              "Indonesia",
              "Malaysia",
              "Singapore",
              "Philippines",
              "Australia",
              "New Zealand",
              "Mexico",
              "Brazil",
              "Argentina",
              "Chile",
              "Colombia",
              "Peru"
            ],
            "enumTitles": [
              "Any country",
              "United States",
              "Canada",
              "United Kingdom",
              "Germany",
              "France",
              "Italy",
              "Spain",
              "Netherlands",
              "Belgium",
              "Sweden",
              "Norway",
              "Denmark",
              "Finland",
              "Switzerland",
              "Austria",
              "Poland",
              "Czechia",
              "Hungary",
              "Romania",
              "Bulgaria",
              "Greece",
              "Portugal",
              "Ireland",
              "Iceland",
              "Russia",
              "Ukraine",
              "Turkey",
              "Israel",
              "Saudi Arabia",
              "United Arab Emirates",
              "Egypt",
              "South Africa",
              "China",
              "Japan",
              "Korea, Republic of",
              "Taiwan",
              "Hong Kong",
              "India",
              "Pakistan",
              "Bangladesh",
              "Thailand",
              "Vietnam",
              "Indonesia",
              "Malaysia",
              "Singapore",
              "Philippines",
              "Australia",
              "New Zealand",
              "Mexico",
              "Brazil",
              "Argentina",
              "Chile",
              "Colombia",
              "Peru"
            ]
          },
          "countryText": {
            "title": "Country name (any)",
            "type": "string",
            "description": "Any country name, including countries not in the dropdown. Takes precedence over `country`.",
            "editor": "textfield"
          },
          "state": {
            "title": "State / region",
            "type": "string",
            "description": "Trial-site state or region as registered on ClinicalTrials.gov (e.g. `California`, `Ontario`). Exact name, not a two-letter code.",
            "editor": "textfield"
          },
          "sponsorClass": {
            "title": "Funder type",
            "type": "string",
            "description": "Keep studies by lead-sponsor class. Empty = no funder filter.",
            "editor": "select",
            "enum": [
              "",
              "NIH",
              "FED",
              "INDUSTRY",
              "NETWORK",
              "INDIV",
              "OTHER",
              "OTHER_GOV",
              "UNKNOWN",
              "AMBIG"
            ],
            "enumTitles": [
              "Any funder type",
              "NIH",
              "Other U.S. federal agency",
              "Industry",
              "Network",
              "Individual",
              "All others (universities, organizations, individuals)",
              "Other government",
              "Unknown",
              "Ambiguous"
            ]
          },
          "fdaRegulated": {
            "title": "FDA-regulated",
            "type": "string",
            "description": "Keep studies that are FDA-regulated drug or device trials. Empty = no filter.",
            "editor": "select",
            "enum": [
              "",
              "drug",
              "device"
            ],
            "enumTitles": [
              "Any",
              "FDA-regulated drug",
              "FDA-regulated device"
            ]
          },
          "onlyPatientRegistries": {
            "title": "Patient registries only",
            "type": "boolean",
            "description": "When enabled, keep only studies flagged as patient registries.",
            "default": false,
            "prefill": false
          },
          "onlyFdaaaViolations": {
            "title": "FDAAA 801 violations only",
            "type": "boolean",
            "description": "When enabled, keep only studies with an FDAAA 801 violation.",
            "default": false,
            "prefill": false
          },
          "resultsAvailability": {
            "title": "Study results",
            "type": "string",
            "description": "Keep studies with or without posted results. Empty = no filter.",
            "editor": "select",
            "enum": [
              "",
              "with_results",
              "without_results"
            ],
            "enumTitles": [
              "Any",
              "With posted results",
              "Without posted results"
            ]
          },
          "startDateFrom": {
            "title": "Study start — from",
            "type": "string",
            "description": "Drop studies that started before this date. ISO 8601 partial dates accepted (e.g. `2020`, `2020-01`, `2020-01-15`).",
            "editor": "textfield"
          },
          "startDateTo": {
            "title": "Study start — to",
            "type": "string",
            "description": "Drop studies that started after this date.",
            "editor": "textfield"
          },
          "primaryCompletionDateFrom": {
            "title": "Primary completion — from",
            "type": "string",
            "description": "Drop studies whose primary completion date is before this date.",
            "editor": "textfield"
          },
          "primaryCompletionDateTo": {
            "title": "Primary completion — to",
            "type": "string",
            "description": "Drop studies whose primary completion date is after this date.",
            "editor": "textfield"
          },
          "completionDateFrom": {
            "title": "Study completion — from",
            "type": "string",
            "description": "Drop studies whose completion date is before this date.",
            "editor": "textfield"
          },
          "completionDateTo": {
            "title": "Study completion — to",
            "type": "string",
            "description": "Drop studies whose completion date is after this date.",
            "editor": "textfield"
          },
          "firstPostedDateFrom": {
            "title": "First posted — from",
            "type": "string",
            "description": "Drop studies first posted before this date.",
            "editor": "textfield"
          },
          "firstPostedDateTo": {
            "title": "First posted — to",
            "type": "string",
            "description": "Drop studies first posted after this date.",
            "editor": "textfield"
          },
          "resultsFirstPostedDateFrom": {
            "title": "Results first posted — from",
            "type": "string",
            "description": "Drop studies whose results were first posted before this date.",
            "editor": "textfield"
          },
          "resultsFirstPostedDateTo": {
            "title": "Results first posted — to",
            "type": "string",
            "description": "Drop studies whose results were first posted after this date.",
            "editor": "textfield"
          },
          "lastUpdatePostedDateFrom": {
            "title": "Last update posted — from",
            "type": "string",
            "description": "Drop studies last updated before this date.",
            "editor": "textfield"
          },
          "lastUpdatePostedDateTo": {
            "title": "Last update posted — to",
            "type": "string",
            "description": "Drop studies last updated after this date.",
            "editor": "textfield"
          },
          "enrollmentFrom": {
            "title": "Enrollment — minimum",
            "type": "integer",
            "description": "Drop studies whose planned or actual enrollment is below this number.",
            "minimum": 0,
            "maximum": 10000000
          },
          "enrollmentTo": {
            "title": "Enrollment — maximum",
            "type": "integer",
            "description": "Drop studies whose planned or actual enrollment is above this number.",
            "minimum": 0,
            "maximum": 10000000
          },
          "containsKeyword": {
            "title": "Contains keyword",
            "type": "string",
            "description": "Client-side filter: keep only records whose title, summary, eligibility, conditions, keywords, or interventions contain this substring (case-insensitive).",
            "editor": "textfield"
          },
          "documentTypes": {
            "title": "Study documents",
            "type": "array",
            "description": "Keep studies that have any of these documents posted. Empty = no document filter.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "PROTOCOL",
                "SAP",
                "ICF"
              ],
              "enumTitles": [
                "Study protocol",
                "Statistical analysis plan (SAP)",
                "Informed consent form (ICF)"
              ]
            },
            "uniqueItems": true,
            "default": [],
            "prefill": []
          },
          "sort": {
            "title": "Sort by",
            "type": "string",
            "description": "Order of the results returned by ClinicalTrials.gov.",
            "editor": "select",
            "enum": [
              "relevance",
              "lastUpdateDesc",
              "lastUpdateAsc",
              "startDateDesc",
              "startDateAsc",
              "completionDateDesc",
              "completionDateAsc",
              "firstPostedDesc",
              "firstPostedAsc",
              "resultsFirstPostedDesc",
              "resultsFirstPostedAsc",
              "enrollmentDesc",
              "enrollmentAsc"
            ],
            "enumTitles": [
              "Relevance",
              "Last update — newest first",
              "Last update — oldest first",
              "Start date — newest first",
              "Start date — oldest first",
              "Completion date — newest first",
              "Completion date — oldest first",
              "First posted — newest first",
              "First posted — oldest first",
              "Results first posted — newest first",
              "Results first posted — oldest first",
              "Enrollment — largest first",
              "Enrollment — smallest first"
            ],
            "default": "relevance",
            "prefill": "relevance"
          },
          "includeResults": {
            "title": "Include posted results summary",
            "type": "boolean",
            "description": "When enabled, add a compact `results` object (participant-flow/baseline group counts, outcome-measure counts and a 5-item sample, adverse-event counts, limitations) for studies with posted results.",
            "default": false,
            "prefill": false,
            "groupCaption": "Output"
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "minimum": 1,
            "maximum": 10000,
            "default": 50,
            "prefill": 3
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "ClinicalTrials.gov Sponsor, Location & NCT Lookup Tool Output",
        "description": "Clinical-trial records resolved by sponsor, trial-site location or NCT ID — identification, status and dates, sponsors, design, eligibility, locations, outcomes, posted documents, optional results summary and a direct study URL.",
        "properties": {
          "studies": {
            "type": "string",
            "title": "Clinical trial studies",
            "description": "Dataset containing all scraped clinical-trial records.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Clinical trials",
              "transformation": {
                "fields": [
                  "nctId",
                  "briefTitle",
                  "overallStatus",
                  "studyType",
                  "phases",
                  "conditions",
                  "leadSponsor",
                  "enrollmentCount",
                  "startDate",
                  "completionDate",
                  "hasResults",
                  "studyUrl"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            },
            "eligibility": {
              "title": "Eligibility",
              "transformation": {
                "fields": [
                  "nctId",
                  "briefTitle",
                  "overallStatus",
                  "sex",
                  "minimumAge",
                  "maximumAge",
                  "standardAges",
                  "healthyVolunteers",
                  "conditions",
                  "locationCountries",
                  "studyUrl"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            },
            "results": {
              "title": "Posted results",
              "transformation": {
                "fields": [
                  "nctId",
                  "briefTitle",
                  "hasResults",
                  "results.outcomeMeasureCount",
                  "results.seriousAdverseEventCount",
                  "results.otherAdverseEventCount",
                  "studyUrl"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.1.1",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.1"
    }
  }
}