Skip to main content
GET/v2/vehicle-location-history/{vehicle_id}

Vehicle Location History

Returns a vehicle's historical GPS breadcrumbs for up to the last 6 months.

Token-based pagination

Tokens are tied to the original vehicle_id, start_date, and end_date. Changing any of those requires a new query. You cannot page backwards.

Authentication

Send both headers on every request.How auth works →
X-API-Provider-Key
Your provider key — identifies your platform. The same for every request.
X-API-Company-Key
The carrier's company key — scopes all returned data to that one carrier.

Path parameters

ParameterTypeDescription
vehicle_idUUIDrequiredThe vehicle's unique identifier

Query parameters

ParameterTypeDefaultDescription
start_datestringrequiredFormat MM-DD-YYYY
end_datestringrequiredFormat MM-DD-YYYY
limitintegeroptionaldefault 100Records per page
next_page_tokenstringoptionalFrom the previous response

Responses

200OK— payload in data, wrapped in the response envelope.
FieldTypeDescription
idUUIDUnique record identifier
vehicle_numberstringVehicle or unit number
vinstringVehicle Identification Number
latstringLatitude
lngstringLongitude
statusstringMotion status at the reading
One of:IN_MOTIONSTATIONARYOFFLINE
speedstringSpeed at the reading (mph)
timestampstringTime of reading (UTC, ISO-8601)
calc_locationstringHuman-readable location
directionstringHeading in degrees (0–360)
next_page_tokenstringPass back in your next request. Absent on last page.
401Unauthorized— missing or invalid API key.
FieldTypeDescription
status_codeintegerHTTP status code (e.g. 401).
descriptionstringHuman-readable error message.
datanullAlways null on error.
Sample request
curl -X GET "https://api.huntereld.com/v2/vehicle-location-history/e5c9f3b1-2d7a-4e8c-a6f3-9b1d4e7c2f5a?start_date=08-20-2026&end_date=08-22-2026&limit=100" \
  -H "X-API-Provider-Key: YOUR_PROVIDER_KEY" \
  -H "X-API-Company-Key: YOUR_COMPANY_KEY"
Example response200 OK
{
  "description": "success",
  "data": [
    {
      "id": "c3f1a7d9-5e2b-4c8f-a1d4-7b9e3f6a2c0d",
      "vehicle_number": "1042",
      "vin": "1XKYD49X3NJ312847",
      "lat": "41.253789",
      "lng": "-95.934162",
      "status": "IN_MOTION",
      "speed": "58",
      "timestamp": "2026-08-22T22:14:33Z",
      "calc_location": "I-80 W near Omaha, NE",
      "direction": "270"
    }
  ],
  "size": 100,
  "next_page_token": "AE8AAAACAAAAA19oawAAABFQ/7Vn..."
}
Error response401
{
  "status_code": 401,
  "description": "Company API key is not valid",
  "data": null
}
esc