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
Built Distribution
File details
Details for the file steammarket-0.2.7.tar.gz
.
File metadata
- Download URL: steammarket-0.2.7.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05d247346aeb3ef562ffe11cf4051d8991b7efa88262ced5801419b414e08ff7 |
|
MD5 | 0af7ae907cfba4555ae8d31c38636ce6 |
|
BLAKE2b-256 | 3f6d9cc6deb7756e6c311ef67b653c8316052b212a78f1222ce752bf895a6143 |
File details
Details for the file steammarket-0.2.7-py3-none-any.whl
.
File metadata
- Download URL: steammarket-0.2.7-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 809ad13470bc509e7084b316d85252a73d120b965756534d5546244bf4017c73 |
|
MD5 | 2d709c0440c6aa7b177c5d14e6ebff28 |
|
BLAKE2b-256 | 7b3123ff1ad8384dece284b726a609af2c625dc7f9af9fbc007bd86ea961de56 |