Lumaktaw sa pangunahing nilalaman

Mag-ulat ng problema

Ang pahinang ito ay hindi tungkol sa isang hintuan, ruta, istasyon o sasakyan. Magbukas po ng isa para mapangalanan ito ng ulat, o gamitin ang buong ulat.

Ano ang nangyari
Buong ulat Hindi kailangan ng account
Ebidensya at datos
  1. Babasahin
  2. Ebidensya at datos
  3. API para sa developer

Bawat bilang sa site na ito ay makukuha sa isang libreng JSON call.API para sa developer

Every figure here is versioned JSON. Free to use, with or without a key.Every figure here is versioned JSON. Free to use, with or without a key.

Free, key optional · 1,000 a day, 60 a minute · code MIT · version 1.0.0

Pag-access

Free

key optional

Limitasyon sa rate

1,000 a day

60 a minute; more on Developer

Lisensya ng code

MIT

ang data ay may sariling tuntunin ng pinagmulan nito

Bersyon

1.0.0

stable · 180 days’ notice

Plans

Free

1,000 calls a day, 60 a minute. No key needed; a free key counts your calls separately from everyone else on your network.

Credit ‘Data: OTranspo (otranspo.ca)’ wherever you show the data.

Developer

$10 a monthor $100 a year (CAD)

  • 100,000 calls a day, 600 a minute
  • Bulk downloads and full history
  • Support by email

Journalists, students and council staff: the free tier is yours. Write to us if you need more for a story or a study.

How to send a key

curl -H "Authorization: Bearer otr_…" https://otranspo.ca/api/public/v1/route-states

Mga limitasyon

Each answer carries X-RateLimit-Remaining (this minute) and X-RateLimit-Daily-Remaining (today, UTC). Over the limit you get 429 with the time it resets.

Isang tawag, mula simula hanggang dulo

Request

curl https://otranspo.ca/api/public/v1/route-states

Ang tugon po ay ang tunay na tugon mula sa site na ito, kinukuha kapag humiling po kayo.

Sagot, pinaikli Schema

Tumatakbo…

Lahat ng resource, 39

Ang mga path ay nagsisimula sa /api/public/v1 maliban kung buo ang pagkasulat. Buksan po ang anumang hanay para makita ang mga HTTP status, error code, access, kawalang-katiyakan at schema.

Index at kontratamagsimula rito2
Index ng APIGET/api/public/v1—JSON

HTTP status

200

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

endpoints.id · endpoints.path

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1

JSON Schema

Kontrata ng OpenAPI 3.1GET/openapi.json—JSON

HTTP status

200

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

operationId · path

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/openapi.json

JSON Schema

Serbisyo ngayonang nangyayari ngayong minuto5
Mga kanselasyong naka-post ngayonGET/current-cancellations—JSON

HTTP status

200 · 400 · 503

Mga reason code ng error

unsupported_query 400 · current_cancellations_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

trips.tripId · trips.routeId

Pinagmulan at kawalang-katiyakan

Only explicit CANCELED/DELETED notices for timetable trips in the current snapshot are listed. Empty or unavailable feeds do not prove that no trips were cancelled; outside-timetable notices may be withheld.

Halimbawang tawag

GET /api/public/v1/current-cancellations

JSON Schema

Mga katayuan ng ruta: nakaiskedyul laban sa nakitaGET/route-states—JSON

HTTP status

200 · 503

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

operatorId · routeId

Pinagmulan at kawalang-katiyakan

This is not an operator alert. Routes without published positions use positions_not_published; stale or missing feeds return unavailable.

Halimbawang tawag

GET /api/public/v1/route-states

JSON Schema

Mga insidente, sa Ingles at PransesGET/incidents—JSON

HTTP status

200 · 503

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

publicId · slug · updates.id

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/incidents

JSON Schema

Isang opisyal na abisoGET/alerts/{alertId}format=json|csv · alertIdJSON · CSV

HTTP status

200 · 400 · 503

Mga reason code ng error

invalid_alert_id 400 · unsupported_format 400 · alert_not_found 400 · alert_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

alert.id · alert.operatorId

Pinagmulan at kawalang-katiyakan

