Developer Documentation
API Documentation & Integration Guide
Fast & Secure RESTful API using GET method.
Easily integrate our account marketplace into your software, automated tools, or private systems using simple HTTP requests.
Your API Token Authentication
Pass this key in your requests as ?api_key=. Do not share this key with anyone as it provides direct access to your balance.
1
Check Account Balance
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your unique API authentication token. |
Example Request
https://accshub.net/api/balance.php?api_key=YOUR_API_KEY
JSON Response
{
"status": "success",
"data": {
"balance": 150.50,
"username": "johndoe"
}
}
2
Get Available Products
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your unique API authentication token. |
Example Request
https://accshub.net/api/products.php?api_key=YOUR_API_KEY
JSON Response
{
"status": "success",
"data": [
{
"product_id": 5,
"category_name": "Facebook",
"product_name": "Facebook Aged Account",
"price": 2.50,
"stock": 150,
"min_buy": 1,
"max_buy": 10000
}
]
}
3
Purchase Accounts (Direct API Buy)
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your unique API authentication token. |
| product_id | integer | Yes | The ID of the product you want to buy (fetched from /api/products.php). |
| quantity | integer | No | Amount of accounts to buy. (Default: 1) |
Example Request
https://accshub.net/api/buy.php?api_key=YOUR_API_KEY&product_id=5&quantity=2
JSON Success Response
{
"status": "success",
"message": "Purchase successful",
"data": {
"order_id": 1024,
"product_name": "Facebook Aged Account",
"quantity": 2,
"total_price": 5.50,
"remaining_balance": 145.00,
"accounts": [
"UID1|PASS1|COOKIE1",
"UID2|PASS2|COOKIE2"
]
}
}
OTP Polling Policy
When waiting for an OTP, please query the check_otp endpoint every 3 - 5 seconds. Do not spam requests faster than 2 seconds to avoid rate limits.
1
Get List of Services & Total Stock
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your API token. |
| server_id | int | No | Server ID (1-4). Default is 1. |
Example Request
https://accshub.net/api/otp_get_services.php?api_key=YOUR_API_KEY&server_id=1
JSON Response
{
"status": "success",
"data": [
{
"service_id": 1,
"service_name": "Facebook",
"total_stock": 1500
},
{
"service_id": 2,
"service_name": "Instagram",
"total_stock": 800
}
]
}
2
Get OTP Domains & Pricing
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your API token. |
| server_id | int | No | Server ID (1-4). Default is 1. |
Example Request
https://accshub.net/api/otp_services.php?api_key=YOUR_API_KEY&server_id=1
JSON Response
{
"status": "success",
"data": [
{
"service_id": 1,
"service_name": "Facebook",
"domain": "hotmail.com",
"price_usd": 0.015,
"stock": 500
}
]
}
3
Rent Email to get OTP
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your API token. |
| server_id | int | Yes | Server ID (1-4). |
| service_id | int | Yes | Service ID from otp_services list. |
| domain | string | Yes | Target email domain (e.g. hotmail.com). |
Example Request
https://accshub.net/api/rent_otp.php?api_key=YOUR_API_KEY&server_id=1&service_id=2&domain=hotmail.com
JSON Response
{
"status": "success",
"data": {
"local_id": 55,
"rental_id": 998822,
"email_address": "[email protected]",
"price_usd": 0.015,
"status": "waiting_otp"
}
}
4
Check OTP Status (Polling)
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your API token. |
| local_id | int | Yes | The `local_id` returned from the rent_otp endpoint. |
Example Request
https://accshub.net/api/check_otp.php?api_key=YOUR_API_KEY&local_id=55
JSON Response
{
"status": "success",
"data": {
"rental_status": "completed",
"otp_code": "849201",
"otp_count": 1
}
}