Toronto Road Closures & Restrictions API
Current and planned City of Toronto road closures, construction, hazards and special-event restrictions: road, affected stretch, district, class, type, start and end times, impact level and map position. Filter by road, district, type or day.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from secure.toronto.ca/opendata/cart/road_restrictions/v3?format=json
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/toronto-road-restrictions/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"roads":["Gerrard St E"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
19 fields: 18 here, 1 technical one under Technical details.
Basics
- Main road affected
Example Tyndall Ave
- Name
The affected stretch in words, such as King St W from X to Y.
Example Tyndall Ave at King St W to 18 m South of King St W
- From road
Cross street where the stretch starts.
Example King St W
- To road
Cross street where the stretch ends.
Example King St W
- Toronto district or districts
Example TORONTO
- Road class
Road class, such as Local Road or Major Arterial.
Example Local Road
- Description
What the permit or event is, in the City's words.
Example Toronto-TMC: Watermain & TTC Track Replacement at King St W from Dufferin to Close Ave
- Type
CONSTRUCTION, ROAD_CLOSED or HAZARD.
Example ROAD_CLOSED
- Sub type
More detail on the type, such as ROAD_CLOSED_CONSTRUCTION.
Example ROAD_CLOSED_CONSTRUCTION
- Work event type
Permit category, such as Toronto Hydro or Watermain.
Example Toronto Transit Commission
- Directions affected
BOTH_DIRECTIONS or ONE_DIRECTION.
Example BOTH_DIRECTIONS
- Maximum impact
Highest expected traffic impact: Low, Medium or High.
Example Low
- Latitude
Latitude of the stretch's start.
Example 43.63858
- Longitude
Longitude of the stretch's start.
Example -79.42914
Dates
- Start at
When the restriction starts (UTC).
Example Mar 15, 2027
- End at
When the restriction ends (UTC).
Example May 15, 2027
- Last updated
When the City last updated the row (UTC).
Example Nov 18, 2026
Links
- Link
The City's restrictions map page.
Technical detailsField names and types for developers, and the 1 field hidden above
Hidden by default
This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.
- ID
idThe City's id of the restriction.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
road | text | Main road affected | 3 of 3 |
name | text | Name | 3 of 3 |
from_road | text | From road | 3 of 3 |
to_road | text | To road | 3 of 3 |
district | text | Toronto district or districts | 3 of 3 |
road_class | text | Road class | 3 of 3 |
description | text | Description | 3 of 3 |
type | text | Type | 3 of 3 |
sub_type | text | Sub type | 3 of 3 |
work_event_type | text | Work event type | 2 of 3 |
directions_affected | text | Directions affected | 3 of 3 |
start_at | date and time | Start at | 3 of 3 |
end_at | date and time | End at | 3 of 3 |
max_impact | text | Maximum impact | 3 of 3 |
lat | number | Latitude | 3 of 3 |
lon | number | Longitude | 3 of 3 |
last_updated_at | date and time | Last updated | 3 of 3 |
url | link | Link | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Name | Main road affected | From road | To road | Toronto district or districts | Road class | Description | Type | Sub type | Work event type | Directions affected | Maximum impact | Latitude | Longitude | Start at | End at | Last updated | Link |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Tyndall Ave at King St W to 18 m South of King St W | Tyndall Ave | King St W | King St W | TORONTO | Local Road | Toronto-TMC: Watermain & TTC Track Replacement at King St W from Dufferin to Close Ave | ROAD_CLOSED | ROAD_CLOSED_CONSTRUCTION | — | BOTH_DIRECTIONS | Low | 43.63858 | -79.42914 | Mar 15, 2027 | May 15, 2027 | Nov 18, 2026 | toronto.ca/services-payments/streets-parking-transportation/road-restrictions-closures/restrictions-map/ |
| 2 | Yonge St 122 m North of Gerrard St E to 94 m North of Gerrard St E | Yonge St | Gerrard St E | Gerrard St E | TORONTO | Major Arterial Road | Toronto-TMC: Scope of work includes new conduit/duct bank installation for the TTC. | ROAD_CLOSED | ROAD_CLOSED_CONSTRUCTION | Toronto Transit Commission | BOTH_DIRECTIONS | High | 43.66014 | -79.38259 | Jan 26, 2027 | Feb 8, 2027 | Dec 4, 2026 | toronto.ca/services-payments/streets-parking-transportation/road-restrictions-closures/restrictions-map/ |
| 3 | Scrivener Sq 73 m East of Yonge St to Yonge St | Scrivener Sq | Yonge St | Yonge St | TORONTO | Local Road | Toronto-TMC: Purpose of this road closure application is to allow the safe build of the new temporary bridge on Scrivener Sq adjacent to the TTC tunnel to allow for construction of the new TTC Second Entrance from the James Condo. During the build Scrivener Sq will be excavated… | ROAD_CLOSED | ROAD_CLOSED_CONSTRUCTION | Toronto Transit Commission, Other | BOTH_DIRECTIONS | Low | 43.68074 | -79.39012 | Jan 4, 2027 | Jan 29, 2027 | Nov 24, 2026 | toronto.ca/services-payments/streets-parking-transportation/road-restrictions-closures/restrictions-map/ |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Data is the City of Toronto's road restrictions open data, published under the Open Government Licence - Toronto; credit the City of Toronto.
- The City publishes the whole list as one file (about 1,800 rows) that it updates through the day; each run reads that file once and filters it, so results are a snapshot of that moment.
- Times are as permits state them and are shown in UTC; daily work windows (such as 22:00-09:00) are in the schedule text of the City's map, not in these fields.
- work_event_type is the permit category as the City wrote it and is empty on some rows; road_class is Unknown for some rows.
- Position is a single point near the start of the affected stretch.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.