Skip to main content

urgentcaremap

PyPI License: MIT Python 3.9+

Python CLI and library for the free urgentcaremap.health API — 8,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.

Metadata

Release files for urgentcaremap 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for urgentcaremap 1.0.0
File Size Uploaded
urgentcaremap-1.0.0.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for urgentcaremap 1.0.0
File Interpreter ABI Platform
urgentcaremap-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / urgentcaremap-1.0.0.tar.gz

Download URL urgentcaremap-1.0.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7c1a385a876105a6d613fe5aa9bd4d8b61bbf5ae149f33a13fbb83bd3bff077d
BLAKE2b-256 checksum
How to use checksums
aa770303651ab84894d424556aef7cc8158577bd07a0bd76970695ae5696917f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / urgentcaremap-1.0.0-py3-none-any.whl

Download URL urgentcaremap-1.0.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
424290c91922cfd5cf0e2627a920d21e6618feb5e54c387960470146ae3ace9c
BLAKE2b-256 checksum
How to use checksums
211fe771b2262a1fa34274fa82bb1a56c3538d4998fe28fb42a7cf2e8414e1a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page