Skip to content

These endpoints find clinical experts by their research: the trials they are named on at ClinicalTrials.gov and the grants they hold from the National Institutes of Health (NIH). For clinical activity, such as procedures, prescribing and group practices, use Providers.

Both cost 1 credit, charged only when the call succeeds. A 400 or a 404 is free.

Neither source publishes an NPI. Every link from a trial or a grant to a clinician is made here by matching names. Read Links are made by name before you act on a result.

GET /api/market/experts

Returns clinicians ranked by the number of matching trials they are named on. Costs 1 credit.

At least one of condition, sponsor or state is required. Without one the call returns 400 with Give at least one of condition, sponsor or state.

Name Type Description
condition string Substring of the trial’s conditions, for example melanoma or heart failure. 2 to 80 characters.
sponsor string Substring of the trial sponsor, for example Pfizer. 2 to 80 characters.
state string Two-letter state code of the investigator on the trial.
confidence string any (default) or high. high counts only links where the registry address is in the investigator’s city or ZIP.
limit number 1 to 100. Default 25.
offset number Rows to skip, 0 to 10,000. Default 0.

Text filters ignore case. Query parameters the endpoint does not know are ignored.

Terminal window
curl "$OPH_API/api/market/experts?condition=melanoma&state=TX&limit=1" \
-H "Authorization: Bearer $OPH_KEY"
{
"rows": [
{
"npi": "1234567890",
"name": "JANE EXAMPLE",
"credentials": "MD",
"specialty": "Internal Medicine",
"city": "HOUSTON",
"state": "TX",
"trials": "17",
"active_trials": "7",
"industry_trials": "1",
"latest_start": "2026-09-01T00:00:00.000Z",
"match_confidence": "high"
}
],
"sql": "WITH hits AS (SELECT i.npi, count(DISTINCT i.nct_id) AS trials, ... FROM trial_investigators i JOIN trials t ON t.nct_id = i.nct_id WHERE i.npi IS NOT NULL AND ($1::text IS NULL OR t.conditions ILIKE $1) AND ($2::text IS NULL OR t.sponsor ILIKE $2) AND ($3::text IS NULL OR i.state = $3) AND ($4::boolean IS NOT TRUE OR i.match_confidence = 'high') GROUP BY i.npi ORDER BY trials DESC, i.npi LIMIT $5 OFFSET $6) SELECT h.npi, p.name, ... FROM hits h JOIN providers p ON p.npi = h.npi ORDER BY h.trials DESC, h.npi",
"params": ["%melanoma%", null, "TX", false, 1, 0],
"sources": ["trial_investigators", "trials", "providers"],
"ms": 1060,
"population": "ClinicalTrials.gov interventional studies with a US site, and NIH RePORTER fiscal years 2024 to 2026. NPIs are linked by unique name within a state, not published by the source: verify 'medium' links.",
"note": "Only investigators linked to an NPI are ranked (about 45% of investigator listings). match_confidence is the weakest link among the person's trials.",
"usage": { "credits": 1, "creditsUsed": 1670, "creditsLimit": 5000, "txid": "11187" }
}
Field Meaning
name, credentials, specialty, city, state The clinician’s NPI registry record. state is the registry address, which can differ from the trial state you filtered on.
trials Distinct trials that match the filters and name this clinician.
active_trials Those whose status is recruiting, not yet recruiting, active but not recruiting, or enrolling by invitation.
industry_trials Those with an industry sponsor.
latest_start Latest start date among them. Sponsors enter dates, and some are estimates.
match_confidence high or medium. See below.

The counts arrive as JSON strings. sql is the statement the server ran, as a read-only receipt.

A row’s match_confidence is the weakest link among the clinician’s matching trials: it reads medium as soon as one of them is a medium-confidence link. To count only high-confidence links, send confidence=high.

GET /api/market/experts/:npi

Returns one clinician’s trials, NIH grants and industry payments. Costs 1 credit, charged only if the provider exists.

:npi must be 10 digits, otherwise the call returns 400 with NPI must be 10 digits. An NPI that is not in the registry returns 404. It works for any NPI in the registry, not only those a search returned.

Field Contents
npi The NPI.
provider Name, credentials, specialty, city and state from the NPI registry.
summary trials (distinct trials), nih_projects (distinct NIH projects), nih_funding_as_contact_pi (award dollars, fiscal 2024 to 2026, on awards where the clinician is the contact investigator, leaving out subprojects) and industry_payments (Open Payments total for 2024).
trials Up to 100 trials, newest start first: NCT number, title, phase, status, sponsor, sponsor class, conditions, start date, role, listed_as (overall_official or site), facility and match_confidence.
grants Up to 100 NIH awards, newest fiscal year first: application id, fiscal year, project number, activity code, institute, title, organization, is_contact_pi, pi_count, is_subproject, award amount, project dates and match_confidence.
payments The 25 largest industry payers from Open Payments: year, company, total amount, number of payments and the most common nature of payment.
sources providers, trial_investigators, trials, nih_grants, open_payments.

