Get Bazaar Commodities
curl --request GET \
--url https://api.example.com/api/bazaar/commoditiesimport requests
url = "https://api.example.com/api/bazaar/commodities"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/bazaar/commodities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/bazaar/commodities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/bazaar/commodities"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/bazaar/commodities")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/bazaar/commodities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyBazaar (Authenticated)
Get Bazaar Commodities
Browse the commodity catalog (items, tools, skins)
GET
/
api
/
bazaar
/
commodities
Get Bazaar Commodities
curl --request GET \
--url https://api.example.com/api/bazaar/commoditiesimport requests
url = "https://api.example.com/api/bazaar/commodities"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/bazaar/commodities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/bazaar/commodities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/bazaar/commodities"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/bazaar/commodities")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/bazaar/commodities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodystring
Filter:
ITEM, TOOL, or SKINstring
Filter by exact item code
string
Filter by category (e.g.
Health, Battle, Farming)string
Filter by rarity (e.g.
Common, Rare, Epic)string
default:"true"
true, false, or allstring
Text search on name or code
number
default:"1"
Page number
number
default:"50"
Results per page (max 200)
string
default:"name_asc"
name_asc, name_desc, code_asc, or code_descRequires
x-api-token header.Response Fields
| Field | Description |
|---|---|
| commodities[].code | Item code |
| commodities[].name | Display name |
| commodities[].type | ITEM, TOOL, or SKIN |
| commodities[].category | Item category (if applicable) |
| commodities[].rarity | Item rarity (if applicable) |
| commodities[].iconUrl | URL to item icon image |
| commodities[].description | Item description |
| commodities[].tradable | Whether the item is tradable |
| pagination | Page info (page, limit, total, totalPages, hasNext, hasPrev) |
Was this page helpful?
