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

git clone https://github.com/MatyiFKBT/pysteammarket
cd pysteammarket
python setup.py install

Usage

Example

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.

@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.

Files for steammarket, version 0.2.6
Filename, size File type Python version Upload date Hashes
Filename, size steammarket-0.2.6.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page