Page History
Panel | |
---|---|
|
Example Call to Access Public Data
The following is an example call using curl to access public data using an API from the NBIA v1 API Python ExamplesDirectory.
To come
Example Request for Accessing a Private Resource
Most data in TCIA are fully public. However, certain collections require special permissions to access them. To access these collections, you must first register for a TCIA account (be sure to scroll down on this page and click "CLICKING HERE" to accept the terms and conditions) and then contact the TCIA Help Desk for permission to access the restricted data. The TCIA Help Desk will also give you the client_id and client_secret. An example follows that shows how to request NBIA REST services for restricted data.
...
Info | ||||
---|---|---|---|---|
| ||||
Python Sample Output:
|
Using the Token in an API Call
Make a note of the access token you received and pass it with the REST service call.
Info | ||||
---|---|---|---|---|
| ||||
Python Sample Output
|
Example Request for Logout
Info | ||||
---|---|---|---|---|
| ||||
Python Sample Result
|
Sample Python Script for REST Search APIs
Body Part Values and Counts API
The Body Part Values and Counts API returns the modality values and body part count for the modality. It optionally takes the following parameters.
- Collection
- Modality
Example Body Part Values and Counts Query
Info | ||||
---|---|---|---|---|
| ||||
Python Sample Results
|