Clinical data from CPTAC-3 are now being made available through an API hosted by ESAC.  This is documented in detail at https://clinicalapi-cptac.esacinc.com/api/tcia/. Data are provided in JSON, which is a file format commonly used by software developers for data interchange.  Most data scientists and statisticians should already be familiar with this type of file, but for users who are not familiar working with JSON, we are providing a few examples of ways to access this data.  

View JSON files in Firefox

Open Firefox and navigate to one of our CPTAC collection pages (e.g. CPTAC-CCRCC) and click the blue download button for the Clinical Data API:

Click the Raw data button at the top of the page, and then click Pretty Print.  This will arrange the data in a way that is more human-readable.


Online JSON to CSV conversion tools

There are a number of free online tools such as https://json-csv.com/ which will convert between JSON and CSV, which can be viewed in most spreadsheet applications like Excel.  After the page loads simply paste in the URL for the cancer type you were trying to access, e.g. https://clinicalapi-cptac.esacinc.com/api/tcia/clinical_data/tumor_code/UCEC.

View JSON files in Notepad++

enter image description here

Open Notepad++. From the Plugins menu click "Plugins Admin" then type JSON into the search bar, you should see "JSON viewer" as an option. Click install.

Go to the Plugins Menu. Click JSON Viewer, and open your file. There is a tree-view at left and colored view in the main window.


Loading JSON files into Excel

The following guide has been prepared for researchers who are not used to working with JSON data or APIs.  By following these steps you will be able to view the data in newer versions of Excel via the Power Query feature.  

To generate the JSON file:

                                                     

                                                                                                  

                                                                           

                                             

Load and Convert the JSON Clinical Data file into an Excel Sheet

                                                               

                                            

                                                                                  

Save As Excel Worksheet