Skip to content
TORNLIFE More

API Stats Returning Null Values

Started by Glasnost [1844049] on in Bugs & Issues.

6 replies · 136 views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 7 / 7 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
7
Discussion span
→
People posting
5
Likes on archived posts
6
Posts by staff, officers and moderators
3
Authority score
57 / 100
Historical score
36 / 100
Story score
42 / 100
Engagement score
55 / 100

Most-liked replies

Glasnost [1844049]

So querying the below URL, I am getting a lot of null values:

 

https://api.torn.com/torn/?selections=stats&key=apikeyhere&comment=Glasnost

 

{
    "stats": {
        "timestamp": 1728000000,
        "users_total": null,
        "users_male": null,
        "users_female": null,
        "users_enby": null,
        "users_marriedcouples": null,
        "users_daily": null,
        "total_users_logins": null,
        "total_users_playtime": null,
        "job_army": null,
        "job_grocer": null,
        "job_medical": null,
        "job_casino": null,
        "job_education": null,
        "job_law": null,
        "job_company": null,
        "job_none": null,
        "crimes": null,
        "jailed": null,
        "money_onhand": null,
        "money_citybank": null,
        "items": null,
        "events": null,
        "wars_ranked": null,
        "wars_territory": null,
        "wars_raid": null,
        "communication_events": null,
        "communication_totalevents": null,
        "communication_messages": null,
        "communication_totalmessages": null,
        "communication_chats": null,
        "communication_forumposts": null,
        "communication_articles": null,
        "communication_articleviews": null,
        "communication_articlereads": null,
        "forums_posts": null,
        "forums_threads": null,
        "forums_likes": null,
        "forums_dislikes": null,
        "crimes_today": null,
        "gym_trains": null,
        "points_total": null,
        "points_market": null,
        "points_averagecost": null,
        "points_bought": null,
        "total_points_boughttotal": null,
        "total_attacks_won": null,
        "total_attacks_lost": null,
        "total_attacks_stalemated": null,
        "total_attacks_runaway": null,
        "total_attacks_hits": null,
        "total_attacks_misses": null,
        "total_attacks_criticalhits": null,
        "total_attacks_roundsfired": null,
        "total_attacks_stealthed": null,
        "total_attacks_moneymugged": null,
        "total_attacks_respectgained": null,
        "total_items_marketbought": null,
        "total_items_bazaarbought": null,
        "total_items_auctionswon": null,
        "total_items_sent": null,
        "total_trades": null,
        "total_items_bazaarincome": null,
        "total_items_cityfinds": null,
        "total_items_dumpfinds": null,
        "total_items_dumped": null,
        "total_jail_jailed": null,
        "total_jail_busted": null,
        "total_jail_busts": null,
        "total_jail_bailed": null,
        "total_jail_bailcosts": null,
        "total_hospital_trips": null,
        "total_hospital_medicalitemsused": null,
        "total_hospital_revived": null,
        "total_mails_sent": null,
        "total_mails_sent_friends": null,
        "total_mails_sent_faction": null,
        "total_mails_sent_company": null,
        "total_mails_sent_spouse": null,
        "total_classifiedads_placed": null,
        "total_bounty_placed": null,
        "total_bounty_rewards": null,
        "total_travel_all": null,
        "total_travel_argentina": null,
        "total_travel_mexico": null,
        "total_travel_dubai": null,
        "total_travel_hawaii": null,
        "total_travel_japan": null,
        "total_travel_unitedkingdom": null,
        "total_travel_southafrica": null,
        "total_travel_switzerland": null,
        "total_travel_china": null,
        "total_travel_canada": null,
        "total_travel_caymanislands": null,
        "total_drugs_used": null,
        "total_drugs_overdosed": null,
        "total_drugs_cannabis": null,
        "total_drugs_ecstacy": null,
        "total_drugs_ketamine": null,
        "total_drugs_lsd": null,
        "total_drugs_opium": null,
        "total_drugs_shrooms": null,
        "total_drugs_speed": null,
        "total_drugs_pcp": null,
        "total_drugs_xanax": null,
        "total_drugs_vicodin": null,
        "total_merits_bought": null,
        "total_refills_bought": null,
        "total_company_trains": null,
        "total_statenhancers_used": null
    }
}

ChiRho [2428131]

i tried using v1 and v2 api links no dice the selection is public access so not sure, stumbled across this and thought i'd try.

Glasnost [1844049]

This appears to have resolved and is now returning normal values.

 

Perhaps a bad cache or some kind of race condition in the report? Leaving that to the powers that be anyway.

Szanti [2965724]

Not for the day in question

 

 

https://api.torn.com/torn/?key=& timestamp=1728000000&comment=TornAPI&selections=stats

 

Returns null values still, my guess the report didn't generate for that day.

splent [2088243] Admin Staff

It looks like this specific day is lost in oblivion.

t will be only possible for this day to return the next day (but it will also return that day's timestamp). I'm afraid I can't do nothing else here.

Thanks