Luna ELD

TruckerCloud Integration API

Luna ELD endpoints for truckercloud.com

Base URL

https://api.lunaeld.us

Authentication

Pass your API key as a query parameter on every request:

?api_key=your_api_key

Endpoints

GET
/api/web/v1/trucker-cloud/coordinates/

Fleet snapshot: vehicles, drivers, and GPS location data with optional date range filtering.

GET/api/web/v1/trucker-cloud/coordinates/

Returns a complete fleet snapshot: all registered vehicles, all drivers, and GPS location data for each vehicle. Use start_date and end_date to filter coordinate history within a time window. Each coordinate entry includes a driver_guid linking to the driver from the drivers array.

Query Parameters

ParameterTypeDescription
api_key*stringYour API key
start_datedatetimeStart of history window — format: YYYY-MM-DD HH:MM:SS
end_datedatetimeEnd of history window — format: YYYY-MM-DD HH:MM:SS

* Required. Omit date params to get current data only.

Example Requests

Current fleet data:

curl "https://api.lunaeld.us/api/web/v1/trucker-cloud/coordinates/?api_key=your_api_key"

With date range filter:

curl "https://api.lunaeld.us/api/web/v1/trucker-cloud/coordinates/?api_key=your_api_key&start_date=2025-08-01+00:00:00&end_date=2025-08-08+23:59:59"

Example Response

{
  "vehicles": [
    {
      "guid": "11111111-2222-3333-4444-555555555555",
      "power_unit_number": "TRK-001",
      "make": "FREIGHTLINER",
      "model": "Cascadia",
      "year": 2023,
      "license_plate_no": "ABC1234",
      "vin": "1HGBH41JXMN109186"
    }
  ],
  "drivers": [
    {
      "guid": "66666666-7777-8888-9999-000000000000",
      "username": "driver01",
      "first_name": "John",
      "last_name": "Doe",
      "email": "john.doe@example.com",
      "phone_number": "+15551234567",
      "license_number": "DL123456789",
      "license_state": "TX"
    }
  ],
  "location_data": [
    {
      "vehicle_id": "TRK-001",
      "make": "FREIGHTLINER",
      "model": "Cascadia",
      "year": 2023,
      "vin": "1HGBH41JXMN109186",
      "license_plate": "ABC1234",
      "device_id": "ELD123456789",
      "device_type": "ELD",
      "driver_guid": "66666666-7777-8888-9999-000000000000",
      "odometer": 125000,
      "speed": 62.5,
      "start_point": "Dallas, TX",
      "last_tracking_activity": "2026-06-01T12:00:00Z",
      "last_known_location": {
        "latitude": 32.7767,
        "longitude": -96.7970
      },
      "coordinates": [
        {
          "latitude": 32.7800,
          "longitude": -96.8000,
          "speed": 65,
          "odometer": 124950,
          "timestamp": "2026-06-01T11:45:00Z",
          "driver_guid": "66666666-7777-8888-9999-000000000000",
          "driver_name": "John Doe",
          "vehicle_id": "TRK-001",
          "timezone": "US/Central"
        }
      ]
    }
  ]
}

Response Structure

vehicles[ ]

FieldTypeDescription
guidstring (UUID)Unique vehicle identifier
power_unit_numberstringVehicle unit number
makestringManufacturer
modelstringVehicle model
yearnumberManufacturing year
license_plate_nostringLicense plate number
vinstringVehicle Identification Number

drivers[ ]

FieldTypeDescription
guidstring (UUID)Unique driver identifier — matches driver_guid in coordinates
usernamestringDriver login username
first_namestringFirst name
last_namestringLast name
emailstringEmail address
phone_numberstringPhone number
license_numberstringDriver license number
license_statestringLicense issuing state

location_data[ ]

FieldTypeDescription
vehicle_idstringMatches power_unit_number from vehicles[]
makestringManufacturer
modelstringVehicle model
yearnumberManufacturing year
vinstringVehicle Identification Number
license_platestringLicense plate number
device_idstringTracking device identifier
device_typestringDevice type (e.g. ELD)
driver_guidstring (UUID)GUID of assigned driver — matches drivers[].guid
odometernumberTotal mileage in miles
speednumberCurrent speed in mph
start_pointstringHuman-readable current location
last_tracking_activitystring (ISO 8601)UTC timestamp of last tracking activity
last_known_locationobjectLast known position — { latitude, longitude }
coordinatesarrayGPS coordinates — see below

coordinates[ ] object

FieldTypeDescription
latitudenumberLatitude in decimal degrees
longitudenumberLongitude in decimal degrees
speednumberSpeed at this reading in mph
odometernumberOdometer reading in miles
timestampstring (ISO 8601)UTC timestamp of this GPS reading
driver_guidstring (UUID)GUID of the driver at this coordinate — matches drivers[].guid
driver_namestringDriver full name
vehicle_idstringMatches power_unit_number from vehicles[]
timezonestringTimezone of the reading (e.g. US/Central)

HTTP Status Codes

200
OK
Request successful
400
Bad Request
Invalid query parameter or format
401
Unauthorized
Missing or invalid api_key
404
Not Found
Resource not found
429
Too Many Requests
Rate limit exceeded, slow down
500
Server Error
Internal error, try again later