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

National Institutes of Health (NIH) Stats API

Data statistics

National Institutes of Health (NIH) Stats API is one of 15 APIs that National Institutes of Health (NIH) publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Stats. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 3 operations across 3 paths, and defines 18 schemas. It is described by OpenAPI 3.0.3, at version 2.0.5.

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

3 operations 3 paths 18 schemas 3 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
2.0.5
Base URL
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/
Resource Areas
1

Paths & Operations 3

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

Stats 3

Data statistics

GET
/stats/size
Study Sizes
sizeStats → 200400
GET
/stats/field/values
Field Values
fieldValuesStats 2 params → 200400404
GET
/stats/field/sizes
List Field Sizes
listFieldSizesStats 1 param → 200400404

Schemas 18

The contract defines 18 schemas that model the data the API accepts and returns. The most detailed are StringStats (7 properties), DateStats (7 properties), NumberStats (7 properties), IntegerStats (7 properties). Each schema is shown below with its type and property counts.

FieldValuesStatsList
array
StudySize
object
2 properties 2 required
ListSizesList
array
FieldStatsType
string
DateStats
object
7 properties 5 required
ValueCount
object
2 properties 2 required
NumberStats
object
7 properties 4 required
ListSizes
object
6 properties 3 required
EnumStats
object
6 properties 5 required
LongestString
object
3 properties 3 required
GzipStats
object
5 properties 5 required
errorMessage
string
A text message describing an error
StringStats
object
7 properties 5 required
FieldValuesStats
IntegerStats
object
7 properties 4 required
DistItem
object
2 properties 2 required
ListSize
object
2 properties 2 required
BooleanStats
object
6 properties 6 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

nih-stats-api-openapi.yml Raw ↑

Other APIs National Institutes of Health (NIH) publishes across the network.

NCBI E-utilities (Entrez Programming Utilities)
PubChem Power User Gateway (PUG REST)
NIH RePORTER API
NCBI BLAST URL API
PubMed Central (PMC) OA API
National Institutes of Health (NIH) BioSample API
National Institutes of Health (NIH) Gene API
National Institutes of Health (NIH) Genome API
National Institutes of Health (NIH) Organelle API
National Institutes of Health (NIH) Prokaryote API
National Institutes of Health (NIH) Studies API
National Institutes of Health (NIH) Taxonomy API