NCIP / clinical-trials-search

Other
19 stars 7 forks source link

Does this api have a limit to return #26

Closed callmecary closed 6 years ago

callmecary commented 6 years ago

The code below always prints 10, no matter what parameter it takes in

import json,requests url = 'https://clinicaltrialsapi.cancer.gov/v1/clinical-trials/' params = dict( record_verification_date_gte='2014-08-25' ) resp = requests.get(url=url, params=params) data = json.loads(resp.text) trials = data['trials'] print(len(trials))

callmecary commented 6 years ago

Ok, I'm idiot, I should have realized there was parameter of "size".