Murali
Murali

Reputation: 61

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.

Upvotes: 6

Views: 12846

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 117206

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)

enter image description here

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.

Upvotes: 6

Related Questions