Skip to content
TORNLIFE More

API endpoint /faction/attacks missing data

Started by saeed [1826888] on in Bugs & Issues.

3 replies · 54 views · thread synced · 3 days ago · View on torn.com
About this thread

Posts archived: 4 / 4 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
4
Discussion span
→
People posting
3
Likes on archived posts
4
Posts by staff, officers and moderators
3
Authority score
56 / 100
Historical score
44 / 100
Story score
44 / 100
Engagement score
48 / 100

Most-liked replies

saeed [1826888]

In the /faction/attacks API v2 endpoint, we have this data:

      "is_raid": false,
      "is_ranked_war": false,


is there a specific reason territory wall hits are not detailed? It seems logical to me that if raids/ranked war hits are called out, making it easier to track whether an attack was war related - territory wall hits should also be called out.

 
I know wall clears/joins et al is tracked via personalstats, but that is only tracked once a day making it difficult to view participation in real time, and would be very inefficient because we do not know which territories were being affected by them.


The territorywarreport endpoint is a similar issue because you cannot access this until the skirmish is complete, also making it difficult to track participation in real time.

huzzah!
saeed


splent [2088243] Admin Staff

Hey, 


It looks like this data is currently not available. 


I passed the request to a developer working on territory wars and he said it should be possible to add additional information to territory wars table, so once that is ready I will be able to also add "is_territory_war" flag or something similar to the API as well.

I'll leave this report open until then.

Thanks!

splent [2088243] Admin Staff

Hey,

 

Thank you for your suggestion. The territory attack data was made available for API and I've now updated 'user' -> 'attacks' and 'faction' -> 'attacks' to also include territory wars. 

I am not sure this will work for assists and lost attacks though - very likely not. 

 

Thanks.