Skip to main content

A Python API for getting prices from the Steam market.

Project description

steammarket

Python module to quickly get item prices from Steam Marketplace.

Installation

pip install steammarket

OR

Development

git clone https://github.com/MatyiFKBT/pysteammarket
cd pysteammarket
uv sync
uv run pytest

Usage

Example in TF2

import steammarket as sm

item = sm.get_tf2_item('Strange Professional Killstreak Scattergun')
for listing in item.listings:
    print(listing.price)

get_item

get_item(appid, name, currency='EUR')

Gets item listings from the Steam Marketplace.

@appid ID of game item belongs to.

@name: Name of item to lookup. Use the exact name from the community market.

@currency: Abbreviation of currency to return listing prices in. Accepted currencies:USD,GBP,EUR,CHF,RUB,KRW,CAD

Defaults to EUR. Please lookup the proper abbreviation for your currency of choice.

Returns a json object Example:

{
    "success": true,
    "lowest_price": "0,92Ç",
    "volume": "15",
    "median_price": "0,80Ç"
}

get_multiple

get_multiple(items, appid=440, currency='EUR')

Fetch multiple items using get_item().

get_tf2_item

get_tf2_item(item, currency='EUR')

Fetches an item from TF2. (Defaults the appid to 440)

get_csgo_item

get_csgo_item(item, currency='EUR')

Fetches an item from CSGO. (Defaults the appid to 730)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

steammarket-2.0.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

steammarket-2.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file steammarket-2.0.0.tar.gz.

File metadata

  • Download URL: steammarket-2.0.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.6

File hashes

Hashes for steammarket-2.0.0.tar.gz
Algorithm Hash digest
SHA256 46fa55637156e005813ca661750aa210dfd7ba31cb4a4770ba0c5bd4d4d1fe37
MD5 d0784b801926dbe61273073510d45d50
BLAKE2b-256 cd8219765249d9724e403f55c7854bbbbce4b392768e873e9b3035dbbcf77b23

See more details on using hashes here.

File details

Details for the file steammarket-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for steammarket-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19bb1fd8551978434950c1d205abe2bd7110b6dc30060faef38e06417f7721dc
MD5 df64228795ec75caae26da55aa779d2d
BLAKE2b-256 285ae8fb20b602dc932ad78fd93f6df7698e7659f3cc52e354c1550b078ad124

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page