Walking-access API overview
The API gives walking, cycling and transit times from any point in Canada to everyday amenities: grocery, pharmacy, school, hospital and others, 35 types in all. The times are computed at 2021 census block resolution with a slope-aware routing engine; transit times follow the operators’ published timetables.
The reference dataset endpoints also serve Can-ALE 2.0 and Statistics Canada Spatial Access Measures by point or census ID, with their own source years, units, and attribution.
For a first lookup, follow the quickstart. To choose between the REST API, the CLI and the MCP server, see Developers.
The base URL is https://aportee.ca/v1. Every endpoint answers in JSON except /v1/image and
/v1/compass.png (PNG), /v1/compass.svg (SVG) and /v1/openapi.yaml (YAML).
Endpoints take points as WGS84 coordinates (lat, lon). For a street address, take its
coordinates from a source you are allowed to use
(find the point).
Endpoints
Section titled “Endpoints”| Endpoint | Returns |
|---|---|
GET /v1/access |
Minutes on foot, by bike or by transit for the census block at a point |
POST /v1/access |
The same for up to 100 points (key required) |
GET /v1/search |
Cities and towns by name, and named places near a point (key required) |
GET /v1/compass |
From a point, the nearest places for each everyday trip, with minutes and directions |
GET /v1/routes |
The walked path to the nearest place of each type, with the seconds along it (key required) |
GET /v1/image |
A map image as PNG (key required) |
POST /v1/image |
A map image as PNG with up to 500 of your own markers (key required) |
GET /v1/embed |
An iframe snippet for an interactive map |
GET /v1/amenities |
The amenity types with English and French labels |
GET /v1/reference |
The reference datasets, and lookups in them by point or census ID |
GET /v1/me |
Your tier and how much of today’s limit is left |
GET /v1/health |
Whether the API is up |
GET /v1/last-updated |
The data version the API serves |
/v1/mcp |
The same times, places and Reach answers as tools for AI assistants |
GET /v1/openapi.yaml |
The OpenAPI description |
A key is optional for most read endpoints. It is required for batch lookups, map images, transit beyond the weekday peak’s typical trip (other periods, the worst case and bike + transit), walking routes and the search for named places near a point. Up to three of the nearest named places of each type come without one. To create a key and send it, follow Authentication and limits.
Agent sign-in
Section titled “Agent sign-in”An agent, a script or the CLI (aportee login) can ask for a key that you approve in
your browser. The flow uses POST /v1/auth/device (agent
sign-in).
Rate limits
Section titled “Rate limits”Calls without a key are limited to 100 requests a day per IP address, and calls with a key to 1,000
a day (10,000 for pro members and researchers). The tiers, the rate-limit headers and the 429 body are under
rate limits.
Status and data version
Section titled “Status and data version”GET /v1/health and GET /v1/last-updated need no key and aren’t counted.
/v1/health reads no stored data, so a monitor can call it often. It returns ok, the
data version the API serves, and the server’s time:
curl "https://aportee.ca/v1/health"{ "ok": true, "data_version": "20261021-r37", "time": "2026-11-22T14:02:11.513Z" }/v1/last-updated gives the data version the API serves. data_version matches the
meta.data_version of every access result; when it differs from the one stored with a
result you hold, the result may have changed. released_at is the build date in the data
version, and timing_release names the data version of the map’s cycling and transit times
(null when the API can’t read it).
curl "https://aportee.ca/v1/last-updated"{ "data_version": "20261021-r37", "released_at": "2026-10-21", "timing_release": "canada-transit-r37" }Error body
Section titled “Error body”Errors return a JSON body with a stable code you can branch on:
{ "code": "aportee.api.bad_request", "detail": "...", "statusCode": 400 }Every code, with its status and what to do, is on Errors.
Attribution
Section titled “Attribution”Output such as API results and map images is a Produced Work made from the destination database and
derived from ODbL sources (OpenStreetMap road network and amenities, StatCan census blocks and
population) and from Overture Maps Foundation Places, licensed by contributor (CDLA-Permissive 2.0,
Apache 2.0 for Foursquare’s places, or CC0 1.0). If you display or redistribute results, credit
OpenStreetMap contributors, Overture Maps Foundation and StatCan, and note the data is
available under the Open Database License. A transit result’s meta.attribution also credits the
transit operators whose timetables it uses, with a link to their source notices
(cycling and transit).
For every source and its licence, see Sources and licences. For a
citation to use in reports and papers, see Citing à portée.
Commercial use
Section titled “Commercial use”The API and MCP server are free for personal use, research and teaching, journalism and charities. Using them in a product you sell, in paid client work, or in public-sector work needs an agreement: see the terms of use and contact services@aportee.ca.
Limitations
Section titled “Limitations”- The nearest place of each type. Each amenity type gives the time to the one nearest place.
- 2021 census vintage. Population and block geometry are from the 2021 census.
- Block resolution. Results are per dissemination block, StatCan’s smallest census geography;
basissays which unit a result is for. As on the map, a block over 0.1 km² gives the result of the H3 hexagon at the point. Every address in a block or hexagon gets the same result. - Scheduled transit. Transit times come from published timetables, sampled on one day per period. A transit answer gives the walking time with
reason: "fell_back"where no transit reaches a point, and withreason: "walk_faster"where walking is quicker than the trip by transit. Without a key, transit is the weekday morning peak at the typical trip (cycling and transit). - 60-minute search. A type is
no_accesswhen the asked mode does not reach it within 60 minutes (meta.limit_minutes). - Travel times are ours. You may not extract the API’s minutes in bulk. The places themselves are open data: download them from Open data.
Machine-readable spec
Section titled “Machine-readable spec”The full contract is published as an OpenAPI 3.1 document:
https://aportee.ca/v1/openapi.yaml.
Try every endpoint against it in the API console.
The MCP server serves the same data as the API, under the same daily limits: walking, cycling and transit times, place search and amenity discovery, for MCP clients.