Steam Market API?

后端 未结 6 2045
长情又很酷
长情又很酷 2021-01-30 05:57

I know that there\'s a Steam API allowing me to use data from Steam Community.
My question is, does anyone know if there\'s a Steam Market API?
For example, I want to ge

相关标签:
6条回答
  • 2021-01-30 06:13

    You can use SteamApis.com to acquire Steam market prices and item information. The data is returned in JSON. The service is not free but also not that expensive.

    The documentation is available to view here. It has detailed information on what endpoints are available and what data is returned.

    0 讨论(0)
  • 2021-01-30 06:14

    To add to what the other people have said, the temporary ban on the JSON site happens if you try and request 20 items within a minute's time from the server. If you're creating a script to request those links, add a three second delay between each script. Also, the ban only lasts for the remaining server-side minute (which may not be 60 seconds).

    0 讨论(0)
  • 2021-01-30 06:16

    There is not such API for now. But this link may help you: Get the price of an item on Steam Community Market with PHP and Regex It's basically what you want with pure php DOM parsing instead of an API. The main drawback is that you may have to change your code if Steam update their html markup.

    0 讨论(0)
  • 2021-01-30 06:22

    I could not find any documentation, but I use:

    http://steamcommunity.com/market/priceoverview/?appid=730&currency=3&market_hash_name=StatTrak%E2%84%A2 M4A1-S | Hyper Beast (Minimal Wear)
    

    to return a JSON. At time of writing, it returns:

    {"success":true,"lowest_price":"261,35€ ","volume":"11","median_price":"269,52€ "}
    

    You can change the currency. 1 is USD, 3 is euro but there are probably others.

    0 讨论(0)
  • 2021-01-30 06:24

    I indexed the available currencies steam uses for argument

    &currency=3
    

    as:

    1 : $63.83

    2 : £46.85

    3 : 52,--€

    4 : CHF 56.41

    5 : 4721,76 pуб.

    6 : 235,09zł

    7 : R$ 340,80

    8 : ¥ 6,627.08

    9 : 534,70 kr

    10 : Rp 898 383.24

    11 : RM257.74

    12 : P3,072.66

    13 : S$84.47

    14 : ฿1,921.93

    15 : 1.474.136,93₫

    16 : ₩ 69,717.79

    17 : 468,47 TL

    18 : 2 214,94₴

    19 : Mex$ 1,557.75

    20 : CDN$ 99.09

    21 : A$ 100.40

    22 : NZ$ 107.55

    23 : ¥ 505.96

    24 : ₹ 5,733.04

    25 : CLP$ 55.695,47

    26 : S/.283.03

    27 : COL$ 271.637,06

    28 : R 1 193.49

    29 : HK$ 606.83

    30 : NT$ 2,189.42

    31 : 293.64 SR

    32 : 287.51 AED

    0 讨论(0)
  • 2021-01-30 06:27

    A better search api that can give you all the results for a game, example using pubg which only has 272 items, if your game has more try changing the count parameter at the end

    https://steamcommunity.com/market/search/render/?search_descriptions=0&sort_column=default&sort_dir=desc&appid=578080&norender=1&count=500
    
    0 讨论(0)
提交回复
热议问题