Skip to content

City of Surrey Open511 API API

by surrey.ca

No authOpen Data
Open documentation ↗

Overview

This API provides real time traffic obstruction events occuring within the City of Surrey.

City of Surrey Open511 API is an open data API from surrey.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://data.surrey.ca/open511
Version
0.1
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://data.surrey.ca/open511/areas" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("http://data.surrey.ca/open511/areas", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

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

Endpoints

MethodPathWhat it does
GET/areasProvides the geographical boundaries for all the jurisdictions.
GET/eventsProvides real time traffic obstruction events. The event resource provides information about road events (constructions, special events, etc.).
GET/jurisdictionLists the jurisdictions publishing data through this Open511 API implementation.
GET/jurisdictiongeographyProvides the geographical boundaries for all the jurisdictions.

Questions

Does the City of Surrey Open511 API API need an API key?

No. The City of Surrey 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 City of Surrey Open511 API API support HTTPS?

The City of Surrey Open511 API API is listed as HTTP only, so avoid sending secrets to it.

How many endpoints does the City of Surrey Open511 API API have?

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

What are alternatives to the City of Surrey 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).