United States National Library of Medicine Metadata API

API metadata and field definitions

Operations 2

GET /stats/size Get Dataset Size #
GET /studies/metadata Get Study Fields Metadata #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/united-states-national-library-of-medicine-metadata-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

united-states-national-library-of-medicine-metadata-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ClinicalTrials.gov Metadata API
  description: The ClinicalTrials.gov API v2 provides programmatic access to clinical trial data registered with ClinicalTrials.gov, operated by the U.S. National Library of Medicine. Returns study information, eligibility criteria, outcomes, locations, sponsor and collaborator data, and results for hundreds of thousands of registered clinical trials. No API key required.
  version: 2.0.0
  contact:
    name: ClinicalTrials.gov
    url: https://clinicaltrials.gov/data-api/api
  license:
    name: Public Domain
    url: https://www.usa.gov/government-works
servers:
- url: https://clinicaltrials.gov/api/v2
  description: ClinicalTrials.gov API v2
tags:
- name: Metadata
  description: API metadata and field definitions
paths:
  /stats/size:
    get:
      operationId: getDatasetSize
      summary: Get Dataset Size
      description: Returns the total number of clinical trials in the ClinicalTrials.gov database, optionally filtered by query parameters.
      tags:
      - Metadata
      parameters:
      - name: query.cond
        in: query
        required: false
        schema:
          type: string
      - name: filter.overallStatus
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Total count of matching studies
          content:
            application/json:
              schema:
                type: object
                properties:
                  totalCount:
                    type: integer
                    description: Total number of studies matching the query
  /studies/metadata:
    get:
      operationId: getStudyFieldsMetadata
      summary: Get Study Fields Metadata
      description: Retrieve metadata about all available data fields in the ClinicalTrials.gov study record, including field names, types, and descriptions.
      tags:
      - Metadata
      responses:
        '200':
          description: Study field metadata
          content:
            application/json:
              schema:
                type: object