The TriNetX API
Bring patient counts and HCO profiles into your application with the TriNetX API

Patient Counts and HCO Profiles in Your Applications
Send TriNetX insights directly into the platforms you use most.

Results Refreshed Automatically
Let our system refresh your query results automatically.

Secure and Easy to Use
Our REST API is secure, flexible, and intuitive, making data integration a breeze.
How Does it Work?
Our API begins with a query you’ve built on our TriNetX LIVE™ platform. All queries you build have a unique identifier. When making a call from your in-house application, our API uses this ID to retrieve a wealth of information about your query, from the criteria that define it to the numbers of patients, per HCO, that match it. Our API lets you deliver that information to the place where you need it, whether that’s a data lake, a custom dashboard, or third-party software.
The API always returns the results from the last time you ran the query. You can schedule any query to re-run automatically once per week.
Choose Your Result
Query List
A list of all queries scheduled for weekly updating within your organization.
Refer to this list to grab the ID of the query whose criteria and results you want to fetch.
Query Logic
The terms and logical structure of a specific query.
Examine the logic of your criteria: inclusion and exclusion criteria, time constraints, age requirements, et cetera?
Query History
The number of patients, by HCO, that a specific query most recently returned.
Get HCO-specific counts along with HCO profile details from clinical specialties to IRB type.
Historical Query Result
Patients counts by HCO, along with HCO profiles, for a result from the past.
Find out how many patients your query returned for each HCO on previous runs.
Most Recent Query Result
The number of patients, by HCO, that a specific query most recently returned.
Get HCO-specific counts along with HCO profile details from clinical specialties to IRB type.