The notice is the operator’s own wording. Kept wordings start when we first saw the notice, not when the operator posted it, and an empty list does not prove the notice never changed.

Halimbawang tawag

GET /api/public/v1/alerts/{alertId}

JSON Schema

Talaan ng mga alis sa istasyonGET/stations/{stationId}format=json|csv · stationIdJSON

HTTP status

200 · 400 · 404 · 503

Mga reason code ng error

invalid_station_id 400 · unsupported_format 400 · station_not_found 404 · station_board_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

station.id · lines.routeRecordId · departures.tripId

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/stations/{stationId}

JSON Schema

Ebidensya at mga reportang mga numero sa likod ng bawat pahina11
Ebidensya ng pagiging maaasahanGET/reliability-evidenceformat=json|csvJSON · CSV

HTTP status

200 · 400 · 503

Mga reason code ng error

unsupported_format 400

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

routeId · window

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/reliability-evidence

JSON Schema

Data ng rutaGET/routes/{routeId}/evidenceformat=json|csv · routeIdJSON

HTTP status

200 · 400 · 404 · 503

Mga reason code ng error

invalid_route_id 400 · unsupported_format 400 · route_not_found 404 · route_evidence_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

route.routeId

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/routes/{routeId}/evidence

JSON Schema

Route 7 evidence on the site

Serbisyo ng ruta kada arawGET/routes/{routeId}/service-evidencewindow=day|week|month|28d · date · format=json|csv · routeIdJSON

HTTP status

200 · 400 · 404 · 503

Mga reason code ng error

invalid_route_id 400 · unsupported_window 400 · invalid_service_date 400 · unsupported_format 400 · route_not_found 404 · route_service_evidence_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

routeId · window

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/routes/{routeId}/service-evidence

JSON Schema

Serbisyo ng istasyon o wardGET/places/{kind}/{placeId}/service-evidencedate · kind=station|ward · placeIdJSON

HTTP status

200 · 400 · 503

Mga reason code ng error

unsupported_place_kind 400 · invalid_place_id 400 · unsupported_query 400 · invalid_service_date 400 · place_service_evidence_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

kind · placeId · operatorId

Pinagmulan at kawalang-katiyakan

Observation and cancellation completeness are explicitly unverified; no-position candidate counts remain null and comparison eligibility is false.

Halimbawang tawag

GET /api/public/v1/places/{kind}/{placeId}/service-evidence

JSON Schema

I-download ang talaan ng ebidensyaGET/evidence/{evidenceId}format=json|csv · evidenceIdJSON · CSV

HTTP status

200 · 400 · 404

Mga reason code ng error

unsupported_format 400 · not_found 404

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

evidenceId

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/evidence/{evidenceId}

JSON Schema

Mga scorecard ng wardGET/ward-scorecardsformat=json|csvJSON · CSV

HTTP status

200 · 503

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

snapshotId · wardId

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/ward-scorecards

JSON Schema

Mga nakaraang edisyon ng scorecardGET/historical-scorecardssnapshotId=historical-scorecards:<sha256> · routeIdJSON

HTTP status

200 · 400 · 404 · 422

Mga reason code ng error

snapshot_id_required 400 · invalid_route_id 400 · invalid_parameters 400 · snapshot_not_found 404 · route_detail_not_published 422 · route_not_in_snapshot 404

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

snapshotId · routeId

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/historical-scorecards

JSON Schema

Arkibo ng ulat ng serbisyoGET/service-report-archivekindJSON

HTTP status

200 · 400 · 503

Mga reason code ng error

invalid_archive_query 400 · archive_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

kind · period

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/service-report-archive

JSON Schema

Katumpakan ng hulaGET/prediction-calibration—JSON

HTTP status

200 · 503

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

operatorId · routeId · routeContext · horizonBucket

Pinagmulan at kawalang-katiyakan

Later observed arrival is a comparison, not ground truth or a validated prediction interval; independent validation is false.

Halimbawang tawag

GET /api/public/v1/prediction-calibration

JSON Schema

Napiling ulat ng serbisyoGET/api/insights/reports/selected?period={period}&date={YYYY-MM-DD}period=day|week|month · date=YYYY-MM-DD · operator=all|oc_transpo|sto · routeJSON

