List of Prices
Prerequisites
Before you begin, make sure you have:
- A working internet connection
- A suitable programming language or API client (such as Postman, CURL, or your preferred language’s HTTP library)
API Endpoint
JSON
- https://api.white.market/export/v1/prices/{APP}.json
- https://api.white.market/export/v1/prices/{APP}.auto.json
- https://api.white.market/export/v1/prices/{APP}.manual.json
JSONL (separated by newline)
- https://api.white.market/export/v1/prices/{APP}.jsonl
- https://api.white.market/export/v1/prices/{APP}.auto.jsonl
- https://api.white.market/export/v1/prices/{APP}.manual.jsonl
CSV
- https://api.white.market/export/v1/prices/{APP}.csv
- https://api.white.market/export/v1/prices/{APP}.auto.csv
- https://api.white.market/export/v1/prices/{APP}.manual.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
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}")