Read current location
GETagricultural-machinery-autopilot-current-location
Required service parameterssn, deviceID
Use the AutoPilot device ID from the authorized device list.
View operationRead tractor position, work records, and historical guidance tracks.
Reconcile tractor passes against completed work. Pull the work record and split its time range into supported track windows before measuring overlap or estimating coverage.
Compatibility. The API category covers XAG agricultural machinery AutoPilot. Confirm the console generation, regional account support and connection before deploying. The location and track services require the AutoPilot device ID in addition to the serial.
GET /open/service
serviceName=agricultural-machinery-autopilot-report-list
Report bounds use Unix milliseconds. workArea is in square metres, workMileage in metres and workTime in seconds. Status 2 is ended.
Set XAG_APP_UID and XAG_APP_SECRET in your server environment. Substitute the sample IDs with authorized values.
# Requires curl 7.87+, Python 3 and OpenSSL.
: "${XAG_APP_UID:?Set XAG_APP_UID}"
: "${XAG_APP_SECRET:?Set XAG_APP_SECRET}"
timestamp=$(python3 -c 'import time; print(time.time_ns() // 1000000)')
token=$(printf "%s" "$XAG_APP_UID$timestamp$XAG_APP_SECRET" | openssl dgst -sha1 -r | cut -d " " -f 1)
curl --silent --show-error --fail-with-body --max-time 30 --request GET \
'https://open.xa.com/open/service' \
--url-query 'serviceName=agricultural-machinery-autopilot-report-list' \
--url-query 'serialNumber=YOUR_AUTOPILOT_SN' \
--url-query 'beginDate=1788134400000' \
--url-query 'endDate=1788739200000' \
--url-query 'pageNo=1' \
--url-query 'pageSize=20' \
--url-query "appUid=$XAG_APP_UID" \
--url-query "timestamp=$timestamp" \
--url-query "token=$token"{
"status": 200,
"success": true,
"data": {
"records": [
{
"guid": "example-pass",
"startTime": 1788200000000,
"endTime": 1788203600000,
"workArea": 24500,
"status": 2
}
]
}
}All services use /open/service with the common signed query parameters. Additional fields are listed below. Open an operation for its parameters, examples and response notes.
GETagricultural-machinery-autopilot-current-location
Required service parameterssn, deviceID
Use the AutoPilot device ID from the authorized device list.
View operationGETagricultural-machinery-autopilot-report-list
Required service parametersserialNumber, beginDate, endDate, pageNo, pageSize
Filters are in milliseconds and apply to the work start time. Maximum page size is 100.
View operationGETagricultural-machinery-autopilot-location-log
Required service parameterssn, deviceID, recordStart, recordEnd
Use millisecond bounds no more than two hours apart.
View operation