Overview
The IDC API provides programmatic access to IDC metadata and data: discover what is in IDC, build cohorts with attribute filters, retrieve download manifests, run read-only SQL queries, explore clinical data, and generate citations and license summaries for your selections.
The API is live in production at:
https://api.imaging.datacommons.cancer.gov/v3All IDC data is public and open — no authentication, account, or credentials are required to use the API.
Explore every endpoint interactively in the Swagger UI, or fetch the machine-readable OpenAPI specification.
Writing the calls yourself is only one way in — the same capabilities are also exposed as agent tools. If you would rather have an LLM assistant do the querying, see Using IDC with an LLM assistant.
What you can do
Discover what's in IDC — collections, derived analysis results (segmentations, annotations), filterable attributes and their valid values, headline statistics.
Build cohorts — turn attribute filters into distinct patient/study/series counts, a page of matching series, and a ready-to-use download payload.
Retrieve — public
s3://URLs, a fullmanifest.txt, andidcCLI commands; files transfer directly from public S3/GCS buckets, never through the API server.Run SQL — guarded read-only queries against the series-level
indextable, specialized per-modality indices, and per-collection clinical tables — joins, aggregations, anything the structured filters can't express.Explore clinical data — discover and read the per-collection clinical tables (demographics, staging, therapies, outcomes) and join them to imaging.
Publish responsibly — viewer URLs for visual inspection, per-cohort license breakdowns (CC BY vs CC BY-NC), and ready-to-use citations.
In this section
Your first API calls — get something back in a couple of minutes.
Core concepts — the data model, the query surfaces, and the recommended workflow.
Endpoint reference — every endpoint, with worked examples.
Querying with SQL — the guarded SQL surface and the tables available to it.
Getting the data — manifests, download commands, licenses, and citations.
The API is developed in the open at ImagingDataCommons/IDC-REST-MCP, which also hosts the developer-facing documentation.
Last updated
Was this helpful?