Company Types and their IDs
-
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 TypeID 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 orderLast edited by Metallose on 08:48:18 - 24/03/24(This page intentionally left blank)
-
-
Posted on 08:49:58 - 24/03/24 (5 months ago)Post link copied to clipboard Copy post linkNo 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. -
-
Posted on 08:54:16 - 24/03/24 (5 months ago)Post link copied to clipboard Copy post linkDamn, 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)
-
-
Posted on 18:28:39 - 25/03/24 (5 months ago)Post link copied to clipboard Copy post linkI'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
-