Get historical GPS tracking data for a device within a specified time period. Returns playback data in semicolon-separated format matching Chinese API.
Request
API access token from authorization endpoint
Single IMEI to get playback data for
Begin time (Unix timestamp in seconds)
End time (Unix timestamp in seconds)
Request Example
curl "https://bounpkufhwhptqbktpfl.supabase.co/functions/v1/open-api-playback?access_token=example_access_token_12345&imei=123456789012345&begintime=1609459200&endtime=1612051200"
Response
Response code (0 = success)
Semicolon-separated playback data. Each point format: “longitude,latitude,gpstime,speed,course”
Indicates if response was from cache
Success Response
{
"code": 0,
"record": "0.0,0.0,1609459200,0,0;0.0,0.0,1609459260,0,0;0.0,0.0,1609459320,0,0",
"cached": false,
"timestamp": 1609459200
}
Each point: "longitude,latitude,gpstime,speed,course"
Multiple points: separated by semicolon ";"
Example Record Breakdown
Point 1: longitude=0.0, latitude=0.0, gpstime=1609459200, speed=0, course=0
Point 2: longitude=0.0, latitude=0.0, gpstime=1609459260, speed=0, course=0
Point 3: longitude=0.0, latitude=0.0, gpstime=1609459320, speed=0, course=0
Rate Limits
5 requests per minute per user. Minimum interval: 12 seconds between requests. Cache TTL: 5 minutes (historical data, rarely changes).
Error Codes
API access token from authorization endpoint
Single IMEI to get playback data for
Begin time (Unix timestamp in seconds)
End time (Unix timestamp in seconds)
Response code (0 = success)
Semicolon-separated playback data
Indicates if response was from cache