Skip to content

City of Surrey Traffic Loop Count API. API

by surrey.ca

No authOpen Data
Open documentation ↗

Overview

This API provides locations of City of Surrey traffic loops and the corresponding traffic loop counts in 15 minute intervals. While the counts are broken up by 15 minute intervals, the data is currently loaded only once per day. We are hoping to increase this frequency to at least once every hour. The LOOP_ID field is common to both datasets and can be used to cross-reference them.

City of Surrey Traffic Loop Count API. is an open data API from surrey.ca. It needs no API key. It is served over plain HTTP. Its OpenAPI description documents 2 endpoints.

At a glance

Authentication
No auth
HTTPS
No
CORS
Unknown
Category
Open Data
Base URL
http://gis.surrey.ca:8080/fmedatastreaming/TrafficLoopCount
Version
0.1
Endpoints
2
Spec updated
2021-06-21

Make a first request

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

cURL
curl -X GET "http://gis.surrey.ca:8080/fmedatastreaming/TrafficLoopCount/TrafficLoopCounts.fmw" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("http://gis.surrey.ca:8080/fmedatastreaming/TrafficLoopCount/TrafficLoopCounts.fmw", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "http://gis.surrey.ca:8080/fmedatastreaming/TrafficLoopCount/TrafficLoopCounts.fmw",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/TrafficLoopCounts.fmwProvides traffic loop counts for the input time interval. The LOOP_ID and DATETIME combinations are unique in the output. The output timestamp will contain the
GET/TrafficLoops.fmwProvides all the traffic loops maintained by the City of Surrey in GeoJSON format. LANE_DIRECTION indicates the heading of the traffic (NB, SB, EB, WB). INTERSE

Questions

Does the City of Surrey Traffic Loop Count API. API need an API key?

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

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

How many endpoints does the City of Surrey Traffic Loop Count API. API have?

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

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