API reference
Four read endpoints. Base URL https://app.hopmoen.com/v1. Matches the OpenAPI document.
All routes require a bearer key. Responses are JSON and Cache-Control: private, no-store. Rate-limit headers are X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset.
The machine-readable spec is openapi.json.
GET /v1/providers
Search. Query parameters are optional.
| Parameter | Notes |
|---|---|
| q | Words matched against an internal search blob, or a 10-digit NPI for an exact match. |
| state | USPS code, or __OTHER__. |
| grouping | NUCC grouping, exact. |
| classification | NUCC classification, exact. |
| taxonomy_code | Primary taxonomy, exact. |
| specialty | Display name, exact or substring. |
| entity_type | Individual or Organization. |
| credential | Substring of the normalized credential text. |
| city | Substring of the city. |
| zip_code | Prefix of the ZIP. |
| sex | M or F. |
| sole_proprietor | true or false. |
| active_only | true (default), inactive, or false for all. |
| sort | name, state, specialty, enumeration_date. Ignored on an unfiltered landing query. |
| dir | asc or desc. |
| page | From 1. |
| page_size | 1 to 100. Default 25. |
{
"rows": [],
"total": 0,
"page": 1,
"page_size": 25,
"query_ms": 0,
"used_overview_total": false
}
used_overview_total is true when the total came from analytics_overview because no restrictive filter was set. Row fields are the data dictionary.
GET /v1/providers/{npi}
One record. npi must be 10 digits. 400 if it is not, 404 if it is not in the table.
{
"provider": {"npi": "1234567893", "provider_name": "Example"},
"secondary_taxonomies": [],
"practice_locations": []
}
GET /v1/facets
States (with the standard USPS list and an Other bucket), groupings, classifications, specialties, and normalized credentials. Counts come from the analytics tables. The specialty array can be large. Cache it.
GET /v1/stats
{
"overview": {"total_providers": 0, "active_providers": 0},
"by_entity_type": [],
"source": "analytics_overview and analytics_by_entity_type"
}
Overview fields include the counts the analytics table stores: totals, active and inactive, individuals, organizations, distinct states, taxonomy codes, specialties, credentials, and the earliest and latest enumeration dates present on the load. Do not hard-code the marketing site's rounded 9.9 million / 9.53 million / 870 into a client. Read this endpoint.
Errors
| Status | When |
|---|---|
| 401 | Missing, unknown, or revoked key. |
| 400 | NPI is not 10 digits, or you already have 10 active keys (on the session route). |
| 404 | NPI not in the table. |
| 429 | Per-key rate limit. Retry-After is seconds. |
| 503 | Key store or query failed. |