Closed KimHyeonGyeom closed 1 month ago
As someone figured out on Discord, it does not work for English searches as well. I am investigating the issue.
The solution to this issue is not very complicated but requires a significant, in my opinion, API change by introducing a new Protobuf dependency.
@KimHyeonGyeom do you host your own instance of the YouTube operational API or only rely on the official instance one at https://yt.lemnoslife.com? The same question applies to the person on Discord who can either answer here or on Discord. Your answer will help me to figure out how to proceed to this significant change.
I’m sorry for the delayed response. I am relying solely on the instance of https://yt.lemnoslife.com!
@Benjamin-Loison Sorry, is this going to take longer to resolve?
I am still working on #303 but it should not take me more than today, hence I will work on your issue today.
proto/prototypes/browse.proto
:@KimHyeonGyeom Are the first 20 results fine for you or you need more?
browse_shorts.proto
:@KimHyeonGyeom처음 20개 결과가 괜찮은가요, 아니면 더 필요한가요?
개인적인 메모:
PHP의 JSON과 YouTube UI에서 모두 검색된 개수입니다.
20 is plenty!
Fix deployed, let me know if you have issues.
Thanks for having reported this issue.
@Benjamin-Loison Can't you use it locally? I'm using docker with the main branch and have the same problem as before.
@KimHyeonGyeom
work fine.
I believe that your Docker container/image (I forgot how all that work) is not up-to-date.
Note that the homepage of the YouTube operational API instance shows the commit used:
This instance (yt5.lemnoslife.com) uses version: fa0b1f6a9c713793490830a159820a9241a19ae6
Source: https://yt.lemnoslife.com
Let me try again
“When running locally with Docker, the search request returns a 500 error, and calling videos? shows a warning like in the image. Is there an additional configuration I need to set up?”
[19/Sep/2024:01:45:15 +0000] "GET /search?part=snippet&q=%EA%B5%BF%ED%8C%8C%ED%8A%B8%EB%84%88&type=short HTTP/1.1" 500 218 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
@KimHyeonGyeom Is there an error in logs when fetching /search?part=snippet&q=%EA%B5%BF%ED%8C%8C%ED%8A%B8%EB%84%88&type=short
?
@KimHyeonGyeom가져올 때 로그에 오류가 있나요
/search?part=snippet&q=%EA%B5%BF%ED%8C%8C%ED%8A%B8%EB%84%88&type=short
?
“Yes, when I send the API request, it returns a 500 response.”
response : [2024년 9월 19일:01:45:15 +0000] "GET /search?part=snippet&q=%EA%B5%BF%ED%8C%8C%ED%8A%B8%EB%84%88&type=short HTTP/1.1" 500 218 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
What you sent me are access logs (/var/log/apache2/access.log
on my Linux Mint 22 Cinnamon) I am asking for error logs (/var/log/apache2/error.log
on my Linux Mint 22 Cinnamon).
What commit is shown on your instance homepage, as I mentioned in #issuecomment-2359738845?
About #issuecomment-2359809058, concerning warnings you can get rid of tests like:
Related to #23.
I’m sorry, I didn’t understand what I need to check.
Send here the result of curl http://localhost:8081
.
Based on Channels: list: http://localhost:8081/channels?part=status,upcomingEvents,shorts,community,channels,about,approval,playlists,snippet,membership,popular,recent,letsPlay&cId=C_ID&id=CHANNEL_ID&handle=HANDLE&forUsername=USERNAME&raw=RAW&order=viewCount(&pageToken=PAGE_TOKEN)
Based on CommentThreads: list: http://localhost:8081/commentThreads?part=snippet,replies&id=COMMENT_ID&videoId=VIDEO_ID&order=relevance,time(&pageToken=PAGE_TOKEN)
Based on Playlists: list: http://localhost:8081/playlists?part=snippet,statistics&id=PLAYLIST_ID
Based on PlaylistItems: list: http://localhost:8081/playlistItems?part=snippet&playlistId=PLAYLIST_ID(&pageToken=PAGE_TOKEN)
Based on Search: list: http://localhost:8081/search?part=id,snippet&q=QUERY&channelId=CHANNEL_ID&eventType=upcoming&hashtag=HASH_TAG&type=video,short&order=viewCount,relevance(&pageToken=PAGE_TOKEN)
Based on Videos: list: http://localhost:8081/videos?part=id,status,contentDetails,music,short,impressions,musics,isPaidPromotion,isPremium,isMemberOnly,mostReplayed,qualities,chapters,isOriginal,isRestricted,snippet,clip,activity,explicitLyrics,statistics&id=VIDEO_ID&clipId=CLIP_ID&SAPISIDHASH=YOUR_SAPISIDHASH
http://localhost:8081/community?part=snippet&id=POST_ID&channelId=CHANNEL_ID&order=relevance,time
http://localhost:8081/lives?part=donations,sponsorshipGifts,memberships,poll&id=VIDEO_ID
http://localhost:8081/liveChats?part=snippet,participants&id=VIDEO_ID&time=TIME_MS
To make ANY YouTube Data API v3 request WITHOUT ANY KEY/USING YOUR QUOTA, you can use: http://localhost:8081/noKey/YOUR_REQUEST
For instance you can use: http://localhost:8081/noKey/videos?part=snippet&id=VIDEO_ID instead of https://www.googleapis.com/youtube/v3/videos?part=snippet&id=VIDEO_ID
I may add in the future limitation per IP etc if the quota need to be better shared among the persons using this API.
Currently this service is powered by 0 keys.
Share your YouTube Data API v3 key to power the no-key service:The result is as shown above.
Ok so your instance is up to date. How have you installed your Docker YouTube operational API instance, have you followed the official guide blob/0ddadb17ef58624da1b87cf0eee9592db4a5055d/README.md#run-the-api-with-docker?
Yes, I followed the official guide exactly.
.env
:.env.sample
:@KimHyeonGyeom On what OS are you?
I’m using Ubuntu.
The issue is that Protobuf is not yet compliant with YouTube operational API from Docker, I will investigate that after 12:00 UTC+2
Related to #265.
Let me know if with the new commit you still have the issue.
Everything is working fine now! Thank you!
Hello, I have been using your API in South Korea. Until a few weeks ago, I was able to search and retrieve shorts of Korean works without any issues, but at some point, the results started coming back as
null
. Could you please take a look when you have a chance?url : https://yt.lemnoslife.com/search?part=id,snippet&q=%EA%B5%BF%ED%8C%8C%ED%8A%B8%EB%84%88&type=short