### GET /market/:ID Source: https://www.torn.com/api/.html Retrieves market information for a specific item ID. Requires an API key and allows for specifying multiple selections. ```APIDOC ## GET /market/:ID ### Description Retrieves market information for a specific item ID. You can request specific data fields using the `selections` parameter. ### Method GET ### Endpoint `https://api.torn.com/market/:ID` ### Parameters #### Path Parameters - **ID** (integer) - Required - The ID of the item to retrieve market data for. #### Query Parameters - **selections** (string) - Required - A comma-separated list of data fields to retrieve. Available fields depend on your API key permissions. Refer to the Torn API documentation for a full list of possible selections. - **key** (string) - Required - Your Torn API key. ### Request Example ``` https://api.torn.com/market/1?selections=basic,price&key=YOUR_API_KEY ``` ### Response #### Success Response (200) - **response** (object) - Contains the requested market data based on the `selections` parameter. - **basic** (object) - Basic item information (if requested). - **price** (object) - Price-related information (if requested). #### Response Example ```json { "last_update": 1678886400, "basic": { "name": "Item Name", " ID": 1, "value": 1000000 }, "price": { "buy_price": 1500000, "sell_price": 1400000, "market_value": 1450000 } } ``` ``` -------------------------------- ### GET /torn/:ID Source: https://www.torn.com/api/.html Retrieves general torn data for a specific ID. This endpoint can be used for various data types within the Torn universe, requiring selections and an API key. ```APIDOC ## GET /torn/:ID ### Description Retrieves general data related to the Torn universe, identified by an ID. Similar to the market endpoint, it utilizes the `selections` parameter to specify the data points of interest. ### Method GET ### Endpoint `https://api.torn.com/torn/:ID` ### Parameters #### Path Parameters - **ID** (integer) - Required - The ID for which to retrieve torn data. #### Query Parameters - **selections** (string) - Required - A comma-separated list of data fields to retrieve. The available fields are dependent on your API key's permissions. Consult the Torn API documentation for a comprehensive list. - **key** (string) - Required - Your Torn API key. ### Request Example ``` https://api.torn.com/torn/123?selections=profile,status&key=YOUR_API_KEY ``` ### Response #### Success Response (200) - **response** (object) - Contains the requested torn data as specified by the `selections` parameter. - **profile** (object) - User profile information (if requested). - **status** (object) - User status information (if requested). #### Response Example ```json { "last_update": 1678886400, "profile": { "name": "Player Name", "ID": 123, "level": 100 }, "status": { "description": "Online", "away": false, "idle": false } } ``` ``` -------------------------------- ### Market API Source: https://www.torn.com/api/.html This endpoint retrieves market data from the Torn API. It requires an API key for authentication. ```APIDOC ## GET /api/torn.com/market/ ### Description Retrieves market data from the Torn API. ### Method GET ### Endpoint /api/torn.com/market/ ### Parameters #### Query Parameters - **key** (string) - Required - The API key. #### Request Body None ### Request Example { "key": "YOUR_API_KEY" } ### Response #### Success Response (200) - **data** (object) - The market data. #### Response Example { "item": "ExampleItem", "price": 10 } ``` -------------------------------- ### User API Source: https://www.torn.com/api/.html This endpoint retrieves user data from the Torn API. It requires a user ID and an API key for authentication. ```APIDOC ## GET /api/torn.com/user/:ID ### Description Retrieves user data from the Torn API. ### Method GET ### Endpoint /api/torn.com/user/:ID?selections=:SELECTIONS&key=:KEY ### Parameters #### Path Parameters - **ID** (integer) - Required - The user ID. #### Query Parameters - **selections** (string) - Optional - Comma separated selections of data to return. - **key** (string) - Required - The API key. #### Request Body None ### Request Example { "ID": 12345, "selections": "name,level", "key": "YOUR_API_KEY" } ### Response #### Success Response (200) - **data** (object) - The user data. #### Response Example { "name": "ExampleUser", "level": 10 } ``` -------------------------------- ### Property API Source: https://www.torn.com/api/.html This endpoint retrieves property data from the Torn API. It requires a property ID and an API key for authentication. ```APIDOC ## GET /api/torn.com/property/:ID ### Description Retrieves property data from the Torn API. ### Method GET ### Endpoint /api/torn.com/property/:ID?selections=:SELECTIONS&key=:KEY ### Parameters #### Path Parameters - **ID** (integer) - Required - The property ID. #### Query Parameters - **selections** (string) - Optional - Comma separated selections of data to return. - **key** (string) - Required - The API key. #### Request Body None ### Request Example { "ID": 67890, "selections": "owner,level", "key": "YOUR_API_KEY" } ### Response #### Success Response (200) - **data** (object) - The property data. #### Response Example { "owner": "ExampleUser", "level": 5 } ``` -------------------------------- ### Faction API Source: https://www.torn.com/api/.html This endpoint retrieves faction data from the Torn API. It requires a faction ID and an API key for authentication. ```APIDOC ## GET /api/torn.com/faction/:ID ### Description Retrieves faction data from the Torn API. ### Method GET ### Endpoint /api/torn.com/faction/:ID?selections=:SELECTIONS&key=:KEY ### Parameters #### Path Parameters - **ID** (integer) - Required - The faction ID. #### Query Parameters - **selections** (string) - Optional - Comma separated selections of data to return. The 'contributors' selection requires the inclusion of the stat name (I.e. &stat=busts). - **key** (string) - Required - The API key. #### Request Body None ### Request Example { "ID": 11223, "selections": "name,level,contributors", "key": "YOUR_API_KEY" } ### Response #### Success Response (200) - **data** (object) - The faction data. #### Response Example { "name": "ExampleFaction", "level": 10, "contributors": { "busts": 500 } } ``` -------------------------------- ### Company API Source: https://www.torn.com/api/.html This endpoint retrieves company data from the Torn API. It requires a company ID and an API key for authentication. ```APIDOC ## GET /api/torn.com/company/:ID ### Description Retrieves company data from the Torn API. ### Method GET ### Endpoint /api/torn.com/company/:ID?selections=:SELECTIONS&key=:KEY ### Parameters #### Path Parameters - **ID** (integer) - Required - The company ID. #### Query Parameters - **selections** (string) - Optional - Comma separated selections of data to return. - **key** (string) - Required - The API key. #### Request Body None ### Request Example { "ID": 44556, "selections": "name,level", "key": "YOUR_API_KEY" } ### Response #### Success Response (200) - **data** (object) - The company data. #### Response Example { "name": "ExampleCompany", "level": 5 } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.