Request the first page
Install requests in your application environment, then call ItemData from server-side code. Keep the API key out of browser bundles and source control.
Python
import os
import requests
response = requests.get(
"https://itemdata.net/v1/inventory",
params={
"steam_id": "76561198000000000",
"game": "cs2",
},
headers={
"Authorization": f"Bearer {os.environ['ITEMDATA_API_KEY']}",
},
timeout=30,
)
response.raise_for_status()
inventory = response.json()
print(inventory["items"])Follow the Steam cursor
If more_items is true, pass last_assetid back as start_assetid. Stop at the terminal page and apply global filtering or sorting only after collecting the pages your product actually needs.
Production safeguards
Use bounded retries only for transient responses, honor Retry-After, cap the number of pages per job, and record the ItemData request ID for support without logging credentials.