YouTube Data V3 API videos.insert - wrong snippet.categoryID - youtube-api

I am trying to upload the video using V3 YouTube API.
https://developers.google.com/youtube/v3/docs/videos/insert
I keep hitting HTTP 400 due to incorrect snippet.categoryID field. Is there any documentation on what available options on this field are?

I've got the answer on YouTube itself. When you upload a video, use web developer tools in browser to inspect categories dropdown. It will contain category ids.

Related

Access YouTube Content API

I have been able to successfully upload videos to my own YouTube channel through the YouTube Data API.
I have just been made a manager of multiple channels and am now hoping to upload videos to the different channels using the ‘onBehalfOfContentOwner’ parameter
I am trying to get the Content Owner ID from the Content ID API but am getting the error:
“YouTube Content ID API has not been used in project <PROJECT_ID> before or it is disabled”.
When I try to enable the Content API through the developer console it doesn’t appear as an option in the API library
Would anyone know how I can enable the Content ID API?

Youtube content owner API returns 403 forbidden error

The API Explorer returns 403 forbidden with fetchMine=True https://developers.google.com/youtube/partner/docs/v1/contentOwners/list
Used Google OAuth 2.0 and API key. Is it compulsory to be a a partner to gain access to the data?
directly from the documentation page.
ContentOwners: list
Note: The YouTube Content ID API is intended for use by YouTube content partners and is not accessible to all developers or to all YouTube users. If you do not see the YouTube Content ID API as one of the services listed in the Google API Console, see the YouTube Help Center to learn more about the YouTube Partner Program.
answer
you need to be a YouTube partner to access this method.

Post comments to youtube videos using youtube api v3 via Fiddler or custom console app

The question is about inserting comments using the version 3 of the youtube api and via a crude http request (with fiddler or custom console app).
I'm able to retrieve videos sending a request to the search method with my api key, but inserting a comment is different. The response I get is 401 Unauthorized but I'm sending the correct api key.
I think this is due to the scope:
Also add don't forget to add following scope https://www.googleapis.com/auth/youtube.force-ssl
as it is said in Post comments to youtube videos using youtube api v3 Android but I don't know how to set it up in my app or via fiddler (yes with api explorer provided by google, but they have a popup implemented to select this scope).
Anybody knows how can I add the scope and set it to youtube.force-ssl?
Thanks

How can I use the deprecated YouTube Data API to get video comments?

I have an application where we would like to display YouTube video comments. In the YouTube API 2 there was support for retrieving video comments - this functionality is no longer available in API 3.
As stated in the docs:
You can continue using the v2 API for comments and uploading video
captions for now, and we'll be adding this functionality into the v3
API soon. While we don’t have specific dates yet, we will release that
functionality so that developers have as much time as possible to
migrate to v3.
...there
will not be 100% feature parity between the v2 and v3 APIs. Please see
the v3 API documentation for more details as to what functionality is
supported in v3.
As I understand it, you need to register your app through the Google Developer console for the API you wish to use first, and there is no longer an option to add YouTube API 2. I tried sending a request to the old endpoint
https://gdata.youtube.com/feeds/api/videos/VideoIdHere/comments
but got the following response
No longer available
Is there a way I can still use the API 2 to retrieve video comments? How can I accomplish this?
Edit:
YouTube video comments are now available at the following endpoint
https://www.googleapis.com/youtube/v3/commentThreads
See the docs here
Nope, API v2 is completely deprecated and no longer available. You will need to use API v3.
Example call: https://www.googleapis.com/youtube/v3/commentThreads?part=snippet%2C+replies&maxResults=50&videoId=VIDEO_ID&order=time&textFormat=plainText&key=API_KEY

Youtube Related Videos using Youtube V3 API

I need the API URL for Youtube Related Videos using the Youtube V3 API.
But I couldn't find the direct API call, like it is in Version 2. Did I miss something?
https://developers.google.com/youtube/v3/docs/
Are you trying to find videos related to a video?
You can use search->list call for this with specifying the "relatedToVideoId"
And for anyone looking for a coded example:
GET https://www.googleapis.com/youtube/v3/search?part=snippet&relatedToVideoId=5rOiW_xY-kc&type=video&key={YOUR_API_KEY}

Resources