Register
Page 1 of 9 123 ... Last
Results 1 to 10 of 88
  1. #1
    Sapu94's Avatar
    Posts
    7,110
    Reputation
    344
    Blog Entries
    25
    Tagged in
    1928 Posts
    Add to this user's reputation

    Public TradeSkillMaster APIs

    We're thrilled to announce that we've migrated our public APIs over to our new server and are officially releasing them (i.e. no longer beta)!

    You can find some super fancy documentation here: http://api.tradeskillmaster.com/docs. The documentation even allows you to enter your API key in the box at the top and then try the APIs interactively within the page.

    As always, let us know what you think, and if you run into any issues.


    Follow me and TSM on Twitter for important updates, news, and giveaways!
    TSM Website | /r/woweconomy & TSM Discord | Go Premium | TSM FAQ

    "A good programmer is someone who always looks both ways before crossing a one-way street."

  2. #2
    Great upgrade! However, the link I previously used to download AH csv data no longer works. Is the below no longer availalble?

    "Currently, there is only one API endpoint which is the auction data API:
    http://api.tradeskillmaster.com/auction_data.php?apikey=<apiKey>&region=<region>&r ealm=<realm>&format=<format>
    Auction Data API Parameters
    <region> - This is either "us" or "eu" (minus the quotes).
    <realm> - This is your realm slug, which is your realm name without any apostrophes, in lower case, and with spaces replaced by dashes. For example, "Blade's Edge" should be entered as "blades-edge" (minus the quotes).
    <apikey> - This is your personal API key and should be kept private. You can get this from your My Account page on the TSM website once you've logged in.
    <format> - There are a variety of output formats which are currently supported:
    json - Will provide the output in JSON form. This is useful if you plan on writing your own application which will make use of the data.
    csv - Will provide the output in CSV form. This is useful when importing into a spreadsheet.
    csv_d - Will provide the output in CSV form and will request your browser to download the output as a .csv file. If you want to get a .csv file containing the data, then this is the format you'd want to use.
    tsv - Will provide the output in TSV (tab-separated values) form, which is used by Microsoft Excel in some cases.
    iqy_d - Will request your browser to download a .iqy file which is commonly used by Microsoft Excel. Internally, this will request the tsv format, since that seemed to work best when I tested it."

  3. #3
    Sapu94's Avatar
    Posts
    7,110
    Reputation
    344
    Blog Entries
    25
    Tagged in
    1928 Posts
    Add to this user's reputation
    The old APIs will no longer work. You need to migrate to the new ones. All functionality that existed before is still there.


    Follow me and TSM on Twitter for important updates, news, and giveaways!
    TSM Website | /r/woweconomy & TSM Discord | Go Premium | TSM FAQ

    "A good programmer is someone who always looks both ways before crossing a one-way street."

  4. #4
    Sorry to be a complete noob, but could you please list what steps I should follow to download AH data in csv.format using the new APIs? I've tried figuring it out, but wasn't able to. Thanks very much!

  5. #5
    DigiMizu's Avatar
    Posts
    1
    Reputation
    0
    Tagged in
    0 Posts
    Add to this user's reputation
    This is awesome, thank you!

    @Farout21, if you use the documentation samples (don't forget your API key) it should give you a URL that produces the CSV.
    http://api.tradeskillmaster.com/v1/item/US/fenris?format=csv&apiKey=<key>

  6. #6
    Doh! I see now; thanks again.

  7. #7
    Sapu94's Avatar
    Posts
    7,110
    Reputation
    344
    Blog Entries
    25
    Tagged in
    1928 Posts
    Add to this user's reputation
    FYI: Just fixed a few bugs. People were getting errors that they'd exceeded their requests-per-day when they really hadn't, and the /item/{region}/{realm} endpoint wasn't working for connected realms. Both fixed.


    Follow me and TSM on Twitter for important updates, news, and giveaways!
    TSM Website | /r/woweconomy & TSM Discord | Go Premium | TSM FAQ

    "A good programmer is someone who always looks both ways before crossing a one-way street."

  8. #8
    Hey guys,

    Sorry if I am being a noob, but I don't think i'm the only only one who couldn't find out what every term means, for example, what "MarketValue" (Is it measured on the minimum global buyout?) or "RegionSaleRate" actually represents. Is there some kind of dictionary for those? I just feel the need to clarify that.
    Other than that, you did an amazing job and I can't even begin to think the work that took. Thank you very much.

  9. #9
    Ord's Avatar
    Posts
    623
    Reputation
    91
    Tagged in
    269 Posts
    Add to this user's reputation
    In-Depth definition of how TSM calculates "Market Value"

    Information about most TSM price sources and some custom functions

    Details about "historical" price sources

    Many of the sources have versions for each Realm, Region (i.e. US vs. EU) and Global (everything/everywhere)

  10. #10
    omgbbq's Avatar
    Posts
    24
    Reputation
    0
    Tagged in
    8 Posts
    Add to this user's reputation
    Thanks for the awesome work guys and keep it up. However I think i've found a bug.

    when fetching data for your realm the returned json is

    Code:
    {"Id":110649,"Name":"Enchant Neck - Gift of Versatility","Level":100,"Class":"Consumable","SubClass":"Item Enhancement","VendorBuy":0,"VendorSell":625,"MarketValue":3796031,"MinBuyout":3229998,"Quantity":16,"NumAuctions":16,"HistoricalPrice":4155948,"RegionMarketAvg":3415955,"RegionMinBuyoutAvg":3136462,"RegionHistoricalPrice":21,"RegionQuantity":4821331,"RegionSaleAvg":3976377,"RegionAvgDailySold":4.9,"RegionSaleRate":0.35}
    And when fetching everything with the same itemID it returns

    Code:
    {"Id": 110649,"Name": "Enchant Neck - Gift of Versatility","Level": 100,"Class": "Consumable","SubClass": "Item Enhancement","VendorBuy": 0,"VendorSell": 625,"MarketValue": 3796031,"MinBuyout": 3229998,"Quantity": 16,"NumAuctions": 16,"HistoricalPrice": 4155948,"RegionMarketAvg": 3415955,"RegionMinBuyoutAvg": 3136462,"RegionQuantity": 21,"RegionHistoricalPrice": 4821331,"RegionSaleAvg": 3732378,"RegionAvgDailySold": 5.89,"RegionSaleRate": 0.31},
    The highlighted items seem to be back to front.

    Also these were only called minutes apart and the last 3 fields after the highlighted text also differ. Is this correct?
    Last edited by Sapu94; March 7th, 2016 at 05:00 PM. Reason: fixed formatting

 

 

Similar Threads

  1. [BETA] TSM Web APIs
    By Sapu94 in forum TradeSkillMaster Website & Desktop Application
    Replies: 63
    Last Post: February 28th, 2016, 12:31 PM
  2. [RFC] Public TSM APIs
    By Sapu94 in forum TradeSkillMaster Website & Desktop Application
    Replies: 12
    Last Post: August 28th, 2014, 08:55 PM
  3. TradeSkillMaster 2.0 Public Beta
    By Sapu94 in forum General TradeSkillMaster Discussion
    Replies: 261
    Last Post: August 8th, 2013, 09:09 PM
  4. KR, TW, CN auction house APIs now open apparently
    By ihsw in forum Archive (General)
    Replies: 0
    Last Post: December 18th, 2012, 10:12 AM