Question on multiple api key usage | API Development | TORN

Question on multiple api key usage

    • PIE [2168186]
    • Role: Civilian
    • Level: 22
    • Posts: 65
    • Karma: 21
    • Last Action: 7 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 21:13:41 - 25/04/24 (11 months ago)
    |
    Last replied 19:09:20 - 29/04/24 (11 months ago)
    I've seen conflicting statments that you are not allowed to use multiple api keys to curcumvent the 30 second cashe like this saying that it is not allowed to use other user's api keys to curcumvent the cache. However, I have seen threads like this of people buying api keys. So is using other players api keys allowed or banned?

    • tiksan [2383326]
    • Role: Civilian
    • Level: 100
    • Posts: 992
    • Karma: 1,313
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:46:21 - 25/04/24 (11 months ago)
    Post link copied to clipboard Copy post link
    You're allowed to use other people's API keys, but you can't use those keys to bypass the 30 second cache.. although you can usually change the timestamp to legally bypass the cache, I can't find ched's post about it though. So you'd be using multiple API key to make more than 100 API calls per minute.

    https://cdn.discordapp.com/attachments/719011659561173012/1237732490513481809/Sith_Larping_Asshats.gif?ex=678f8935&is=678e37b5&hm=6d9a2ed93994782d9020538e0ec71a3d072964d584aceb09e9e6f547752d41e0&

    • PIE [2168186]
    • Role: Civilian
    • Level: 22
    • Posts: 65
    • Karma: 21
    • Last Action: 7 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:02:19 - 25/04/24 (11 months ago)
    Post link copied to clipboard Copy post link

    tiksan [2383326]

    You're allowed to use other people's API keys, but you can't use those keys to bypass the 30 second cache.. although you can usually change the timestamp to legally bypass the cache, I can't find ched's post about it though. So you'd be using multiple API key to make more than 100 API calls per minute.
    Extremely strange. So you have to manually configure additional api keys to follow the 30 second rule even though it by default is bypassed? Why doesn't torn just cache similar api calls from the same IP rather than an api key if it is not allowed to be bypassed? There already is a 1000 api call limit per ip so I assume it should come with the call.
    Last edited by PIE on 22:03:09 - 25/04/24 (11 months ago)

    • tiksan [2383326]
    • Role: Civilian
    • Level: 100
    • Posts: 992
    • Karma: 1,313
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:23:57 - 25/04/24 (11 months ago)
    Post link copied to clipboard Copy post link

    tiksan [2383326]

    You're allowed to use other people's API keys, but you can't use those keys to bypass the 30 second cache.. although you can usually change the timestamp to legally bypass the cache, I can't find ched's post about it though. So you'd be using multiple API key to make more than 100 API calls per minute.

    PIE [2168186]

    Extremely strange. So you have to manually configure additional api keys to follow the 30 second rule even though it by default is bypassed? Why doesn't torn just cache similar api calls from the same IP rather than an api key if it is not allowed to be bypassed? There already is a 1000 api call limit per ip so I assume it should come with the call.
    You should be fine as long as you aren't purposefully trying to bypass a cache by using multiple keys. I imagine they don't cache it that way since it would make the API slower than it already is.

    https://cdn.discordapp.com/attachments/719011659561173012/1237732490513481809/Sith_Larping_Asshats.gif?ex=678f8935&is=678e37b5&hm=6d9a2ed93994782d9020538e0ec71a3d072964d584aceb09e9e6f547752d41e0&

    • JKyte [2417425]
    • Role: Civilian
    • Level: 100
    • Posts: 928
    • Karma: 1,209
    • Last Action: 29 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:54:38 - 29/04/24 (11 months ago)
    Post link copied to clipboard Copy post link
    Back when I was doing Science(tm), I never ran into a problem.

    Depending on what I was tracking, I would occasionally issue the same API call within 30 seconds using different keys and never got a warning. As long as you aren't doing something on purpose you should be fine.
    • Nexus [105937]
    • Role: Civilian
    • Level: 100
    • Posts: 5,367
    • Karma: 16,878
    • Last Action: 15 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:20:20 - 29/04/24 (11 months ago)
    Post link copied to clipboard Copy post link

    tiksan [2383326]

    You're allowed to use other people's API keys, but you can't use those keys to bypass the 30 second cache.. although you can usually change the timestamp to legally bypass the cache, I can't find ched's post about it though. So you'd be using multiple API key to make more than 100 API calls per minute.

    PIE [2168186]

    Extremely strange. So you have to manually configure additional api keys to follow the 30 second rule even though it by default is bypassed? Why doesn't torn just cache similar api calls from the same IP rather than an api key if it is not allowed to be bypassed? There already is a 1000 api call limit per ip so I assume it should come with the call.

    tiksan [2383326]

    You should be fine as long as you aren't purposefully trying to bypass a cache by using multiple keys. I imagine they don't cache it that way since it would make the API slower than it already is.
    Is many libraries and most frameworks have this baked in, that it automatically caches the results from the same API call for x amount of "time to live/time to die". Its purpose is to speed up API calls.

    aa97b91e-b887-45de-9554-63cd11df3b8a-2638370.gif

    a4de5fb9-bcbe-44c5-bb64-5e54c721961d-105937.png

     

    • Kwack [2190604]
    • Role: Civilian
    • Level: 15
    • Posts: 2,239
    • Karma: 3,560
    • Last Action: 7 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:58:55 - 29/04/24 (11 months ago)
    Post link copied to clipboard Copy post link
    We've been told no in the past, but you're definitely right in there being conflicting answers.

    I suspect it's something that will be ignored until / unless it becomes a problem
    • Omanpx [1906686]
    • Role: Civilian
    • Level: 100
    • Posts: 3,018
    • Karma: 19,805
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:01:42 - 29/04/24 (11 months ago)
    Post link copied to clipboard Copy post link
    Imo, as long as you stick to the 1k/min IP limit, you are fine.
    Last edited by Omanpx on 12:01:53 - 29/04/24 (11 months ago)

    Toolbox - a collection of my tools and spreadsheets made for Torn.

    Guidebook - a collection of guides i made for Torn.

    • tiksan [2383326]
    • Role: Civilian
    • Level: 100
    • Posts: 992
    • Karma: 1,313
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:43:28 - 29/04/24 (11 months ago)
    Post link copied to clipboard Copy post link

    tiksan [2383326]

    You're allowed to use other people's API keys, but you can't use those keys to bypass the 30 second cache.. although you can usually change the timestamp to legally bypass the cache, I can't find ched's post about it though. So you'd be using multiple API key to make more than 100 API calls per minute.

    PIE [2168186]

    Extremely strange. So you have to manually configure additional api keys to follow the 30 second rule even though it by default is bypassed? Why doesn't torn just cache similar api calls from the same IP rather than an api key if it is not allowed to be bypassed? There already is a 1000 api call limit per ip so I assume it should come with the call.

    tiksan [2383326]

    You should be fine as long as you aren't purposefully trying to bypass a cache by using multiple keys. I imagine they don't cache it that way since it would make the API slower than it already is.

    Nexus [105937]

    Is many libraries and most frameworks have this baked in, that it automatically caches the results from the same API call for x amount of "time to live/time to die". Its purpose is to speed up API calls.
    Client-side caching and server-side caching are two very different beasts.

    https://cdn.discordapp.com/attachments/719011659561173012/1237732490513481809/Sith_Larping_Asshats.gif?ex=678f8935&is=678e37b5&hm=6d9a2ed93994782d9020538e0ec71a3d072964d584aceb09e9e6f547752d41e0&

    • Nexus [105937]
    • Role: Civilian
    • Level: 100
    • Posts: 5,367
    • Karma: 16,878
    • Last Action: 15 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:09:20 - 29/04/24 (11 months ago)
    Post link copied to clipboard Copy post link

    tiksan [2383326]

    You're allowed to use other people's API keys, but you can't use those keys to bypass the 30 second cache.. although you can usually change the timestamp to legally bypass the cache, I can't find ched's post about it though. So you'd be using multiple API key to make more than 100 API calls per minute.

    PIE [2168186]

    Extremely strange. So you have to manually configure additional api keys to follow the 30 second rule even though it by default is bypassed? Why doesn't torn just cache similar api calls from the same IP rather than an api key if it is not allowed to be bypassed? There already is a 1000 api call limit per ip so I assume it should come with the call.

    tiksan [2383326]

    You should be fine as long as you aren't purposefully trying to bypass a cache by using multiple keys. I imagine they don't cache it that way since it would make the API slower than it already is.

    Nexus [105937]

    Is many libraries and most frameworks have this baked in, that it automatically caches the results from the same API call for x amount of "time to live/time to die". Its purpose is to speed up API calls.

    tiksan [2383326]

    Client-side caching and server-side caching are two very different beasts.
    Yeah with a RestAPI one would assume they were referring to server side caching.

    aa97b91e-b887-45de-9554-63cd11df3b8a-2638370.gif

    a4de5fb9-bcbe-44c5-bb64-5e54c721961d-105937.png

     

Reply
Thread Title: