Random Providers
GEThttps://api-healthcare-providers.dataandapis.com/v1/providers/random
Random Providers es un endpoint de Healthcare Providers API. Consulta cualquiera de los 9,37 millones de NPI de EE. UU. con especialidades en nombres legibles.
Envía tu clave en la cabecera X-Api-Key. Cada llamada cuesta 1 token; una clave gratuita incluye 500 tokens al mes.
Petición
Parámetros de consulta
| Parámetro | Ejemplo | |
|---|---|---|
| amount | 3 | Opcional |
Petición de ejemplo
curl
curl "https://api-healthcare-providers.dataandapis.com/v1/providers/random?amount=3" \
-H "X-Api-Key: YOUR_API_KEY"JavaScript / TypeScript (paquete dataandapis)
// npm install dataandapis
import { DataAndApis } from "dataandapis";
const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY
const data = await client.healthcareProviders.randomProviders({ amount: 3 });Node.js (fetch)
const res = await fetch("https://api-healthcare-providers.dataandapis.com/v1/providers/random?amount=3", {
headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();Python (paquete dataandapis)
# pip install dataandapis
from dataandapis import DataAndApis
client = DataAndApis() # reads DATAANDAPIS_API_KEY
data = client.healthcare_providers.random_providers(amount=3)Python (requests)
import os, requests
r = requests.get(
"https://api-healthcare-providers.dataandapis.com/v1/providers/random?amount=3",
headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()Guía del paquete npm dataandapis →Guía del paquete dataandapis para Python →
Respuesta de ejemplo
Respuesta de ejemplo{
"ok": true,
"count": 1,
"results": [
{
"npi": 1417000100,
"entity_type": "individual",
"name": "Alvin Bryan",
"first_name": "Alvin",
"last_name": "Bryan",
"credential": "MD",
"gender": "M",
"organization_other_name": null,
"sole_proprietor": false,
"specialty": "Anatomic Pathology & Clinical Pathology Physician",
"taxonomies": [
{
"code": "207ZP0102X",
"primary": true,
"specialty": "Anatomic Pathology & Clinical Pathology Physician",
"grouping": "Allopathic & Osteopathic Physicians"
}
],
"practice_location": {
"street": "1520 N Leg Rd",
"city": "Augusta",
"state": "GA",
"zip": "30909",
…
Ver la respuesta completa
Respuesta de ejemplo
{
"ok": true,
"count": 1,
"results": [
{
"npi": 1417000100,
"entity_type": "individual",
"name": "Alvin Bryan",
"first_name": "Alvin",
"last_name": "Bryan",
"credential": "MD",
"gender": "M",
"organization_other_name": null,
"sole_proprietor": false,
"specialty": "Anatomic Pathology & Clinical Pathology Physician",
"taxonomies": [
{
"code": "207ZP0102X",
"primary": true,
"specialty": "Anatomic Pathology & Clinical Pathology Physician",
"grouping": "Allopathic & Osteopathic Physicians"
}
],
"practice_location": {
"street": "1520 N Leg Rd",
"city": "Augusta",
"state": "GA",
"zip": "30909",
…{
"ok": true,
"count": 1,
"results": [
{
"npi": 1417000100,
"entity_type": "individual",
"name": "Alvin Bryan",
"first_name": "Alvin",
"last_name": "Bryan",
"credential": "MD",
"gender": "M",
"organization_other_name": null,
"sole_proprietor": false,
"specialty": "Anatomic Pathology & Clinical Pathology Physician",
"taxonomies": [
{
"code": "207ZP0102X",
"primary": true,
"specialty": "Anatomic Pathology & Clinical Pathology Physician",
"grouping": "Allopathic & Osteopathic Physicians"
}
],
"practice_location": {
"street": "1520 N Leg Rd",
"city": "Augusta",
"state": "GA",
"zip": "30909",
"country": "US",
"phone": "(706) 869-3121"
},
"enumeration_date": "2007-01-18",
"last_updated": "2015-08-05"
}
]
}