...
The API structure consists of a base URL followed by the API and query parameters, in that order. For example, the API shown below requests all Body Part Values and Counts for the PT modality.
Note: To accommodate special characters in passwords, use double quotes on Windows and single quotes on Mac and Linux.
Info | ||||
---|---|---|---|---|
| ||||
|
...
Access to any NBIA Advanced REST API requires an access token. A request for an access token takes the following structure. Note that USER should be your TCIA username and PASSWORD should be your TCIA password.
Note: To accommodate special characters in passwords, use double quotes on Windows and single quotes on Mac and Linux.
Code Block | ||
---|---|---|
| ||
curl -v -d "username=USER&password=PASSWORD&client_id=NBIA&grant_type=password" -k https://services.cancerimagingarchive.net/nbia-api/oauth/token |
...