HTTP status

200 · 400 · 503

Mga reason code ng error

invalid_selection 400 · selected_report_unavailable 503 · invalid_route_hour_selection 400 · route_hours_unavailable 503

Access at limitasyon ng paggamit

Anonymous; walang naka-configure na limitasyon ng public-api para sa path na ito.

Mga pirmihang identifier

period · date · operator · method

Pinagmulan at kawalang-katiyakan

Without route, the selected-report contract is unchanged. With route, the selected-route-hours contract returns at most48 method-separated local-hour prediction groups, preserving requested report operator separately from routeOperator. These mutable retained predictions do not prove physical arrivals, complete archive coverage, zero service or an immutable publication.

Halimbawang tawag

GET /api/insights/reports/selected?period={period}&date={YYYY-MM-DD}

JSON Schema

Mga batayan sa paghahambing ng prediksyonGET/api/insights/reports/selected/comparison-evidence?period={period}&date={YYYY-MM-DD}period=day|week|month · date=YYYY-MM-DD · operator=all|oc_transpo|stoJSON

HTTP status

200 · 400 · 503

Mga reason code ng error

invalid_comparison_evidence_selection 400

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

payload.edition · payload.selection · checksum.value

Pinagmulan at kawalang-katiyakan

This opt-in export preserves the exact captured route/day read results, declared calendar, comparison refusals and measured source-code manifest. It is bounded to 20,000 input rows and 8 MiB and does not claim an atomic database snapshot, statistical independence, confidence intervals, physical service delivery, causation, equivalence or model eligibility. Schema validation alone does not verify checksum or replay; consumers must perform those checks separately.

Halimbawang tawag

GET /api/insights/reports/selected/comparison-evidence?period={period}&date={YYYY-MM-DD}

JSON Schema

Kasaysayan at muling pagpapanoodang nangyari na6
Mga nakaraang kanselasyon at puwangGET/historical-cancellationswindow=day|week|28d|month · date · assessment=noneJSON

HTTP status

200 · 400 · 503

Mga reason code ng error

unsupported_query 400 · unsupported_window 400 · invalid_service_date 400 · unsupported_assessment 400 · historical_cancellations_unavailable 503 · historical_cancellation_limit_exceeded 400

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

period · records.tripId

Pinagmulan at kawalang-katiyakan

Historical polling completeness is unverified and schedule matching may be unassessed; unknown coverage is not zero cancellations.

Halimbawang tawag

GET /api/public/v1/historical-cancellations

JSON Schema

Replay ng lungsodGET/replaydate · routeFamily · operator · fromMinute · minutes · summaryJSON

HTTP status

200 · 400 · 503

Mga reason code ng error

date_required 400 · invalid_route_family 400 · invalid_operator 400 · replay_positions_unavailable 503 · published_replay_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

date · routeFamily · operator

Pinagmulan at kawalang-katiyakan

Replay is historical and never live; only captured/published archive evidence is returned.

Halimbawang tawag

GET /api/public/v1/replay

JSON Schema

Mga sasakyang namataan, kada arawGET/fleet-historydate · operator=all|oc_transpo|sto · route · feedIdJSON

HTTP status

200 · 400 · 503

Mga reason code ng error

invalid_fleet_history_lookup 400 · invalid_fleet_history_date 400 · invalid_fleet_history_operator 400 · fleet_history_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

serviceDate · operator · route

Pinagmulan at kawalang-katiyakan

Retained feed observations are not a physical fleet inventory; missing retention is not zero service.

Halimbawang tawag

GET /api/public/v1/fleet-history

JSON Schema

Mga ID ng sasakyan sa feed, kada arawGET/fleet-history/feed-idsdate · operator=all|oc_transpo|sto · cursorJSON

HTTP status

200 · 400 · 503

Mga reason code ng error

invalid_fleet_feed_id_selection 400 · invalid_fleet_history_date 400 · invalid_fleet_history_operator 400 · invalid_fleet_feed_id_cursor 400 · fleet_feed_id_census_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

date · operator · digest · collisionOrdinal

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/fleet-history/feed-ids

