Faction OCs | API Development | TORN

Faction OCs

    • Blainyckz_ [606698]
    • Role: Civilian
    • Level: 77
    • Posts: 238
    • Karma: 209
    • Last Action: 39 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 01:36:01 - 08/01/22 (2 years ago)
    |
    Last replied 05:06:42 - 25/01/22 (2 years ago)
    Heya,

    Does anyone know how to get more than 100 results back from "https://api.torn.com/faction/?selections=crimes&key="

    I've tried &to=*** but it doesn't seem to be working unless I've done something wrong?
    • Ulung_PL [379891]
    • Role: Civilian
    • Level: 17
    • Posts: 582
    • Karma: 732
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:41:38 - 09/01/22 (2 years ago)
    Post link copied to clipboard Copy post link
    The to and from vals also work here.

    ..why would anyone but a total loser pay money to play a browser game????
    • VanilaNightmare [2310825]
    • Role: Civilian
    • Level: 100
    • Posts: 787
    • Karma: 2,246
    • Last Action: 14 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 05:06:42 - 25/01/22 (2 years ago)
    Post link copied to clipboard Copy post link

    Blainyckz_ [606698]

    Heya,

    Does anyone know how to get more than 100 results back from "https://api.torn.com/faction/?selections=crimes&key="

    I've tried &to=*** but it doesn't seem to be working unless I've done something wrong?
    I've found that you have to have a &to and a &from parameter, otherwise it will just return the last 100 crimes. When more than 100 crimes would fall within the parameters, it prioritizes the &to parameter, meaning you could just have a static &from=1500000000 parameter.

    I've also noticed that if you are making calls too frequently, it will return the same results as the previous call even if you have changed the parameters which can make troubleshooting more challenging.
    Last edited by VanilaNightmare on 05:08:09 - 25/01/22
Reply
Thread Title: