Skip to main content

Get All Bundles

GET /bundles/all

Retrieves all available bundles for a specific game, including item details and availability status.
GET /bundles/all
Authentication: None Query Parameters
game
integer
required
The game ID to fetch bundles for.

Supported Games

Game IDGame
440Team Fortress 2
730Counter-Strike 2
570Dota 2
252490Rust
Response
{
  "status": "success",
  "data": {
    "bundles": [
      {
        "id": 1,
        "name": "Starter Pack",
        "game": 440,
        "items": [
          {
            "id": 5678,
            "name": "Unusual Hat",
            "image": "https://...",
            "value": 5000
          }
        ],
        "total_value": 15000,
        "bundle_price": 12000,
        "available": true,
        "addtocart": 42
      }
    ]
  }
}
FieldTypeDescription
idintegerBundle unique identifier
namestringBundle display name
gameintegerGame ID
itemsarrayArray of items included in the bundle
total_valueintegerSum of individual item values (cents)
bundle_priceintegerDiscounted bundle price (cents)
availablebooleanWhether all items are currently available
addtocartintegerNumber of times this bundle has been added to cart
Errors
StatusMessage
errorGame is required
errorGame not supported

Track Bundle Add to Cart

GET /bundles/add

Increments the “add to cart” counter for a specific bundle. Used for analytics tracking.
GET /bundles/add
Authentication: None Query Parameters
id
integer
required
The bundle ID to track.
Response
{
  "status": "success",
  "data": {
    "message": "Bundle addtocart incremented",
    "bundleId": 1,
    "rowsAffected": 1
  }
}
Errors
StatusMessage
errorMissing required parameter: id
errorInvalid bundle id
errorBundle not found