All API requests must be authenticated via https using a bearer token.
https://www.chastitytracker.org
GET /api/userstats.php HTTP/2
Host: www.chastitytracker.org
Authorization: Bearer {YOUR_API_TOKEN}
GET /api/userstats.phpReturns json formatted public profile data for the user associated with the token.
{
"nick":"alescan",
"profile_url":"localhost\/pprofile.php?user=alescan",
"locked":true,
"current_lock_start":"2025-03-23 09:00:00 UTC",
"scheduled_end":null,
"current_lock_time":"1 months 18 days 10 hours",
"total_locked_since":"4 months 10 days 9 hours",
"since_date":"2025-01-01 00:00:00",
"link_game":null,
"last_full":"2025-03-23",
"last_ruined":"2025-02-09",
"last_ted":"2025-04-06",
"last_milking":null
}
username: Public-facing usernameprofile_url: url of public profile (if available)locked: true or falsecurrent_lock_start: UTC start date of current lock period (if available)scheduled_end: UTC date of current unlock schedule (if available)current_lock_time: Human-readable duration of current locked timetotal_locked_since: Human-readable duration of locked time since (see next row)since_date: Date since the total_locked_since is calculated (if available)link_game: link to (if available)last_full: Date of last full orgasm (if available)last_ruined: Date of last ruined orgasm (if available)last_ted: Date of last t&d (if available)last_milking: Date of last milking (if available)
{
"error": {One of the following}
}
200 OK β Data returned successfully301 Moved Permanently β Not using https401 Unauthorized β Invalid authorization403 Forbidden β Missing authorization400 Bad Request β Missing required parameters