Location Tracking
Access real-time and historical location data for trackable devices with the AirPinpoint API.
Location Tracking
The Location Tracking endpoints allow you to access real-time and historical location data for your trackable devices.
Get Current Location
Retrieve the current location of a specific trackable device.
Endpoint
GET /trackables/{trackable_id}/locations
Example Request
Example Response
Response Format
All timestamps in the response are returned in ISO 8601 UTC format (e.g., "2024-10-06T15:08:28.172Z").
The response will include:
id
: Unique identifier for the location recordtrackableId
: ID of the tracked devicename
: Name of the device, if set in FindMylatitude
: Latitude coordinatelongitude
: Longitude coordinatetimestamp
: UTC timestamp of when location was recordedisInaccurate
: Boolean indicating if location may be imprecise
Get Location History
Retrieve the location history of a trackable device for a specified time range.
Endpoint
GET /trackables/{trackable_id}/locations
Query Parameters
start_time
: UTC timestamp (ISO 8601 formatted timestamp) (optional)end_time
: UTC timestamp (ISO 8601 formatted timestamp) (optional)limit
: Maximum number of results to return (optional, default: 50)skip
: Number of results to skip (optional, default: 0)
Example Request
Example Response
For more details on location tracking, including real-time updates and advanced querying options, please refer to the API Reference.