Skip to content

DriveBC's Open511 API API

by gov.bc.ca

No authOpen Data
Open documentation ↗

Overview

This API is DriveBC's implementation of the Open511 specification. It provides information about known road events (traffic accidents, construction, etc.) in British Columbia, Canada. Please note that you may experience issues when submitting requests to the delivery or test environment if using this [OpenAPI specification](https://github.com/bcgov/api-specs) in other API console viewers.

DriveBC's Open511 API is an open data API from gov.bc.ca. It needs no API key. It is served over plain HTTP. Its OpenAPI description documents 4 endpoints.

At a glance

Authentication
No auth
HTTPS
No
CORS
Unknown
Category
Open Data
Base URL
http://api.open511.gov.bc.ca/
Version
1.0.0
Endpoints
4
Spec updated
2021-06-21

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "http://api.open511.gov.bc.ca/areas" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("http://api.open511.gov.bc.ca/areas", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "http://api.open511.gov.bc.ca/areas",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/areasLists the geographical areas (e.g. districts) that can be used to filter events.
GET/eventsLists road events
GET/jurisdictionLists the jurisdictions publishing data through this Open511 API implementation
GET/jurisdictiongeographyProvides the geographical boundaries for all the jurisdictions.

Questions

Does the DriveBC's Open511 API API need an API key?

No. The DriveBC's Open511 API API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the DriveBC's Open511 API API support HTTPS?

The DriveBC's Open511 API API is listed as HTTP only, so avoid sending secrets to it.

How many endpoints does the DriveBC's Open511 API API have?

Its OpenAPI description lists 4 endpoints in version 1.0.0. All of them are shown on this page.

What are alternatives to the DriveBC's Open511 API API?

Other Open Data APIs include Search Services, Wayback API, Wikipedia, Nasdaq Data Link, University of Oslo.

Compare alternatives →

Listed from APIs.guru (CC0).