Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Cancer.gov Trials API

The Trials API from Cancer.gov — 2 operation(s) for trials.

Cancer.gov Trials API is one of 10 APIs that Cancer.gov publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Trials. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 3 operations across 2 paths, and defines 3 schemas. It is described by OpenAPI 3.1.0, at version v2.

Requests are made against a single base URL, https://clinicaltrialsapi.cancer.gov/api/v2.

3 operations 2 paths 3 schemas 2 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
v2
Base URL
https://clinicaltrialsapi.cancer.gov/api/v2
Authentication
API Key
Resource Areas
1

Authentication & Security 1

Cancer.gov Trials API declares 1 security scheme for authenticating requests. An API key is passed in the header as X-API-KEY (apiKey). By default, every request must be authenticated.

  • apiKey — Free API key issued by the CTS Developer Accounts portal.

Paths & Operations 3

Across 2 paths, the API surfaces 3 operations — 2 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Trials 3
GET
/trials
Search clinical trials (GET form)
6 params → 200
POST
/trials
Search clinical trials (POST form)
body → 200
GET
/trials/{id}
Retrieve a single clinical trial
1 param → 200404

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are Trial (14 properties), TrialSearchQuery (10 properties), TrialSearchResponse (2 properties). Each schema is shown below with its type and property counts.

Trial
object
NCI clinical trial document.
14 properties
TrialSearchQuery
object
Free-form search query supported by the trials endpoint.
10 properties
TrialSearchResponse
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

cancer-gov-trials-api-openapi.yml Raw ↑

Other APIs Cancer.gov publishes across the network.

NCI Clinical Trials Search API
NCI Genomic Data Commons (GDC) API
NCI SEER API
NCI MoDaC API
NCI EVS Terminology API
NCI Content Syndication Services
Cancer.gov Diseases API
Cancer.gov Interventions API
Cancer.gov Terms API