The ClinicalTrials.gov application programming interface (API) provides a toolbox for programmers and other technical users to use to access all posted information on ClinicalTrials.gov study records data. The API is designed for encoding simple and complex search expressions and parameters in URLs. Clicking on query URLs retrieves study records from ClinicalTrials.gov. Use of ClinicalTrials.gov data is subject to these Terms and Conditions.
|Use the following links to learn about the ClinicalTrials.gov API.
|List of info URLs for accessing information about the API and query URLs with parameters.
|Query URL Responses
|Description of information returned by query URLs.
|Search Expressions and Syntax
|Types and syntax of search expressions used in query URLs.
|List of operators with examples and descriptions of search expressions used in query URLs.
|Data Element-to-API Field Crosswalks
|List of ClinicalTrials.gov data elements and their corresponding API fields.
|Study Structure and Fields
|Organization of API fields within a ClinicalTrials.gov study record and other information.
|List and description of ways to specify the portions of a study record to search, ranging from multiple API fields (e.g., BasicSearch, ConditionsSearch) to a single field (e.g., Acronym).
|Download Content for All Study Records
|URLs for downloading all content for all study records available on ClinicalTrials.gov as a single zip file.
|Use the following demonstrations to explore and develop the three types of query URLs available for accessing different levels of API data from ClinicalTrials.gov. After specifying the parameter values in the Request section on a demonstration page and clicking on "Send Request," the Response section will display the resulting URL that was sent to ClinicalTrials.gov to generate the response.
|Query URL Type
|Retrieves all content from the first study record returned for a submitted query by default. Returns up to 100 study records per query when the minimum rank and maximum rank parameters are set in a query URL and up to 10,000 records using the Full Studies interactive demonstration.
|Retrieves the values of one or more fields from up to all study records returned for a submitted query by default. Returns up to 1,000 study records per query when the minimum rank and maximum rank parameters are set in a query URL and up to all study records using the Study Fields interactive demonstration.
|Retrieves a unique list of values for one study field from all study records returned for a submitted query.