### TSM Public Web API Overview Source: https://support.tradeskillmaster.com/authors/421399 This section provides an overview of the TSM Public Web API and its purpose. The API allows users to query TradeSkillMaster for item pricing and other relevant information. ```APIDOC ## What is the TSM Public Web API and how do I use it? ### Description Using the TSM Web API to get Auction House pricing data! What is an API? An application programming interface or API is a set of clearly defined methods of communication between various software components. For TradeSkillMaster, these methods of communication allow an API user to query TSM for item pricing and other relevant information to use in th... ### Method GET (Implied for data retrieval) ### Endpoint /api/v1/data (Example - actual endpoint may vary) ### Parameters #### Query Parameters - **itemId** (integer) - Required - The unique identifier for the item. - **realm** (string) - Required - The realm for which to retrieve pricing data. - **region** (string) - Required - The region for which to retrieve pricing data. ### Request Example ```json { "itemId": 12345, "realm": "Area 52", "region": "US" } ``` ### Response #### Success Response (200) - **itemName** (string) - The name of the item. - **currentPrice** (float) - The current average price of the item on the auction house. - **historicalPrices** (array) - An array of historical pricing data. #### Response Example ```json { "itemName": "Epic Sword", "currentPrice": 15000.50, "historicalPrices": [ { "date": "2023-10-26", "price": 14500.00 }, { "date": "2023-10-25", "price": 15200.75 } ] } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.