0

I'm trying to retrieve data from YouTube Data API V3.0 python version. Every request that i"m creating I'm getting the error:

gdata.service.RequestError: {'status': 410, 'body': 'No longer available', 'reason': 'Gone'}

Here is my code:

import atom
import gdata.youtube
import gdata.youtube.service
import gdata.youtube.data
import socket
socket.getaddrinfo('127.0.0.1', 8080)
DEVELOPER_KEY = 'my_key'
yt_service = gdata.youtube.service.YouTubeService(developer_key=DEVELOPER_KEY)
playlist_feed = yt_service.GetYouTubeVideoFeed('https://gdata.youtube.com/feeds/api/users/UCBOYkdPkPF216lzhlqj2POw')

What could be the problem?

4

1 Answer 1

3

Your code uses the old Gdata library. Which is YouTube API v2.

The YouTube Data API (v2) has been officially deprecated as of March 4, 2014.

Your error:

{'status': 410, 'body': 'No longer available', 'reason': 'Gone'}

Makes me think that its down and doesn't work anymore, but I am going to have to look into that. Either way I suggest you move to the new V3 API. The new client library can be found here Google apis Python client

Update My assumption was correct.

The YouTube V2 no longer works. bye by YouTube Data API V2

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.