Is there an endpoint for the chain reports? I would prefer to get the data in a simple fashion, as opposed to having to scrape the page.
Chain Report API
Started by ThtAstronautGuy [1977683] Moderator on in API Development.
About this thread
Posts archived: 5 / 5 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
- 5
- Discussion span
- →
- People posting
- 3
- Likes on archived posts
- 1
- Posts by staff, officers and moderators
- 2
- Authority score
- 74 / 100
- Historical score
- 32 / 100
- Story score
- 26 / 100
- Engagement score
- 48 / 100
Most-liked replies
- tos [1976582]
· 1 likes ·
There's attacknews, attacknewsfull, attacks, attacksfull as selections in the faction section in regards to hits. https://api.torn.com/faction/16312?selections=attacksfull&key=APIKEY Is probably what you want, but it's just a list of the last 10k attacks. You'll need to parse it into a hit report …
Is there an endpoint for the chain reports? I would prefer to get the data in a simple fashion, as opposed to having to scrape the page.
There's attacknews, attacknewsfull, attacks, attacksfull as selections in the faction section in regards to hits.
https://api.torn.com/faction/16312?selections=attacksfull&key=APIKEY
Is probably what you want, but it's just a list of the last 10k attacks. You'll need to parse it into a hit report and store it periodically if you want a longer hit report.
Okay, thanks for the help!
Actually, as per this post by Chedburn, we can now query `attacks` in pages -- so you can retroactively work on your reports.
Nice!