Skip to main content

Python CLI and library for the urgentcaremap.health API — 8,500+ US urgent care clinics

Project description

urgentcaremap

PyPI License: MIT Python 3.9+

Python CLI and library for the free urgentcaremap.health API8,500+ US urgent care clinics across 386 cities.

🌐 Built on data from urgentcaremap.health — the comprehensive US urgent care directory.

Install

pip install urgentcaremap

No external dependencies (uses Python stdlib only).

CLI Quick Start

# Find urgent cares in a city
urgentcaremap find massachusetts boston

# Find nearest 5 clinics to coordinates
urgentcaremap nearest 42.3467 -71.0972 massachusetts boston

# List all 50 states + DC with clinic counts
urgentcaremap states

# Show site-wide statistics
urgentcaremap stats

# Output as JSON for scripting
urgentcaremap find california los-angeles --json | jq '.[] | .name'

Library Usage

from urgentcaremap_cli import UrgentCareClient

client = UrgentCareClient()

# Get all clinics in a city
clinics = client.find_clinics("massachusetts", "boston")
print(f"Found {len(clinics)} clinics in Boston")

# Find nearest clinics by coordinates
nearest = client.find_nearest(
    lat=42.3467,
    lon=-71.0972,
    state="massachusetts",
    city="boston",
    limit=5,
)
for c in nearest:
    print(f"{c['name']}{c['distance_km']:.2f} km away")

# Site-wide statistics
stats = client.get_stats()
print(f"Total clinics: {stats['coverage']['total_clinics']}")

# Per-state browsing
ca_cities = client.cities_in_state("california")
networks = client.list_networks()

Available methods

Method Description
client.find_clinics(state, city) All clinics in a city
client.find_nearest(lat, lon, state, city, limit) Nearest by coordinates
client.list_states() 50 states + DC with counts
client.list_cities() All 386 cities
client.cities_in_state(state) Cities in one state
client.list_networks() 93+ urgent care networks
client.get_stats() Site-wide statistics
client.get_index() API metadata

Use Cases

  • Telemedicine apps — refer patients to in-person care
  • Healthcare research — academic studies on access/density
  • Insurance comparison — show in-network urgent care
  • Real estate apps — neighborhood healthcare scoring
  • Chatbots — answer "where is urgent care nearby?"

API Reference

Full API documentation: urgentcaremap.health/developers/

OpenAPI 3.0 spec: urgentcaremap.health/api/openapi.json

License

  • Code: MIT (see LICENSE)
  • API/Data: CC-BY-4.0 — attribution required when republishing data

Citation

If you use this in research or publications:

@misc{urgentcaremap2026,
  author = {Lorynec, Oleksandr},
  title = {UrgentCareMap: US Urgent Care Centers Database},
  year = {2026},
  publisher = {urgentcaremap.health},
  url = {https://urgentcaremap.health}
}

Related projects

Contributing

Pull requests welcome! Please open an issue first to discuss major changes.


Built with ❤️ on top of urgentcaremap.health — the free directory of urgent care clinics across the USA.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

urgentcaremap-1.0.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

urgentcaremap-1.0.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file urgentcaremap-1.0.0.tar.gz.

File metadata

  • Download URL: urgentcaremap-1.0.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for urgentcaremap-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7c1a385a876105a6d613fe5aa9bd4d8b61bbf5ae149f33a13fbb83bd3bff077d
MD5 a09ea0c8a2e5029a9ea1a0592762faf6
BLAKE2b-256 aa770303651ab84894d424556aef7cc8158577bd07a0bd76970695ae5696917f

See more details on using hashes here.

File details

Details for the file urgentcaremap-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: urgentcaremap-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for urgentcaremap-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 424290c91922cfd5cf0e2627a920d21e6618feb5e54c387960470146ae3ace9c
MD5 3a6700df174011c01357ed362c0fb2a9
BLAKE2b-256 211fe771b2262a1fa34274fa82bb1a56c3538d4998fe28fb42a7cf2e8414e1a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page