highway_cams
B.C. highway cameras (DriveBC HighwayCams), locations and attributes
Find the Ministry of Transportation and Transit's highway web cameras from the DriveBC HighwayCams list: by highway (1, 99, 7B), by words in the camera name or caption (Coquihalla, Kicking Horse), by region, by camera id, or by distance from a point. Returns the camera's name, highway, caption, region, the compass direction it faces, position, elevation, the ministry's note, and a link to its DriveBC page. Locations and attributes only: no images, and nothing says whether a camera is working or what it shows now. Open page_url for the current picture.
Cost: 1 unit of your allowance (see Rate limits).
Parameters
query(string, optional): min length 1, max length 60highway(string, optional): min length 1, max length 30region(Lower Mainland,Southern Interior,Vancouver Island,Northern,Border Cams, optional)id(integer, optional): min 1, max 999999lat(number, optional): min 47.5, max 61lon(number, optional): min -140, max -113radius_km(number, optional): min 0.5, max 200limit(integer, optional): min 1, max 50, default20
REST
curl -X POST https://api.bcmcp.ca/v1/tools/highway_cams \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-d '{}'MCP
Call the tool highway_cams with these arguments. Over raw JSON-RPC:
curl -X POST https://api.bcmcp.ca/mcp \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"highway_cams","arguments":{}}}'What comes back
Every answer is the same envelope, over REST and over MCP: available, data, citations, freshness and notes. See Citations and freshness.