Welcome to our new docs! Please keep in mind we are still working on making everything is as accurate as possible. Join us on discord and ask us questions if you are unsure.
DezerX Spartan Logo
Market

Get Products List

Retrieve a paginated list of products with optional filtering by search term, category, and status

GET
/api/application/products
AuthorizationBearer <token>

Bearer token authentication

In: header

Query Parameters

per_page?integer

Number of products per page

Default15
Range1 <= value <= 100
search?string

Search term for product name or description

category_id?integer

Filter by category ID

status?string

Filter by product status

Value in"active" | "inactive" | "draft"
stock?integer

Filter by stock availability (0 for out of stock, >0 for in stock)

Range0 <= value
module?string

Filter by module type

Value in"LicenseService" | "PterodactylService" | "HostingModule"

Response Body

curl -X GET "https://api.example.com/api/application/products?per_page=15&search=string&category_id=0&status=active&stock=0&module=LicenseService"
{
  "success": true,
  "data": {
    "current_page": 1,
    "first_page_url": "https://api.example.com/api/application/products?page=1",
    "from": 1,
    "last_page": 10,
    "last_page_url": "https://api.example.com/api/application/products?page=10",
    "links": [
      {
        "url": "string",
        "label": "string",
        "active": true
      }
    ],
    "next_page_url": "https://api.example.com/api/application/products?page=2",
    "path": "https://api.example.com/api/application/products",
    "per_page": 15,
    "prev_page_url": null,
    "to": 15,
    "total": 150,
    "data": [
      {
        "id": 1,
        "name": "Premium Web Hosting",
        "description": "High-performance web hosting with 99.9% uptime guarantee",
        "stock": 10,
        "image": "/images/products/hosting.jpg",
        "category_id": 1,
        "module": "LicenseService",
        "module_config": {
          "product_file": "products/1_1754152748_5_1753695926_Module.zip",
          "is_downloadable_via_api": "1",
          "is_downloadable_via_web": "1"
        },
        "duration_config": {
          "weekly": {
            "price": 0,
            "enabled": false
          },
          "monthly": {
            "price": 29.99,
            "enabled": true
          },
          "quarterly": {
            "price": 0,
            "enabled": false
          },
          "yearly": {
            "price": 299.99,
            "enabled": true
          },
          "lifetime": {
            "price": 0,
            "enabled": false
          }
        },
        "status": "active",
        "position": 1,
        "create_service_before_payment": true,
        "created_at": "2025-08-02T16:39:06.000000Z",
        "updated_at": "2025-08-02T16:40:13.000000Z",
        "category": {
          "id": 1,
          "name": "Web Hosting"
        }
      }
    ]
  }
}
{
  "success": false,
  "message": "Unauthenticated"
}
{
  "success": false,
  "message": "This action is unauthorized"
}
{
  "success": false,
  "message": "Validation failed",
  "errors": {
    "field_name": [
      "This field is required"
    ]
  }
}