City of Lethbridge Open Data
/install lethbridge-opendata
City of Lethbridge Open Data
Access and analyze 123+ open datasets from the City of Lethbridge via ArcGIS Hub. Data covers transit, infrastructure, elections, environment, tourism, and more.
Portal: https://opendata.lethbridge.ca Platform: ArcGIS Hub
Quick Start
# Search for datasets
python3 scripts/lethbridge_data.py search "traffic"
# List all datasets
python3 scripts/lethbridge_data.py list
# View dataset info
python3 scripts/lethbridge_data.py info "Traffic Counts"
# Fetch data from ArcGIS feature service
python3 scripts/lethbridge_data.py fetch "Traffic Counts" --limit 5
# Fetch with field filter
python3 scripts/lethbridge_data.py fetch "Intersection Safety Devices" --limit 10 --format json
# Export as CSV
python3 scripts/lethbridge_data.py fetch "City Boundary" --csv
# List all datasets with download links
python3 scripts/lethbridge_data.py downloads
Commands Reference
| Command | Description |
|---|---|
search \x3Cquery> |
Search datasets by keyword |
list |
List all datasets |
info \x3Cname-or-id> |
Show dataset metadata and data source |
fetch \x3Cname-or-id> |
Fetch data (opts: --limit, --format json/csv, --csv) |
downloads |
List datasets with direct file download URLs |
Data Sources
Lethbridge datasets come in three types:
- ArcGIS Feature Services — Queryable geospatial data (parks, streets, boundaries)
- ArcGIS Map Services — Read-only map layers
- Document Links — Direct file downloads (Excel, CSV, PDF)
The CLI auto-detects the source type and uses the appropriate method.
ArcGIS REST API
Geospatial datasets use the ArcGIS REST query API:
- Endpoint:
https://gis.lethbridge.ca/gisopendata/rest/services/OpenData/ - Supports
where,outFields,resultRecordCount,f(json/geojson) parameters - Max 2000 records per query
Data Sources
All data is sourced from the City of Lethbridge's Open Data Portal (opendata.lethbridge.ca). See references/datasets.md for a curated list of popular datasets.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install lethbridge-opendata - After installation, invoke the skill by name or use
/lethbridge-opendata - Provide required inputs per the skill's parameter spec and get structured output
What is City of Lethbridge Open Data?
Access 123+ datasets from the City of Lethbridge open data portal. Search, fetch, and analyze city data on transit, infrastructure, elections, environment, a... It is an AI Agent Skill for Claude Code / OpenClaw, with 130 downloads so far.
How do I install City of Lethbridge Open Data?
Run "/install lethbridge-opendata" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is City of Lethbridge Open Data free?
Yes, City of Lethbridge Open Data is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does City of Lethbridge Open Data support?
City of Lethbridge Open Data is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created City of Lethbridge Open Data?
It is built and maintained by Ray Chan, PMP (@raychanpmp); the current version is v1.0.1.