Count matching clinical trials
count_studiesReturn only the total NUMBER of studies matching a query, without fetching any records. Accepts the same query terms and filters as search_studies (term, condition, intervention, title, location, sponsor, status, geoFilter, advanced). Returns { totalCount }. GET /studies with countTotal=true and pageSize=1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | No | General full-text 'other terms' query (maps to query.term). | |
| title | No | Words in the study title (maps to query.titles). | |
| status | No | Filter by overall recruitment status (maps to filter.overallStatus). One or more of: ACTIVE_NOT_RECRUITING, COMPLETED, ENROLLING_BY_INVITATION, NOT_YET_RECRUITING, RECRUITING, SUSPENDED, TERMINATED, WITHDRAWN, AVAILABLE, NO_LONGER_AVAILABLE, TEMPORARILY_NOT_AVAILABLE, APPROVED_FOR_MARKETING, WITHHELD, UNKNOWN. | |
| sponsor | No | Sponsor / collaborator name (maps to query.spons). | |
| advanced | No | Advanced Essie expression applied as an additional filter (maps to filter.advanced). | |
| location | No | Study location text, e.g. a city/state/country (maps to query.locn). | |
| condition | No | Disease / condition to match (maps to query.cond), e.g. 'diabetes'. | |
| geoFilter | No | Geo filter as a raw geo-function string (maps to filter.geo), e.g. 'distance(39.0027,-77.1,50mi)'. | |
| intervention | No | Treatment / drug / intervention to match (maps to query.intr). |