This question already has an answer here:
Get info about a YouTube video
(1 answer)
Closed 9 years ago.
How would I go about getting a title from a YouTube video so I can save my files with that title? I know you can use gdata-objectivec-client but I'm a bit confused with it. Because there are just so many files to import and I just do not know what I need to do this. Is gdata-objectivec-client all that can be used? Or is there something else I can use to achieve that result?
YouTube Data API v3 will be the best to use. You can get video's details by using videos->list API call.
You can give it a try in API explorer.
Data API has some nice objective-c examples. We will get more coverage on examples soon.
Related
There is a website called: TubeSift
This tool determines whether a video is "monetized" or not.
My simple question is...
Is there a way to determine if a specific YouTube video is monetized (can show in-stream ads) via some YouTube API?
If yes, which YouTube API?
If no, how then might TubeSift be determining this? Scraping the response?
Important distinction: this would be a video that you DON'T have authentication or credentials to manage - ie: it's someone else's video.
Similar questions asking slightly different things
youtube api to get channel monetization status?
Disclaimer
I realize this question seems off-topic because it doesn't have a code example but YouTube's How to Get Help says to basically ask questions here on StackOverflow for help.
We support the YouTube Data API on Stack Overflow. Google engineers
monitor and answer questions with the youtube-api, youtube-data-api,
and youtube-v3-api tags.
There's really nowhere else to ask.
Youtube provides API to YouTube content partners. I also checked the tubetarget and used scraping also but scraping is very slow as compared to the tubetarget
See this page to get enrolled.
According to youtube: When using delegation in the YouTube Data API, the onBehalfOfContentOwner parameter is always required. The parameter's value is an ID that uniquely identifies the content owner. You can retrieve the ID programmatically by calling the YouTube Content ID API's contentOwners.list method.
Detailed description here
YouTube Partner Program overview, application checklist, & FAQs
Also, check this
YouTube Partner Program policies
Please let me know if you are able to get Content Id API
In my opinion, i think if the video is greater than 10 minutes, therefore that video is being monetized, i read somewhere before that a video needs to have at least 10 minutes in order to be monetized, and obviously we can get the video duration via the API.
The json key is:
+"contentDetails": {#213 ▼
+"duration": "PT4M21S"
The time is formatted as an ISO 8601 string. PT stands for Time Duration, 4M is 4 minutes, and 13S is 13 seconds.
But the way Tubesift does it is just an intelligent guess or maybe some randomizing the "monetized" tagged of a video.
Hope that helps.
I have a project which is using the YouTube API to upload videos to YouTube.
One of the requirements is to be able to add annotations to the video, either at the time of upload, or afterwards. The annotation will contain some text to display, and a link to a URL.
Does anybody know if this is possible using the YouTube API, or some other method.
If it is possible, please provide links with details of how to do this.
Thanks
Gavin
No, this was answered already here:
Manage YouTube annotations through YouTube API
If you want to do it, you'd have to do it via a browser plug-in or other tricky way such as how YouTubeAnnotations.com does it.
This question already has answers here:
With Objective-C, what is the best way to log in to a service and scrape content from the resulting page without an API?
(2 answers)
Closed 9 years ago.
This is a newbie question and may not have an answer. I want to visit a website on an iPhone/iPad and also gather and search all the information about the website. For example, If I search for a book and a page pops up I want to be able to read in the genres it falls under (Fiction, Fantasy, romance, Adventure, etc...) Any suggetions would be greatly appreciated!
You can fetch website content(usually in HTML format) using ASIHTTPRequest or AFNetworking, then parse the HTML data, get the links of sub-pages. You may want to check How to Parse HTML on iOS.
Is there a way to get closed captions in a youtube clip as json ? I read passing "alt=json" should work, but it doesn't seem to. Any idea ? Also does the CC also work when it is done via translation ? For example
curl "http://www.youtube.com/api/timedtext?v=V6Tsrg_EQMw&lang=en" doesn't return anything (though the clip does have CC)
There currently is no supported API for retrieving closed caption tracks for arbitrary videos. (You might be able to reverse-engineer some methods of getting that data, but it's not supported and I can't encourage doing that.)
The officially supported methods for working with captions are for v2 of the YouTube Data API and are documented at https://developers.google.com/youtube/2.0/developers_guide_protocol_captions
Only an authenticated request as the owner of a given video will expose the list of caption tracks and allow you to download them in .srt or .sub format (not JSON).
I would expect that at some point there will be methods for interacting with captions in v3 of the API, but unfortunately I don't have any specific information to share about when that might happen.
Use youtube-dl to download the captions (as either srt, ass, vtt, or lrc).
Use TranscribeFiles' Online Captions & Subtitles Converter to convert to any of 11 different json schemas.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to determine if a given URL link is a video or image?
I'm building a forum and I want the facebook feature whereby when the user paste a video URL, i can automatically know its a video and display it differently??
You can check it's "mime type".
The way Facebook implemented requires quite a lot of computing power and may not be suitable for small scaled website.
After the user input the video URL, Facebook will proceed to determine if the URL belongs to a known host (such as Youtube, CollegeHumour). If the URL does not belong to a known host, Facebook will proceed to retrieve the page and determine the video parameters from the <meta> tags, according to what Facebook defines them to be.
However to keep things easy for you, maybe your forum can determine that if the URL is from Youtube, you can use Youtube's embed code to display the video.
This does not deal with MIME types, or video files directly. If it is video files, you will still need to proceed to fetch the headers of the video file, and determine what plugin or Flash player should display the video.