Open Primitive

API Reference

Reference implementation of the Open Primitive Protocol. 30 federal data domains across 15 US agencies. Part of the Sovereign protocol.

Base https://api.openprimitive.com

Endpoints

DomainEndpointSourceParametersFreshness
alerts/v1/alertsCross-domainnonereal-time
ask/v1/askAll domainsqreal-time
cars/v1/carsNHTSAyear, make, modelcontinuous
compare/v1/compareMulti-domaintype, a, breal-time
demographics/v1/demographicsCensus Bureauzipannual
drugs/v1/drugsFDA FAERSnamequarterly
flights/v1/flightsFAA NASnone; /v1/flights/:iatareal-time
food/v1/foodFDAq (optional)daily
health/v1/healthPubMedqcontinuous
hospitals/v1/hospitalsCMSq or idquarterly
jobs/v1/jobsBLSseries (optional)monthly
location/v1/locationCensus + EPA + CMSzipcomposite
nutrition/v1/nutritionUSDA FoodDataq or idcontinuous
products/v1/productsCPSCq (optional)daily
safety/v1/safetyCross-domainzipcomposite
sec/v1/secSEC EDGARq or cikdaily
water/v1/waterEPA SDWISzip; /v1/water/:pwsidquarterly
weather/v1/weatherNWS / Open-Meteozip or statereal-time
air/v1/airEPA AQSzip or statereal-time
clinical-trials/v1/clinical-trialsClinicalTrials.govqdaily
context/v1/contextArchiveentityreal-time
courts/v1/courtsCourtListenerqdaily
drug-interactions/v1/drug-interactionsFDA Drug Labelsdrug1, drug2continuous
drug-labels/v1/drug-labelsNLM DailyMednamecontinuous
earthquakes/v1/earthquakesUSGSnonereal-time
education/v1/educationDept of Educationq or idannual
eligible/v1/eligibleHHS / CMS / IRS / HUDincome, household, stateannual
federal-register/v1/federal-registerFederal Registerqdaily
infrastructure/v1/infrastructure/electricityEIAstatemonthly
meat/v1/meatUSDA FSISq (optional)daily
reclaim/v1/reclaim/searchState + Federalfirst_name, last_namemonthly
risk/v1/riskCross-domainzipcomposite
spending/v1/spendingUSAspending.govqdaily
changes/v1/changesArchivedatedaily

Response Envelope

Every response returns this structure.

FieldTypeDescription
domainstringDataset identifier
sourcestringFederal agency
source_urlstringUpstream URL
freshnessstringISO 8601 timestamp of last data pull
confidencenumber0 to 1 score of data completeness
citationsarraySource references for direct use
proofstringEd25519 signature for verification
dataobjectDomain-specific payload
// GET /v1/cars?year=2024&make=honda&model=civic { "domain": "cars", "source": "NHTSA", "source_url": "https://api.nhtsa.gov/recalls/recallsByVehicle?make=honda&model=civic&modelYear=2024", "freshness": "2026-03-21T08:14:22Z", "confidence": 0.94, "citations": ["NHTSA Office of Defects Investigation"], "proof": "ed25519:a1b2c3...", "data": { "recalls": [...] } }

Data Quality

Confidence scores reflect upstream reporting methodology, not API reliability.

DomainMethodologyConfidenceKnown Gaps
alertscomposite, real-time0.70Dependent on source domain quality
carsmandatory manufacturer reporting0.94Pre-2000 vehicles have sparse data
comparederived from source domainsvariesQuality matches the weaker input
demographicsAmerican Community Survey, sampled0.855-year estimates; rural under-sampled
drugsvoluntary reporting (MedWatch)0.10Captures 1-10% of actual adverse events
flightsFAA real-time + BTS historical0.80BTS data 12-18 months delayed
foodmandatory enforcement actions0.85Voluntary recalls may not appear immediately
healthpeer-reviewed literature search0.60Indexed abstracts only; no full-text
hospitalsCMS mandatory reporting0.90VA and military hospitals excluded
jobsBLS survey-based estimates0.88Subject to revision; gig work under-counted
locationcomposite of Census, EPA, CMS0.75ZIP boundary mismatches in cross-domain joins
nutritionlab-analyzed and industry-submitted0.92Branded products self-reported
productsmandatory and voluntary recalls0.80Voluntary recalls may lag weeks
safetycomposite score across domains0.65Only as strong as weakest domain
secmandatory public filings0.95Private companies not covered
watermandatory but delayed (SDWIS)0.70Small systems under-report; data lags 6 months
weatherNWS observational + modeled0.90Forecast accuracy degrades beyond 72 hours
airEPA AQS monitoring stations0.80Rural areas have sparse monitors
clinical-trialsClinicalTrials.gov registry0.92Registration compliance varies
contextinternal archive / change detection0.75Only covers previously queried entities
courtsCourtListener RECAP archive0.70State courts under-represented
drug-interactionsFDA label cross-reference0.75Only covers FDA-labeled interactions
drug-labelsNLM DailyMed mandatory labeling0.93OTC labels may lag
earthquakesUSGS seismic network0.95Magnitude <2.5 not included
educationDept of Ed College Scorecard0.85Small institutions may lack data
eligiblestatutory thresholds (HHS, IRS, HUD)0.80State-level variation not fully modeled
federal-registerFederal Register API0.95Pre-1994 documents not digitized
infrastructureEIA survey data0.85State-level only; no local granularity
meatUSDA FSIS mandatory inspection0.90Game and exotic meats under-covered
reclaimstate unclaimed property databases0.65Coverage varies by state; name matching imperfect
riskcomposite cross-domain scoring0.70Only as strong as weakest input domain
spendingUSAspending.gov mandatory reporting0.90Sub-awards may lag primary awards
changesinternal daily diff archive0.80Only detects changes in monitored domains

Authentication

No API key required. Completely free, no limits. Just call the endpoints.

# Just call it curl https://api.openprimitive.com/v1/cars?year=2024&make=toyota&model=camry

Integration

ProtocolLocation
MCPnpx @openprimitive/mcp-server
A2A/.well-known/agent.json
OpenAPI/openapi.json
llms.txt/llms.txt
OPP manifest/.well-known/opp.json
# Add to Claude Desktop config (claude_desktop_config.json) { "mcpServers": { "open-primitive": { "command": "npx", "args": ["@openprimitive/mcp-server"] } } }

Utility Endpoints

EndpointDescription
/v1Domain index with all endpoints and sources
/v1/statsRequest counts and uptime
/v1/statusHealth check for each domain
/v1/historyRecent query log
/v1/registryList registered OPP providers
/v1/registry/searchSearch providers by domain
/pingLiveness check