REST API
API Authentication
Get Access
REST data and hosted MCP access are invite-only. Request access from @traded_gg on X. While you wait, you can read the public docs, view the OpenAPI spec, and check API health. You need approval to create a key, fetch protected data, or connect a hosted MCP client.
- Once approved, sign in on traded.gg and go to Settings > API keys.
- Create a personal key. Save it when it appears. The secret is displayed once.
- Store it in your secret manager or set
TRADED_API_KEYin your local environment.
Make Your First Request
For data requests, send Authorization: Bearer $TRADED_API_KEY or X-API-Key to https://api.traded.gg/v1. Keep the key out of query strings, screenshots, and client-side code. The JavaScript example runs in Node.js, and the Python example uses requests.
curl --get 'https://api.traded.gg/v1/prices' \
--data-urlencode 'ids=sv3pt5-199' \
--data-urlencode 'grade=raw:near_mint' \
--data-urlencode 'method=median_3' \
--header "Authorization: Bearer $TRADED_API_KEY"const url = new URL("https://api.traded.gg/v1/prices");
url.searchParams.append("ids", "sv3pt5-199");
url.searchParams.append("grade", "raw:near_mint");
url.searchParams.append("method", "median_3");
const key = process.env.TRADED_API_KEY;
if (!key) throw new Error("Set TRADED_API_KEY");
const response = await fetch(url, {
method: "GET",
headers: {
Authorization: `Bearer ${key}`,
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
if (response.status !== 204) console.log(await response.json());import os
import requests
response = requests.request(
"GET",
"https://api.traded.gg/v1/prices",
params=[
("ids", "sv3pt5-199"),
("grade", "raw:near_mint"),
("method", "median_3"),
],
headers={
"Authorization": f"Bearer {os.environ['TRADED_API_KEY']}",
},
timeout=30,
)
response.raise_for_status()
if response.status_code != 204:
print(response.json())A successful price request returns HTTP 200 with its results in data. Missing or invalid credentials can produce 401. A valid credential without access can produce 403. See Errors & Limits.
Credential Types
- API key. Use a personal or machine key on routes marked API key required.
- Personal API key. A key created in Settings belongs to your account. Use it on routes that require your account identity, such as feedback. Your keys and connected MCP apps share your account quota.
- Traded sign-in session. The
/v1/keysroutes use the short-lived token from your Traded sign-in in the Bearer header. Sign in and use Developer Settings to manage keys interactively.
Rotate and Revoke Keys
Create a replacement in Developer Settings. Update your apps, verify a request with the replacement, then revoke the old key. If a key has been exposed, revoke it immediately.
To revoke all active keys through the API, call DELETE /v1/keys with your Traded sign-in token and the JSON body {"confirm":"revoke-all"}.
MCP OAuth
For supported consumer clients, connect to https://api.traded.gg/mcp and choose Traded OAuth. Clients with a custom header can send a personal API key as a Bearer token. See MCP Setup.
Follow changes to the /v1 API in the API & MCP Changelog.

