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": "00000000-0000-0000-0000-000000000001",
      "power_unit_number": "unit001",
      "make": "PETERBILT",
      "model": "579",
      "year": 2022,
      "license_plate_no": "ABC1234",
      "vin": "1XPBD49X0ND000001"
    }
  ],
  "drivers": [
    {
      "guid": "00000000-0000-0000-0000-000000000002",
      "username": "driver01",
      "profile": {
        "profile_picture": null,
        "first_name": "John",
        "last_name": "Smith",
        "email": "driver01@example.com",
        "phone_number": "5550001234"
      }
    }
  ],
  "location_data": [
    {
      "vehicle_id": "unit001",
      "make": "PETERBILT",
      "model": "579",
      "year": 2022,
      "vin": "1XPBD49X0ND000001",
      "odometer": 124500,
      "start_point": "3.2 mi W of Nashville, TN",
      "speed": 0.0,
      "coordinates": [
        {
          "latitude": 36.16589,
          "longitude": -86.7844,
          "associated_date": "2025-08-15T10:22:00.000000Z",
          "driver_guid": "00000000-0000-0000-0000-000000000002"
        }
      ]
    }
  ]
}

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
profile.first_namestringFirst name
profile.last_namestringLast name
profile.emailstringEmail address
profile.phone_numberstringPhone number
profile.profile_picturestring | nullAvatar URL or null

location_data[ ]

FieldTypeDescription
vehicle_idstringMatches power_unit_number from vehicles[]
makestringManufacturer
modelstringVehicle model
yearnumberManufacturing year
vinstringVehicle Identification Number
odometernumberTotal mileage in miles
start_pointstringHuman-readable current location
speednumberCurrent speed in mph
coordinatesarrayGPS coordinates — see below

coordinates[ ] object

FieldTypeDescription
latitudenumberLatitude in decimal degrees
longitudenumberLongitude in decimal degrees
associated_datestring (ISO 8601)UTC timestamp of this GPS reading
driver_guidstring (UUID)GUID of the driver at this coordinate — matches drivers[].guid

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