6

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.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
Murali
  • 61
  • 1
  • 1
  • 5

1 Answers1

6

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.

abraham
  • 46,583
  • 10
  • 100
  • 152
Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
  • welcome to stack that was a very good question. Don't for get to accept the answer if it helped you. – Linda Lawton - DaImTo May 19 '15 at 09:37
  • @jinsnow access tokens are used to access private user data and expired after an hour they are not related to public API keys please don't post unrelated comment on anwser this may confuse people unfamiliar to the inner workings of Oauth2 – Linda Lawton - DaImTo Feb 03 '19 at 00:06