Company Types and their IDs | API Development | TORN

Company Types and their IDs

    • Metallose [2137204]
    • Role: Civilian
    • Level: 35
    • Posts: 7
    • Karma: 4
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 08:43:04 - 24/03/24 (5 months ago)
    |
    Last replied 18:28:39 - 25/03/24 (5 months ago)
    Apologies if this exists already somewhere

    Was looking for a table of company types and their IDs for a website im working on, but couldn't find it anywhere. So i've listed them below in both a table and as a JS dictionary for convenience. Data comes from the query string of the jobslist page URL


    Company Type IDs and respective Company Type

    ID Company Type
    1 Hair Salon
    2 Law Firm
    3 Flower Shop
    4 Car Dealership
    5 Clothing Store
    6 Gun Shop
    7 Game Shop
    8 Candle Shop
    9 Toy Shop
    10 Adult Novelties
    11 Cyber Cafe
    12 Grocery Store
    13 Theater
    14 Sweet Shop
    15 Cruise Line
    16 Television Network
    17*
    18 Zoo
    19 Firework Stand
    20 Property Broker
    21 Furniture Store
    22 Gas Station
    23 Music Store
    24 Nightclub
    25 Pub
    26 Gents Strip Club
    27 Restaurant
    28 Oil Rig
    29 Fitness Center
    30 Mechanic Shop
    31 Amusement Park
    32 Lingerie Store
    33 Meat Warehouse
    34 Farm
    35 Software Corp
    36 Ladies Strip Club
    37 Private Security Firm
    38 Mining Corporation
    39 Detective Agency
    40 Logistics Management



    In a JS dictionary:

    const companyTypes = {
    1 : "Hair Salon",
    2 : "Law Firm",
    3 : "Flower Shop",
    4 : "Car Dealership",
    5 : "Clothing Store",
    6 : "Gun Shop",
    7 : "Game Shop",
    8 : "Candle Shop",
    9 : "Toy Shop",
    10 : "Adult Novelties",
    11 : "Cyber Cafe",
    12 : "Grocery Store",
    13 : "Theater",
    14 : "Sweet Shop",
    15 : "Cruise Line",
    16 : "Television Network",
    17 : null, //???
    18 : "Zoo",
    19 : "Firework Stand",
    20 : "Property Broker",
    21 : "Furniture Store",
    22 : "Gas Station",
    23 : "Music Store",
    24 : "Nightclub",
    25 : "Pub",
    26 : "Gents Strip Club",
    27 : "Restaurant",
    28 : "Oil Rig",
    29 : "Fitness Center",
    30 : "Mechanic Shop",
    31 : "Amusement Park",
    32 : "Lingerie Store",
    33 : "Meat Warehouse",
    34 : "Farm",
    35 : "Software Corp",
    36 : "Ladies Strip Club",
    37 : "Private Security Firm",
    38 : "Mining Corporation",
    39 : "Detective Agency",
    40 : "Logistics Management"
    }

    *unsure why 17 is not used, probably a company type that was removed, but I included it in the table and JS for completeness, and so it doesn't look omitted by accident.

    EDIT:

    Interestingly, the Torn Wiki Company List page does not display them in ID order
    Last edited by Metallose on 08:48:18 - 24/03/24

    (This page intentionally left blank)

    • Omanpx [1906686]
    • Role: Civilian
    • Level: 100
    • Posts: 1,934
    • Karma: 11,354
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:49:58 - 24/03/24 (5 months ago)
    Post link copied to clipboard Copy post link
    No need to apologise, but you should use:

    https://api.torn.com/torn/?selections=companies&key=API_KEY

    as that returns you the most current list of company info in case there are any changes.

    Toolbox - a collection of my tools and spreadsheets made for Torn.

    Guidebook - a collection of guides i made for Torn.

    • Metallose [2137204]
    • Role: Civilian
    • Level: 35
    • Posts: 7
    • Karma: 4
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:54:16 - 24/03/24 (5 months ago)
    Post link copied to clipboard Copy post link
    Damn, wish I'd known that before doing it all by hand...
    Last edited by Metallose on 08:55:21 - 24/03/24

    (This page intentionally left blank)

    • Blainyckz_ [606698]
    • Role: Civilian
    • Level: 77
    • Posts: 238
    • Karma: 209
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:28:39 - 25/03/24 (5 months ago)
    Post link copied to clipboard Copy post link
    I've always wondered what 17 was. I remmeber I played Torn when companies were initially released and can't recall anything that isn't currently there so I wonder if maybe it was scrapped before release and was just left in there as an empty value lol
Reply
Thread Title: