whitemarket Documentation For Partners

List of Products

Prerequisites

Before you begin, make sure you have:

  1. A working internet connection
  2. A suitable programming language or API client (such as Postman, CURL, or your preferred language’s HTTP library)

API Endpoint

Replace {APP} with the corresponding value for your desired application:

  • 730 - for CS2

Response Fields

The API response contains the following fields:

  • product_id - UUID of the skin
  • product_category
  • product_type
  • product_subtype
  • product_class_id
  • product_instance_id
  • product_asset_id
  • product_float
  • product_paint_index
  • product_phase
  • name_hash
  • price
  • currency
  • deliveryType

Example Usage of API

Postman

image

image

CURL

To obtain prices of CS2 skins in JSON format, use the following CURL command:

curl -X GET "https://api.white.market/export/v1/products/730.json"

Python

Here’s an example of how to use the API with Python and the requests library:

import requests
    
url = "https://api.white.market/export/v1/products/730.json"

response = requests.get(url)

if response.status_code == 200:
    data = response.json()
    print(data)
else:
    print(f"Error: {response.status_code}")