Gradniki in podatki

Live Tracking API guide

The Live Tracking API returns the most recent known position for each active, registered XCGlobe pilot with a recent GPS fix. Use it to show pilots on a map in your own application.

Get a key

  1. Sign in and choose Get access under Live Tracking in Widgets & data. Describe how you plan to use the data.
  2. Copy the key shown when you submit the request. Keep it in your server configuration or secret store.
  3. Wait for the approval email or check the key status under My API keys. Once active, send the key in the HTTPS Authorization header.

Make a request

Call the API from your server every 60–120 seconds. Replace YOUR_API_KEY with your active key.

curl "https://xcglobe.com/api/partners/v1/live-tracking/positions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Read the response

[[123, 46.05, 14.50, 1200, 1795428892, "Example Pilot"]]

Each row contains the pilot ID, latitude and longitude in decimal degrees, altitude in metres, GPS time in Unix seconds (UTC), and the pilot's display name.

The server prepares a shared snapshot every minute. The X-Snapshot-At response header gives its preparation time. Replace your previous list on each successful 200 response. An empty array [] means there are currently no positions to show.

400 Bad request
Send the request without query parameters.
401 Unauthorized
Check that the key is active and sent in the Bearer header.
429 Too many requests
Use the Retry-After header to wait before trying again.
503 Snapshot temporarily unavailable
Keep your last successful list and respect Retry-After.