> For the complete documentation index, see [llms.txt](https://learn.canceridc.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.canceridc.dev/rest-api/api.md).

# 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/v3
```

All IDC data is public and open — **no authentication, account, or credentials are required** to use the API.

{% hint style="info" %}
The current API release is version 3 (v3), in **beta**. The `/v3` contract may still change in response to feedback before the final `3.0.0` release. To see exactly which beta build is deployed, call [`GET /v3/version`](/rest-api/endpoint-details.md) — the `api_version` field reports the running release. If you have feedback, please let us know on the [IDC support forum](https://discourse.canceridc.dev)!
{% endhint %}

Explore every endpoint interactively in the [Swagger UI](https://api.imaging.datacommons.cancer.gov/v3/docs), or fetch the machine-readable [OpenAPI specification](https://api.imaging.datacommons.cancer.gov/v3/openapi.json).

Writing the calls yourself is only one way in — the same capabilities are also exposed as agent tools. If you would rather have an AI assistant do the querying, see [Using IDC with an AI assistant](/ai-assistants/agents.md).

## 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 full `manifest.txt`, and `idc` CLI commands; files transfer directly from public S3/GCS buckets, never through the API server.
* **Run SQL** — guarded read-only queries against the series-level `index` table, 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](/rest-api/getting-started.md) — get something back in a couple of minutes.
* [Core concepts](/rest-api/idc-api-concepts.md) — the data model, the query surfaces, and the recommended workflow.
* [Endpoint reference](/rest-api/endpoint-details.md) — every endpoint, with worked examples.
* [Querying with SQL](/rest-api/querying-with-sql.md) — the guarded SQL surface and the tables available to it.
* [Getting the data](/rest-api/getting-data.md) — manifests, download commands, licenses, and citations.

The API is developed in the open at [ImagingDataCommons/IDC-REST-MCP](https://github.com/ImagingDataCommons/IDC-REST-MCP), which also hosts the developer-facing documentation.

{% hint style="warning" %}
Looking for documentation of the earlier API versions? The V1 and V2 APIs are superseded by v3; their documentation is preserved in the [Archive](/archive/archive.md).
{% endhint %}
