whitemarket Documentation For Partners

List of Prices

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

JSON

JSONL (separated by newline)

CSV

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

  • 730 - for CS2

auto or manual if file name mean delivery type.

Response Fields

The API response contains the following fields:

  • market_hash_name - namehash of the skin
  • price - price value in USD
  • market_product_link - link to product group of particular skin
  • market_product_count - count of products in skin group

To participate in affiliate program you need a third field - market_product_link. Value in this field is the link which leads to the product on the WhiteMarket with the best price.

Example Usage of API

Postman

image

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/prices/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/prices/730.json"

response = requests.get(url)

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