API Reference
Integrate seamlessly with the Loot Paglu platform. Use our RESTful endpoints to check your balance, monitor live product stock, and automate your purchases in real-time.
Authentication
Every API request requires your unique API Key to be passed via the X-API-Key HTTP header.
Global Rate Limits & Common Errors
All API endpoints are rate-limited to 3 requests per second per IP.
Returned if X-API-Key header is missing or invalid.
Returned when rate limit is exceeded.
Returned if the API is paused by the admin.
/api/v1/me
Fetch your profile information and real-time wallet balance.
Sample Request
curl -X GET https://lootpaglu.in/api/v1/me \
-H "X-API-Key: LootPaglu_YOUR_SECRET_KEY"
Success Response
{
"userId": 123456789,
"wallet_inr": 1500.50,
"wallet_crypto": 5.5,
"total_spent": 100.0
}
/api/v1/products
List all available products on the platform, along with their pricing and exact stock amounts.
Sample Request
curl -X GET https://lootpaglu.in/api/v1/products \
-H "X-API-Key: LootPaglu_YOUR_SECRET_KEY"
Success Response
{
"status": "success",
"services": [
{
"service_id": "Paglu_1",
"name": "Gemini 18 Months Pro 💎",
"available_stock": 39,
"requires_shein_verification": false,
"prices": {
"upiPrice": 50.0,
"cryptoPrice": 0.5
}
}
]
}
/api/v1/order
Place an automated order. Costs are deducted from your balance and product codes are returned instantly.
Sample Request
curl -X POST https://lootpaglu.in/api/v1/order \
-H "X-API-Key: LootPaglu_YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d "{\"service_id\": \"Paglu_1\", \"quantity\": 1, \"currency\": \"inr\"}"
Success Response
{
"status": "success",
"message": "Purchase successful",
"success": true,
"order_id": "api_1784457294493_e9fhz",
"service_id": "Paglu_1",
"quantity": 1,
"currency": "inr",
"total_cost": 50.0,
"amountDeducted": 50.0,
"new_balance": 1450.50,
"products": [
"LINK_OR_CODE_1"
]
}
Possible Error Responses
{ "error": "Insufficient INR wallet balance" }
{ "error": "Out of stock! Only 0 available" }
{ "error": "Service ID not found or disabled for API." }
/api/v1/orders
Fetch your complete order history. Supports optional page and limit parameters (default is 50).
Note: The maximum limit allowed is 200.
Sample Request
curl -X GET "https://lootpaglu.in/api/v1/orders?page=1&limit=50" \
-H "X-API-Key: LootPaglu_YOUR_SECRET_KEY"
Success Response
{
"success": true,
"page": 1,
"limit": 50,
"total_orders": 120,
"total_pages": 3,
"orders": [
{
"order_id": "api_1784457294493_e9fhz",
"service": "Gemini 18 Months Pro 💎",
"quantity": 1,
"amount": 50.0,
"status": "success",
"delivered_products": ["LINK_OR_CODE_1"]
}
]
}
Error Responses
{ "error": "Limit cannot exceed 200" }
/api/v1/order/{id}
Fetch details of a specific order using its order_id.
Sample Request
curl -X GET "https://lootpaglu.in/api/v1/order/api_1784457294493_e9fhz" \
-H "X-API-Key: LootPaglu_YOUR_SECRET_KEY"
Success Response
{
"success": true,
"order": {
"order_id": "api_1784457294493_e9fhz",
"service": "Gemini 18 Months Pro 💎",
"quantity": 1,
"amount": 50.0,
"status": "success",
"delivered_products": ["LINK_OR_CODE_1"]
}
}
Error Responses
{ "error": "Order not found" }
/api/v1/stats
Fetch comprehensive statistics for your account, including total deposits, total spends, and a per-product breakdown of your purchases.
Sample Request
curl -X GET "https://lootpaglu.in/api/v1/stats" \
-H "X-API-Key: LootPaglu_YOUR_SECRET_KEY"
Success Response
{
"success": true,
"deposits": {
"today": 1000,
"7d": 5000,
"30d": 15000,
"365d": 50000,
"all_time": 100000
},
"sales": {
"today": 500,
"7d": 2500,
"30d": 10000,
"365d": 45000,
"all_time": 90000
},
"products_breakdown": [
{
"service_id": "Paglu_1",
"name": "Gemini 18 Months Pro 💎",
"quantity_sold": 10,
"revenue": 500
}
]
}
Interactive Playground
Enter your API key to test the endpoints.
Click "Send Request" to see the output here.