MarkdownCopies this page as Markdown, ready to paste into an AI assistant.
FDA API
3 FDA endpoints behind one key, priced in credits per call and routed to the cheapest healthy source.
On this page
Compliance & Records · 3 endpoints · from 1 credit per call
Endpoints
- POSTFDA Device Clearances and Approvals
/v1/run/fda.device_clearancesFDA medical device marketing decisions: 510(k) clearances and PMA approvals with supplements, by applicant, product code, device name and decision date, newest first.1 creditper call - POSTFDA Recall Enforcement Reports
/v1/run/fda.recallsFDA recall enforcement reports for drugs, medical devices and foods: recalling firm, product, reason, class and status, newest first, filtered by firm, product, class, status and date.1 creditper call - POSTFDA Warning Letters
/v1/run/fda.warning_lettersFDA warning letters as posted on fda.gov: company, issuing office, subject, letter and posted dates, letter link and any response or close-out letter, newest first.1 creditper call
Calling them
Every endpoint on this page is one POST to https://api.primaryapi.com/v1/run/{sku} with your API key and a JSON body. Responses share one envelope, so code written for one endpoint handles the others. For example, fda.device_clearances:
curl -sS -X POST "https://api.primaryapi.com/v1/run/fda.device_clearances" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"pathway":"510k","number":"K263860","dateFrom":"2026-10-30","dateTo":"2026-10-30"}'const res = await fetch('https://api.primaryapi.com/v1/run/fda.device_clearances', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PRIMARYAPI_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
pathway: '510k',
number: 'K263860',
dateFrom: '2026-10-30',
dateTo: '2026-10-30',
}),
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.error}`);
// found:false is a successful answer ("does not exist"), not an error
console.log(body.output.found ? body.output.data : body.output.reason, body.credits);import os
import requests
res = requests.post(
"https://api.primaryapi.com/v1/run/fda.device_clearances",
headers={"Authorization": f"Bearer {os.environ['PRIMARYAPI_API_KEY']}"},
json={
"pathway": "510k",
"number": "K263860",
"dateFrom": "2026-10-30",
"dateTo": "2026-10-30",
},
timeout=60,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['error']}")
# found=False is a successful answer ("does not exist"), not an error
print(body["output"]["data"] if body["output"]["found"] else body["output"]["reason"], body["credits"])New to PrimaryAPI? Start with the Quickstart, then read Making requests.