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.

Source Distribution

steammarket-0.2.6.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

steammarket-0.2.6-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: steammarket-0.2.6.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for steammarket-0.2.6.tar.gz
Algorithm Hash digest
SHA256 21655d836a4986a1631a43540d8ab9fb5e2c4ba3d1dd6666e2a6b92e90cf64be
MD5 cfd6f20789e492cdbd3071e58e2345be
BLAKE2b-256 b3cb19cc5c72fa70af95cbd4fff00b61d8f9b0155ace221f3ad390250f22bf05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: steammarket-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for steammarket-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f7aac525966a76d15db97d2c47bc1c8cfec031daede1ff5832176a4717c6b1f2
MD5 b802738369efb89a28b4ae7403eb432b
BLAKE2b-256 8ba69ea34a221c359d8721346c57e38769f9a0101dffc060bba581f04b61a7ca

See more details on using hashes here.

Supported by

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