JSON Schema

Isang ID ng sasakyan sa paglipas ng panahonGET/vehicles/{vehicleId}/visibility-historyformat=json|csv · vehicleIdJSON

HTTP status

200 · 400 · 404 · 503

Mga reason code ng error

invalid_vehicle_id 400 · unsupported_format 400 · vehicle_history_unavailable 503 · vehicle_history_not_found 404

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

vehicleId

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/vehicles/{vehicleId}/visibility-history

JSON Schema

Vehicles seen, in bulkGET/bulk/fleet-historyfrom · to · operator=all|oc_transpo|sto · route · feedIdJSON

HTTP status

200 · 400 · 401 · 403 · 429 · 503

Mga reason code ng error

unsupported_query 400 · invalid_bulk_range 400 · invalid_fleet_history_lookup 400 · invalid_fleet_history_operator 400 · fleet_history_unavailable 503 · api_key_required 401 · invalid_api_key 401 · plan_required 403 · rate_limited 429

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

serviceDate · operator · route

Pinagmulan at kawalang-katiyakan

Each line is the fleet-history evidence for one seven-day window; retained feed observations are not a physical fleet inventory and missing retention is not zero service.

Halimbawang tawag

GET /api/public/v1/bulk/fleet-history

JSON Schema

Mga iskedyul at offlineang nailathalang iskedyul6
Iskedyul para sa isang rutaGET/transit-planning/{routeId}date · routeIdJSON

HTTP status

200 · 400 · 503

Mga reason code ng error

invalid_route_or_date 400 · use_history_for_past_dates 400 · planning_baseline_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

routeId · serviceDate

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/transit-planning/{routeId}

JSON Schema

Timetable para sa buong networkGET/transit-planning/networkdateJSON

HTTP status

200 · 400 · 503

Mga reason code ng error

invalid_parameters 400 · invalid_service_date 400 · network_baseline_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

serviceDate

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/transit-planning/network

JSON Schema

Daan sa kalye sa pagitan ng dalawang puntoPOST/transit-planning/street-pathbodyJSON

HTTP status

200 · 400 · 503

Mga reason code ng error

invalid_body 400 · invalid_segment 400

Access at limitasyon ng paggamit

Anonymous, kailangan ng pinagkakatiwalaang pinagmulan. 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

from · to

Pinagmulan at kawalang-katiyakan

Path may be unavailable when routing source data is absent; no path is not evidence of no accessible route.

Halimbawang tawag

POST /api/public/v1/transit-planning/street-path

JSON Schema

Mga offline na pakete ng timetableGET/offline-pack—JSON

HTTP status

200 · 503

Mga reason code ng error

offline_pack_not_published 503 · offline_pack_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

packId · digest

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/offline-pack

JSON Schema

Listahan ng offline packGET/offline-pack/manifestpackJSON

HTTP status

200 · 404 · 503

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

packId · shards.id

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/offline-pack/manifest

JSON Schema

Bahagi ng offline packGET/offline-pack/shards/{id}idbytes

HTTP status

200 · 404 · 503

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

id · digest

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/offline-pack/shards/{id}

JSON Schema

Mga rehistro at patakaranang binago namin at kung bakit6
Talaan ng mga correctionGET/correctionsformat=json|csvJSON · CSV

HTTP status

200 · 400

Mga reason code ng error

unsupported_format 400

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

records.id · records.revision

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/corrections

JSON Schema

Talaan ng patakaranGET/policy-register—JSON

HTTP status

200

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

records.id · records.revision

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/policy-register

JSON Schema

Katiyakan sa accessibilityGET/accessibility-assurance—JSON

HTTP status

200

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

evidence.id · remediationLog.id

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/accessibility-assurance

JSON Schema

Saklaw ng rehiyon at pagiging napapanahon ng datosGET/regional-coverage—JSON

HTTP status

200 · 503

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

operators.operatorId

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/regional-coverage

JSON Schema

Mga paraan ng abiso at tulongGET/journey-service-policy—JSON

HTTP status

200

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

contractVersion · channels.channel

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/journey-service-policy

JSON Schema

Pagsusuri ng itsura ng sasakyanGET/fleet-presentation—JSON

