Discover/clinicaltrials.gov API
live

clinicaltrials.gov APIclinicaltrials.gov

Access clinical trial data from ClinicalTrials.gov: search studies by condition or intervention, retrieve full protocols, results, eligibility, metadata, and stats.

Endpoints
8
Updated
3mo ago
Try it
Sort order (e.g. '@relevance' or field name with :asc/:desc such as 'LastUpdatePostDate:de
Comma-separated list of fields to return (e.g. 'NCTId,BriefTitle')
Response format: 'json' or 'csv'
Number of results per page (max 1000)
Token for next page of results, obtained from a previous response's nextPageToken
Search by condition or disease (e.g. 'diabetes', 'cancer')
Search by intervention or treatment (e.g. 'aspirin')
General search terms
Advanced filter expression using Essie expression syntax
Filter by study status (e.g. 'RECRUITING', 'COMPLETED', 'ACTIVE_NOT_RECRUITING')
api.parse.bot/scraper/5119bcad-b856-44f8-8ee6-bfe31e079b44/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/5119bcad-b856-44f8-8ee6-bfe31e079b44/search_studies?pageSize=2&query_cond=cancer&query_term=diabetes' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 8 totalclick to expand

Search for clinical trials with extensive filtering and pagination. Supports condition, intervention, status, and more. Returns paginated results with a nextPageToken for cursor-based pagination.

Input
ParamTypeDescription
sortstringSort order (e.g. '@relevance' or field name with :asc/:desc such as 'LastUpdatePostDate:desc')
fieldsstringComma-separated list of fields to return (e.g. 'NCTId,BriefTitle')
formatstringResponse format: 'json' or 'csv'
pageSizeintegerNumber of results per page (max 1000)
pageTokenstringToken for next page of results, obtained from a previous response's nextPageToken
query_condstringSearch by condition or disease (e.g. 'diabetes', 'cancer')
query_intrstringSearch by intervention or treatment (e.g. 'aspirin')
query_termstringGeneral search terms
filter_advancedstringAdvanced filter expression using Essie expression syntax
filter_overallstatusstringFilter by study status (e.g. 'RECRUITING', 'COMPLETED', 'ACTIVE_NOT_RECRUITING')
Response
{
  "type": "object",
  "fields": {
    "studies": "array of study objects containing protocolSection, derivedSection, and hasResults",
    "totalCount": "integer total number of matching studies",
    "nextPageToken": "string pagination token for next page, absent on last page"
  },
  "sample": {
    "data": {
      "studies": [
        {
          "hasResults": false,
          "derivedSection": {
            "miscInfoModule": {
              "versionHolder": "2026-05-13"
            }
          },
          "protocolSection": {
            "identificationModule": {
              "nctId": "NCT05421780",
              "briefTitle": "Post-prandial Glycaemic Controlling Effects of BSG in Singapore Adults With Metabolic Syndrome"
            }
          }
        }
      ],
      "totalCount": 25000,
      "nextPageToken": "ZVJj7o2Elu8o3lp1D828oarumpOQJJxuZ_Gp"
    },
    "status": "success"
  }
}

About the clinicaltrials.gov API

This API exposes 8 endpoints covering the full ClinicalTrials.gov study registry, from searching trials by condition or intervention to retrieving complete protocol and results data for a single NCT ID. The search_studies endpoint supports filtering by condition, intervention, and trial status with cursor-based pagination, while get_study returns the complete protocol section, eligibility criteria, outcome measures, adverse events, and participant flow for any registered trial.

Study Search and Retrieval

The search_studies endpoint accepts parameters including query_cond (condition or disease), query_intr (intervention or treatment), query_term (general terms), sort, and pageSize (up to 1000 per page). Results include an array of study objects — each with a protocolSection, derivedSection, and hasResults flag — plus a totalCount and a nextPageToken for cursor-based pagination. For a complete single-study record, get_study takes an NCT ID and returns the full protocolSection (identification, status, sponsor, description, design, outcomes, eligibility, contacts) and, when available, a resultsSection containing participant flow, baseline characteristics, outcome measures, and adverse events.

Bulk Retrieval and Metadata

The list_all_studies endpoint handles multi-page bulk retrieval automatically, accepting a limit and optional fields list, and returning the studies array alongside a total_returned count. For schema exploration, get_studies_metadata returns the full hierarchical field model — every field name, type, source type, title, and nested children — so you can identify exactly which fields to request. get_search_areas maps query parameters to underlying data fields and their weights, useful for understanding how query_cond or query_intr translate to indexed fields.

Enumerations and Database Statistics

get_enums returns all valid values for categorical fields (e.g. trial status, phase, sponsor type), each entry listing the enum type name, accepted values array, and the field names that use it — essential for building validated filter UIs. get_stats_size gives aggregate database statistics: total study count, average record size in bytes, percentile distribution, size ranges with per-range study counts, and the largest studies by NCT ID. get_api_version returns the current API version string and a dataTimestamp ISO timestamp indicating when the underlying data was last refreshed.

Common use cases
  • Search open clinical trials for a specific disease using query_cond to surface recruiting studies for patient-matching applications
  • Pull full eligibility criteria and outcome measures from get_study to build structured trial-matching pipelines
  • Enumerate valid trial phase and status values via get_enums to populate validated filter dropdowns in research tools
  • Bulk export trial records with list_all_studies and specified fields for offline analysis or database seeding
  • Monitor database freshness by polling get_api_version for dataTimestamp changes before triggering downstream sync jobs
  • Analyze study size distribution using get_stats_size percentiles and largestStudies for database capacity planning
  • Explore the data model with get_studies_metadata to map available fields before constructing targeted field-subset queries
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does ClinicalTrials.gov have an official developer API?+
Yes. The official ClinicalTrials.gov REST API (v2) is documented at https://clinicaltrials.gov/data-api/api. This Parse API surfaces the same registry data through a consistent interface with additional convenience endpoints like list_all_studies for automatic pagination.
What does `get_study` return for a trial that has posted results?+
When hasResults is true, the response includes a resultsSection alongside the standard protocolSection and derivedSection. The resultsSection contains participant flow, baseline characteristics, outcome measures with their data tables, and adverse event summaries. When hasResults is false, resultsSection is absent.
How does pagination work across `search_studies` and `list_all_studies`?+
search_studies uses cursor-based pagination: each response includes a nextPageToken string that you pass as the pageToken parameter on the next request. The token is absent on the final page. list_all_studies handles this cursor loop automatically up to the limit you specify, returning a flat studies array and a total_returned count.
Can I filter search results by geographic location or trial site country?+
The search_studies endpoint exposes query_cond, query_intr, and query_term as text search parameters, along with sort and field selection. Location-based filtering is not a dedicated parameter in the current endpoint set. You can fork the API on Parse and revise it to add location-specific query parameters if your use case requires geographic filtering.
Does the API expose document attachments or linked publications for a trial?+
The current endpoints cover protocol data, results sections, derived fields, and registry metadata. Linked publications, attached study documents, or PubMed references are not returned as distinct fields. You can fork the API on Parse and revise it to include a dedicated endpoint for referenced publications if that data is available in the registry.
Page content last updated . Spec covers 8 endpoints from clinicaltrials.gov.
Related APIs in HealthcareSee all →
ulta.com API
Search and browse Ulta Beauty's complete product catalog with real-time pricing and inventory information, then dive into detailed product specs including ingredients, usage instructions, and customer reviews. Find exactly what you're looking for across all beauty categories with comprehensive product data at your fingertips.
pubmed.ncbi.nlm.nih.gov API
Search and retrieve biomedical literature from PubMed and NCBI databases. Supports keyword search, advanced field-tag queries, clinical filters, citation matching, date filtering, publication type filtering, and direct E-utilities access.
cvs.com API
Find nearby CVS Pharmacy locations and check their hours, then search for products and verify real-time availability at specific stores. Quickly locate what you need and confirm it's in stock before making a trip.
accessdata.fda.gov API
Search and retrieve comprehensive FDA premarket approval information for medical devices, including approval status, supplements, applicant details, and advisory committee data. Get instant access to specific PMA records with all relevant approval information in one place.
zocdoc.com API
Search for doctors and medical practices on Zocdoc by specialty and location. Retrieve provider profiles, accepted insurance, office locations, patient reviews, and appointment availability.
pmc.ncbi.nlm.nih.gov API
Search millions of full-text biomedical research articles and access their metadata, citations, and related papers from PubMed Central. Find articles by topic, discover similar research, explore journal collections, and retrieve detailed citation information to support your literature review and research.
open.fda.gov API
Search FDA food recall and enforcement actions to find safety information about specific products or manufacturers, and look up adverse events reported to the CFSAN Adverse Event Reporting System (CAERS). Filter, sort, and aggregate data by various fields to analyze food safety trends and monitor enforcement activity.
azbar.org API
Search for Arizona lawyers by name, location, specialty, or company to find the right legal professional for your needs. View detailed lawyer profiles including their specializations, licensed jurisdictions, law school, admission history, and any disciplinary records.