All API requests must be authenticated via https using a bearer token.
https://www.chastitytracker.org
GET /api/v2/stats.php HTTP/2
Host: www.chastitytracker.org
Authorization: Bearer {YOUR_API_TOKEN}
GET /api/v2/stats.phpReturns public stats data for the user associated with the token.
{
"ok": true,
"data": {
"nick":"example",
"profile_url":null,
"locked":true,
"current_lock_start":"2026-01-15 09:00:00 UTC",
"scheduled_end":null,
"current_lock_time":"17 days 3 hours 12 minutes",
"total_locked_since":"1 months 2 days 4 hours",
"since_date":"2026-01-01 00:00:00",
"link_game":null,
"last_full":"2026-01-15",
"last_ruined":null,
"last_ted":"2026-01-20",
"last_milking":null
},
"meta":{"version":2}
}
nick: Public-facing usernameprofile_url: Public profile URL (only if user visibility allows it)locked: true/falsecurrent_lock_start: UTC start date of current lock (if public and active)scheduled_end: UTC scheduled end date (if available)current_lock_time: Human-readable durationtotal_locked_since: Human-readable durationsince_date: Date since total is calculatedlink_game: Link game URL (if available)last_full, last_ruined, last_ted, last_milking: Last orgasm dates (public only)200 OK β Data returned successfully401 Unauthorized β Invalid or missing token405 Method Not Allowed β Wrong method500 Internal Server Error β Server error