Random Providers
GEThttps://api-healthcare-providers.dataandapis.com/v1/providers/random
Random Providers é um endpoint da Healthcare Providers API. Consulte qualquer um dos 9,37 milhões de NPIs dos EUA, com especialidades resolvidas para nomes legíveis.
Envie sua chave no header X-Api-Key. Cada chamada custa 1 token; uma chave gratuita inclui 500 tokens por mês.
Requisição
Parâmetros de consulta
| Parâmetro | Exemplo | |
|---|---|---|
| amount | 3 | Opcional |
Exemplo de requisição
curl
curl "https://api-healthcare-providers.dataandapis.com/v1/providers/random?amount=3" \
-H "X-Api-Key: YOUR_API_KEY"JavaScript / TypeScript (pacote 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 (pacote 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()Guia do pacote npm dataandapis →Guia do pacote Python dataandapis →
Exemplo de resposta
Exemplo de resposta{
"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 resposta completa
Exemplo de resposta
{
"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"
}
]
}