Skip to content
TORNLIFE More

API IDs

Started by Ihechikara [2450404] on in API Development.

2 replies · 204 views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 3 / 3 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
3
Discussion span
→
People posting
2
Likes on archived posts
3
Authority score
51 / 100
Historical score
18 / 100
Story score
27 / 100
Engagement score
47 / 100
Sheev [1522784]
Company ID is accessible via the company page itself, click 'Company Profile' and you'll be redirected to the URL: https://www.torn.com/joblist.php#/p=corpinfo&ID=[ID HERE]

Faction ID is accessible via the faction page and will be in the URL by default: https://www.torn.com/factions.php?step=profile&ID=[ID HERE]

Make an API call to get the item list, it would be best practice to save the output of this API call to a JSON file and access it locally so you don't make unnecessary calls, then have a script that will periodically make a call and update the list in case IDs are changed or items are added. Here is the endpoint: https://api.torn.com/torn/?selections=items&key=[API KEY HERE]

There are no similar API calls you can make to get listings for every faction/company, these will need to be specified manually.

Hope this helps, let me know if I misinterpreted your post or if you need more information.