'How long is the Google API key Valid?
I'm am fetching playlist's details using Youtube API V3 using API key.
I can't find any information about API KEY validity period. I want to make sure I regenerate a new API key for my application before it expires.
Solution 1:[1]
The public API key found at the bottom of the Google Developers console APIs & auths -> credentials screen does not expire. This is a key used for accessing public APIs like Playlists.list, it will remain valid for as long as you do not delete the key or delete the project associated with the key. Its main purpose is for Google to keep track of who is using there APIs and to limit the number of requests you may make to prevent spamming the servers. (Quota)
Access tokens are used for Open Authentication access and do expire. Open Authentication (oauth2) is used for accessing non public data, data owned by a user. They are created pragmatically by requesting them from the authentication server using a refresh token and a client id /client secrete. I don't think this is what you are asking about, but I thought I would add it for reference.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | abraham |