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
- OpenAPI
- Specification ↗
- Spec updated
- 2021-06-21
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "http://gis.surrey.ca:8080/fmedatastreaming/TrafficLoopCount/TrafficLoopCounts.fmw" \
-H "Accept: application/json"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);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
| Method | Path | What it does |
|---|---|---|
| GET | /TrafficLoopCounts.fmw | Provides 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.fmw | Provides 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.
Similar open data APIs
Compare alternatives →Search Services
Open DataAPI for Internet Archive's Search-related services
Wayback API
Open DataAPI for Internet Archive's Wayback Machine
Wikipedia
Open DataMediawiki Encyclopedia
Nasdaq Data Link
Open DataThe source for financial, economic, and alternative datasets, serving investment professionals.
University of Oslo
Open DataCourses, lecture videos, detailed information for courses etc. for the University of Oslo (Norway)
Data API
Open DataServes the Clever Data API
Listed from APIs.guru (CC0).