The Cancer Imaging Archive

FREE
By tcia
Updated 4 months ago
Medical
2.2/10
Popularity Score
189ms
Latency
-
Success Rate

The Cancer Imaging Archive API Documentation

NOTE: You need an API-Key to use this API. See README for more details. The Cancer Imaging Archive (TCIA) is a public repository of cancer images and related clinical data for the express purpose of enabling open science research. Currently over 26 million radiologic images of cancer are contained in this repository. The API allows you to query metadata and download images from the various public collections available on TCIA

View API Details
Query Image Metadata
GETgetBodyPartValues
GETgetCollectionValues
GETgetManufacturerValues
GETgetPatientStudy
GETgetModalityValues
GETgetPatient
GETgetSeries
Retrieve Images
GETgetImage
GETgetBodyPartValues

Set of all body part names filtered by query keys

Authorization:

description

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
api_keyHEADER
REQUIREDYour TCIA API-Key
Optional Parameters
formatSTRING
OPTIONALSpecify output type. Allowed values CSV/HTML/XML/JSON
BodyPartExaminedSTRING
OPTIONALStandard DICOM definition (0018x0015)
ModalitySTRING
OPTIONALStandard DICOM definition (0008x0060)
CollectionSTRING
OPTIONALA label used to name a set of images collected for a specific trial or other reason. Assigned during the process of curating the data.
Code Snippet
unirest.get("https://tcia.p.rapidapi.com/getBodyPartValues")
.header("X-RapidAPI-Host", "tcia.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://tcia.p.rapidapi.com/getBodyPartValues
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://tcia.p.rapidapi.com/getBodyPartValues")
.header("X-RapidAPI-Host", "tcia.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication