Loot Paglu API

Developers

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.

X-API-Key: LootPaglu_YOUR_SECRET_KEY

Global Rate Limits & Common Errors

All API endpoints are rate-limited to 3 requests per second per IP.

401 Unauthorized

Returned if X-API-Key header is missing or invalid.

429 Too Many Requests

Returned when rate limit is exceeded.

503 Service Unavailable

Returned if the API is paused by the admin.

GET

/api/v1/me

Fetch your profile information and real-time wallet balance.

Sample Request

cURL
curl -X GET https://lootpaglu.in/api/v1/me \
  -H "X-API-Key: LootPaglu_YOUR_SECRET_KEY"

Success Response

200 OK
{
  "userId": 123456789,
  "wallet_inr": 1500.50,
  "wallet_crypto": 5.5,
  "total_spent": 100.0
}
GET

/api/v1/products

List all available products on the platform, along with their pricing and exact stock amounts.

Sample Request

cURL
curl -X GET https://lootpaglu.in/api/v1/products \
  -H "X-API-Key: LootPaglu_YOUR_SECRET_KEY"

Success Response

200 OK
{
  "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
      }
    }
  ]
}
POST

/api/v1/order

Place an automated order. Costs are deducted from your balance and product codes are returned instantly.

Sample Request

cURL
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

200 OK
{
  "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

400 Bad Request (Insufficient Balance)
{ "error": "Insufficient INR wallet balance" }
400 Bad Request (Out of Stock)
{ "error": "Out of stock! Only 0 available" }
404 Not Found (Invalid Service ID)
{ "error": "Service ID not found or disabled for API." }
GET

/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
curl -X GET "https://lootpaglu.in/api/v1/orders?page=1&limit=50" \
  -H "X-API-Key: LootPaglu_YOUR_SECRET_KEY"

Success Response

200 OK
{
  "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

400 Bad Request (Limit Exceeded)
{ "error": "Limit cannot exceed 200" }
GET

/api/v1/order/{id}

Fetch details of a specific order using its order_id.

Sample Request

cURL
curl -X GET "https://lootpaglu.in/api/v1/order/api_1784457294493_e9fhz" \
  -H "X-API-Key: LootPaglu_YOUR_SECRET_KEY"

Success Response

200 OK
{
  "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

404 Not Found
{ "error": "Order not found" }
GET

/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
curl -X GET "https://lootpaglu.in/api/v1/stats" \
  -H "X-API-Key: LootPaglu_YOUR_SECRET_KEY"

Success Response

200 OK
{
  "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

Live Execution

Enter your API key to test the endpoints.

Waiting...
Click "Send Request" to see the output here.