NCIP / clinical-trials-search

Other
19 stars 7 forks source link

How to search for "category"? #10

Open mrchess opened 7 years ago

mrchess commented 7 years ago

I am trying to use the API to find all clinical trials that have something to do with cancer or carcinoma. Is there a way to use the API to just search for the NCT_IDs of those trials?

mrchess commented 7 years ago

Or is all the trials on NCIP only cancer? In which case, how can I see all the NCT IDs are in the system? I am trying to see which ones are different compared to clinicaltrials.gov.

loosed commented 7 years ago

Hello, The scope of trials in the API includes NCI-supported interventional clinical trials which were open to accrual on or after June 2015. The API data source is the NCI's Clinical Trials Reporting Program database: https://www.cancer.gov/about-nci/organization/ccct/ctrp

The API instructions, https://clinicaltrialsapi.cancer.gov/v1/, described how to retrieve the NCT IDs available. This query would return the first 50: https://clinicaltrialsapi.cancer.gov/v1/clinical-trials?size=50&include=nct_id

Per the instructions, the return is limited to 50 results at a time so you'll need to use the "from" parameter to iteratively retrieve all NCT IDs.