Will generating a new API key immediately stop requests using the old key working?

  • 1
  • Question
  • Updated 6 years ago
My app has been pirated, and my daily requests are shooting up (currently doubled, but still going up).

I need to disable the key in the version of the app that's out there, but I also need to put out a new version of the app with a new key, so that legitimate users can continue to get weather data.

If generating a new key immediately invalidates the old key, then is it possible to have two keys running concurrently, and only disabling the old after a certain period of time?

It would be best for me to put out an updated version of my app which uses a new key, then after a couple of weeks (once most users have upgraded) disable the old key.
Photo of Matt Greenfield

Matt Greenfield

  • 4 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Matt Greenfield

Matt Greenfield

  • 4 Posts
  • 0 Reply Likes
Ah. I see I can create a new key for a new project. I've just done that now. It isn't a new project, but it is for a new version of the app, and with the aim of the old API key no longer being used in new versions. I hope that's within the rules!
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
That's totally in the rules and you're doing the right thing.