Retrieve User Data
End/Modify user data and sessions directly securely.
Retrieve full information of a specific user.
ℹ️ Returns only real database columns (safe for public Seller API).
Endpoint Details
GET
/api/retrieve_user_data.php
Query Parameters
| Parameter | Required | Description |
|---|---|---|
| sellerkey | Yes | Seller API Key |
| username | Yes | Username |
Success Response
{
"success": true,
"user": {
"id": 12,
"username": "testuser",
"email": "test@mail.com",
"subscription": "PRO",
"subscription_id": 2,
"expiry": 1735689600,
"hwid": null,
"ownerid": "123",
"created_by": "seller",
"is_banned": 0,
"is_paused": 0,
"ip_address": "127.0.0.1",
"created_at": "2025-01-01 10:00:00",
"last_login": "2025-01-10 18:20:00"
}
}
Failure Responses
{
"success": false,
"msg": "User not found"
}
Code Examples
fetch("http://localhost/commen/api/retrieve_user_data.php?sellerkey=KEY&username=USER")
.then(r => r.json())
.then(console.log);
<?php echo file_get_contents( "http://localhost/commen/api/retrieve_user_data.php?sellerkey=KEY&username=USER" ); ?>
import requests
r = requests.get(
"http://localhost/commen/api/retrieve_user_data.php",
params={"sellerkey":"KEY","username":"USER"}
)
print(r.text)
var client = new RestClient( "http://localhost/commen/api/retrieve_user_data.php?sellerkey=KEY&username=USER" ); var res = client.Execute(new RestRequest(Method.GET)); Console.WriteLine(res.Content);