Skip to content

Camera JSON endpoints

NMDOT JSON web services that provide camera location and image data for traffic cameras throughout New Mexico via their NMRoads platform.

NMDOT doesn't directly document these endpoints, but their NMRoads web map makes network requests to these JSON endpoints when observed via browser tools:

GET https://servicev4.nmroads.com/RealMapWAR/GetCameraInfo
GET https://servicev4.nmroads.com/RealMapWAR/GetCameraImage

While the New Mexico 511 map, NMRoads, has separate entries for cameras with sensor data temperature and humidity, they don't appear to publish this data alonside either of the observed camera endpoints below.

GetCameraInfo endpoint

  • Source URL: https://servicev4.nmroads.com/RealMapWAR/GetCameraInfo
  • Update frequency: realtime
  • Source endpoint type: JSON REST
  • Availability: Public
  • HTTP Method: GET
  • Response Format: JSON

This endpoint returns an array of camera objects where each object contains relevant location and identifier data:

{
    "cameraInfo": [
        {
            "sdpFileMedRes": "",
            "mobile": false,
            "videoServer": "rtmp:\/\/video.nmroads.com\/nmroads",
            "lon": -106.244,
            "sdpFileLowRes": "",
            "title": "I-25 @ Lower La Bajada",
            "message": "",
            "sdpFileHighRes": "i25_lowerlabajada.stream",
            "grouping": "Santa Fe Area",
            "demo": null,
            "resolution": "D1",
            "cameraType": "iDome",
            "enabled": true,
            "snapshotFile": "http:\/\/ss.nmroads.com\/snapshots\/i25_lowerlabajada.jpg",
            "stream": true,
            "district": 5,
            "sortOrder": 32170,
            "name": "I-25@La_Bajada_Lower",
            "lat": 35.506001
        },
        ...
    ]
}

Field schema

Field Name Type Description
sdpFileMedRes String SDP file for medium resolution stream
mobile Boolean Whether camera is mobile?
videoServer String RTMP video server URL
lon Number Longitude coordinate
sdpFileLowRes String SDP file for low resolution stream
title String Camera display title
message String Status message?
sdpFileHighRes String SDP file for high resolution stream
grouping String Geographic grouping
demo Null Demo flag
resolution String Video resolution
cameraType String Type of camera hardware
enabled Boolean Whether camera is active
snapshotFile String Direct snapshot image URL
stream Boolean Whether streaming is available
district Number DOT district number?
sortOrder Number Display sort order
name String Camera identifier name
lat Number Latitude coordinate

Notes

  • snapshotFile URLs allow direct access to camera image snapshots.
  • Snapshot URLs do not support HTTPS.
  • Snapshot images contain minimal EXIF data.
  • WAC references these shapshot images over the GetCameraImage endpoint due to higher resolution.

GetCameraImage endpoint

  • Source URL: https://servicev4.nmroads.com/RealMapWAR/GetCameraImage
  • Update frequency: realtime
  • Source endpoint type: JSON REST
  • Availability: Public
  • HTTP Method: GET
  • Response Format: Image (JPEG)
  • Required Parameters: cameraName

Allows you to fetch individual camera images based on the camera's name value from the GetCameraInfo endpoint.

Usage example

https://servicev4.nmroads.com/RealMapWAR/GetCameraImage?ts=0&cameraName={CAMERA_NAME}&{TIMESTAMP}

Notes

  • Returns lower resolution images compared to direct snapshotFile URLs.
  • Images contain minimal EXIF data.
  • This endpoint is used by the NMRoads web map interface.
  • Both this endpoint and snapshotFile URLs provide similar but not identical imagery.