HTTP status

200 · 503

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

evidence.operatorSamples.operatorId

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/fleet-presentation

JSON Schema

Pagbabahagimga link at social card3
Gumawa ng share linkPOST/share-snapshotsbodyJSON

HTTP status

200 · 400 · 404 · 409 · 503

Mga reason code ng error

Invalid request body. 400 · A canonical public path is required. 400 · This page cannot be shared as a public snapshot. 400 · The public page was not found. 404

Access at limitasyon ng paggamit

Anonymous, kailangan ng pinagkakatiwalaang pinagmulan. 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

snapshotId · revision

Pinagmulan at kawalang-katiyakan

If immutable evidence is not published, issuance returns a canonical_only state; retryable storage faults return a human-readable error and 503.

Halimbawang tawag

POST /api/public/v1/share-snapshots

JSON Schema

Katayuan ng share linkGET/share-snapshots/{snapshotId}snapshotIdJSON

HTTP status

200 · 400 · 404 · 410 · 503

Mga reason code ng error

—

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

snapshotId · revision

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/share-snapshots/{snapshotId}

JSON Schema

Social card ng link na ibabahagiGET/share-snapshots/{snapshotId}/opengraphsnapshotIdPNG

HTTP status

200 · 400 · 404 · 503

Mga reason code ng error

invalid_identifier 400 · not_found 404 · temporarily_unavailable 503

Access at limitasyon ng paggamit

Access na hindi nagpapakilala; 60 kada minuto kapag naka-on ang distributed rate limiting.

Mga pirmihang identifier

snapshotId · revision

Pinagmulan at kawalang-katiyakan

Read the response status, evidenceState, source timestamps, limitations and gaps; absence is not proof of zero.

Halimbawang tawag

GET /api/public/v1/share-snapshots/{snapshotId}/opengraph

JSON Schema

Pag-access at paggamit

Pag-access at paggamitLimits, caching, versions, privacy and licence
Pag-access
Every GET resource is public and free to use, with or without a key. Bulk and history resources need a Developer key. The two POST resources (making a share link, drawing a street path) only accept requests from otranspo.ca itself.
Limitasyon sa rate
1,000 calls a day and 60 a minute, with or without a free key; 100,000 a day and 600 a minute on the Developer plan. Read the X-RateLimit-* headers on every answer; X-RateLimit-Status says when limits are degraded.
Keys
Send a key as Authorization: Bearer otr_… or X-API-Key. Never in the address. A wrong, revoked or expired key gets 401, never a keyless answer.
Caching
The index is kept 30 seconds by your browser and 5 minutes at the edge. Live resources such as cancellations are sent no-store. Offline timetable pieces never change once published.
Mga bersyon
Bawat tugon ay nagpapakita ng schema at schemaVersion nito. Ang pagbabagong makakasira ay magkakaroon ng bagong path na /v2, na may paunawang 180 araw sa mga header na Deprecation, Sunset at Link.
Privacy
Huwag po kayong magpadala ng personal na datos. Ang mga coordinate na ipinapadala sa street path ay para lang sa kahilingang iyon, hindi kailanman itinatala o itinatabi. Ang mga tugon ay hindi naglalaman ng account ID, paghahanap ng biyahe, email o network address, o panloob na link ng ebidensya.
Ang hindi alam ay hindi zero
Maaaring hindi available ang isang tugon kahit may resource. Basahin ang status, evidenceState, mga oras ng pinagmulan, saklaw at mga limitasyon. Ang mga estado ng ruta ay naghahambing ng iskedyul sa mga bus na namataan. Hindi po ito mga abiso mula sa tagapagpatakbo.
Lisensya
Code: MIT. Ang data ng OC Transpo at STO ay nananatili sa sarili nilang open-data na tuntunin at kailangang bigyan ng credit. Ang aming mga bilang: CC BY 4.0, credit otranspo.ca.
Hindi pa tapos
No SDK is published, no second city is supported, and partner tenant-key access is not open. This page does not claim them.
Datos at mga downloadAng parehong mga bilang bilang CSV at JSON file, kasama ang paraan ng pagsipi sa mga ito.