Fred
Fred

Reputation: 4947

Will a user's channel ID on Youtube v3 API ever change?

I am getting a user's upload feed using Youtube v3 API. However this happens in 2 steps. I am firstly getting the Channel ID for the user and then another call to get each item.

Get user's Channel ID - https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername={{user}}&key={{API key}}
Get each item in feed using Channel ID - https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId={{User Channel ID}}&key={{API Key}}

So once I have got the user's channel ID, is it safe to skip the first step from now on and simply get the feed? Whats the chance that the user channel ID might change?

Upvotes: 1

Views: 556

Answers (1)

Justinas
Justinas

Reputation: 43507

ID must be unique identifier. So changing ID means User channel is recreated. Similar to database ID

Upvotes: 1

Related Questions