youtube-api
curl: Per-file Content-Type for multipart POST (YouTube API)
First, you can specify the content-type for a part you upload by adding “;type=magic/string”. Like for example in your video case: curl -F “[email protected];type=video/mpeg4” [URL] (use –trace or –trace-ascii to verify that curl sends exactly what you want it to) … but this said, I’d guess that it is highly unlikely that the receiving server … Read more
Is there any way to get the live chat replay log/history for YouTube streaming video?
Chat Downloader is a tool I developed to retrieve chat messages from livestreams, videos, clips and past broadcasts. No authentication needed! The recommended way to install is from PyPI using pip: pip install chat-downloader The program can then be accessed from the command line or using the Python module: Command line chat_downloader https://www.youtube.com/watch?v=5qap5aO4i9A For advanced … Read more
How to check if YouTube channel is streaming live
You can do this by using search.list and specifying the channel ID, setting the type to video, and setting eventType to live. For example, when I searched for: https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UCXswCcAMb5bvEUIDEzXFGYg&type=video&eventType=live&key=[API_KEY] I got the following: { “kind”: “youtube#searchListResponse”, “etag”: “\”sGDdEsjSJ_SnACpEvVQ6MtTzkrI/gE5P_aKHWIIc6YSpRcOE57lf9oE\””, “pageInfo”: { “totalResults”: 1, “resultsPerPage”: 5 }, “items”: [ { “kind”: “youtube#searchResult”, “etag”: “\”sGDdEsjSJ_SnACpEvVQ6MtTzkrI/H-6Tm7-JewZC0-CW4ALwOiq9wjs\””, “id”: { “kind”: … Read more
How do I get a list of uploaded videos for a certain channel with the new YouTube Data API (V3)?
You have to get the upload playlist id to get each videos uploaded. To get that, you need to get the channel id. After you have the playlist id from the channel id, it is pretty simple. I have written out the steps for all three below. Also, we offer PubSubHubBub which allows you to … Read more
How to get my entire YouTube watch history?
The API currently only retrieves the last two weeks of Watch History. For more information refer to the Bug Issue reported: https://code.google.com/p/gdata-issues/issues/detail?id=4642 Note: There is a similar question on SO asked here: YouTube API v3 returns truncated watch history