sql is an object with the five statements the server ran (provider, summary, trials, grants, payments), as a read-only receipt.

Terminal window
curl "$OPH_API/api/market/experts/1234567890" -H "Authorization: Bearer $OPH_KEY"
{
"npi": 1234567890,
"provider": {
"npi": "1234567890",
"name": "JANE EXAMPLE",
"credentials": "MD",
"specialty": "Internal Medicine",
"city": "HOUSTON",
"state": "TX"
},
"summary": {
"trials": "9",
"nih_projects": "0",
"nih_funding_as_contact_pi": null,
"industry_payments": "59170"
},
"trials": [
{
"nct_id": "NCT05704647",
"title": "Phase II Study of Nivolumab in Combination With Relatlimab in Patients With Active Melanoma Brain Metastases",
"phase": "PHASE2",
"status": "RECRUITING",
"sponsor": "M.D. Anderson Cancer Center",
"sponsor_class": "OTHER",
"conditions": "Melanoma (Skin)",
"start_date": "2023-02-23T00:00:00.000Z",
"role": "PRINCIPAL_INVESTIGATOR",
"listed_as": "overall_official",
"facility": "M D Anderson Cancer Center",
"match_confidence": "high"
}
],
"grants": [],
"payments": [
{
"year": 2024,
"company": "Merck Sharp & Dohme LLC",
"total_amount": "43328.65",
"payment_count": 23,
"top_nature": "Travel and Lodging"
}
],
"sources": ["providers", "trial_investigators", "trials", "nih_grants", "open_payments"],
"ms": 63,
"population": "ClinicalTrials.gov interventional studies with a US site, and NIH RePORTER fiscal years 2024 to 2026. NPIs are linked by unique name within a state, not published by the source: verify 'medium' links.",
"note": "Trials and grants are attached by name, not by a published NPI; empty lists mean nothing was linked, not that the clinician has none. nih_funding_as_contact_pi counts awards where the clinician is the contact investigator, fiscal 2024 to 2026.",
"usage": { "credits": 1, "creditsUsed": 1678, "creditsLimit": 5000, "txid": "11204" }
}

The example shows one of nine trials and one of the payers.

Things to know:

  • Empty trials and grants mean nothing was linked to this NPI. They do not mean the clinician has no trials or grants.
  • A provider in the registry with nothing linked still returns 200 and is charged.
  • When you add up grants yourself, count only rows where is_contact_pi is true and is_subproject is false, and pick one fiscal year or sum across years on purpose. A project with several principal investigators repeats its full award_amount on each one’s row, and a subproject’s money is already inside its parent award.
  • The top-level npi is a JSON number. provider.npi is a string.

ClinicalTrials.gov and NIH RePORTER publish names, not NPIs. The NPI on a trial investigator or a grant is a link made here, and it has a confidence level.

A link is made only when all of these hold:

  • The name parses as one person.
  • The investigator can be placed in a state. For a grant, that is the state of the organization.
  • Exactly one person in the NPI registry has that first and last name in that state.
  • That person is a doctoral-level clinician.
match_confidence Meaning
high The registry address is in the investigator’s city or ZIP.
medium Same state only. Treat it as a lead to verify.

A name match can still be a different person. Check a medium link before outreach.

How much is linked:

  • 45% of trial investigator listings have an NPI, and 67% of site principal investigators.
  • 21% of NIH grant rows have an NPI, because most NIH investigators are scientists without one.
  • No NPI means not linked. Common names, non-clinician scientists, sponsor staff and officials of multi-state studies who cannot be placed in a state stay unlinked, and none of them appear in a search.
  • ClinicalTrials.gov as downloaded on 5 December 2026.
  • Interventional studies with at least one US site only. Observational studies and studies with no US site are not included.
  • Sponsors enter the data. Conditions and interventions are free text, not coded, so condition=melanoma matches the text and nothing else. Dates can be estimates or wrong.
  • Site investigators are published only while a site is recruiting, so older studies list just the study-level officials.
  • facility is free text typed by the sponsor. The same hospital appears under several spellings and is not linked to a CCN.
  • NIH RePORTER, fiscal years 2024 to 2026, organizations in US states and territories.
  • About 4% of fiscal 2024 and 2025 projects have no state in RePORTER and are not included.
  • Fiscal 2026 was downloaded on 5 December 2026 and may still gain late awards.

payments and summary.industry_payments come from Open Payments general payments for 2024, totalled per clinician and company. Research payments and ownership interests are not included.