Thread: Youtube API

Page 1 of 2 12 Last
  • Jump to page:
    #1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2017
    Posts
    845
    Rep Power
    0

    Youtube API


    Php Folks,

    I want to build a php script that gets results from Youtube.
    Meaning, you will make keyword searches on Youtube and my php script will query Youtube and grab the results and display them to you with a few changes. The changes, we will get into that later.
    First things first. If I build a cURL script then Youtube is likely to detect tonnes of queries coming from my server IP and ban my IP. Right ?
    And so, do you think Youtube API is the best solution ? I mean, that is why they built the API for. Right ?
    I don't have experiences with API and so this is my first ever project with php and so bear with me not a little but tonnes. It will be a bumpy ride.

    Anyway, I'm looking into Youtube API right now. Googled. But, I don't want to be wading through irrelevant docs and am a little loss here.
    And so, do you know of any good links where I can get all the info on how to make use of the Youtube API for my php script ?

    I searched for "youtube api":
    https://www.google.com/search?q=yout...hrome&ie=UTF-8

    Checking out these links but it would help if you guys can be kind enough to have a peek and tell me which links to go with and which ones to ignore:
    https://developers.google.com/youtube/
    https://developers.google.com/youtube/v3/
    https://developers.google.com/youtube/v3/code_samples/
    https://developers.google.com/youtub...ntation/search
    https://developers.google.com/youtub...rch_by_keyword

    You are welcome to provide a small code sample, if you wish.
    Requinix is not allowing me to open more than one thread based on one code and so I can't mention the code here which I would use to grab results from Youtube via my cURL. I would make use of this script by making amends:
    http://forums.devshed.com/php-develo...ng-980552.html
    Unless ofcourse you guys advise that I should not build my Youtube Searching/Querying script over that code's skeleton.

    Let me see if I understand what an API's function is.
    The youtube script is programmed to understand certain queries. These queries must be in the url. if I get these query parameters correct then my web app would be able to query Youtube and fetch the results. So, the API is the handshake language or barrier removal tool. Correct ?
    From the looks of this page, it seems Youtube allows 3rd party tools (web apps, mobile apps, etc.) to query the Youtube searchengine index. And so, my cURL should be able to query Youtube without any foil mechanisms getting triggered. Correct ? I mean, if they wern't allowing 3rd party tools to query Youtube then they won't be releasing the API. Now would they ?
    I just have to read their API doc to see what mechanisms or measures they have in place that if triggered they would take into account as the querying client app is going against their rules and so is a query spammer. Am I right here in my understandings ?
    Anyway,s I'd appreciate all the advice and code samples or links to code samples I could get from your ends.
    Last edited by UniqueIdeaMan; May 2nd, 2018 at 12:41 PM.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,459
    Rep Power
    653
    I suggest you start with the youtube API TOS.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2017
    Posts
    845
    Rep Power
    0
    Originally Posted by gw1500se
    I suggest you start with the youtube API TOS.
    Ok.
  6. #4
  7. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,416
    Rep Power
    2105
    Originally Posted by UniqueIdeaMan
    Ok.
    And make sure that you fully understand every part of what it says, and the legal uses and implications that you open yourself to by using their API system.

    I haven't read it myself, but I have a feeling that there's going to be a lot of terms of use in it that will block what you have in mind. Remember that YouTube is owned by Google, so they are the ones that want to make ad money off the videos , not just anyone using their API system.

    Of course you could get around this by hosting your own free video upload and broadcast system yourself...
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2017
    Posts
    845
    Rep Power
    0
    Originally Posted by Catacaustic
    And make sure that you fully understand every part of what it says, and the legal uses and implications that you open yourself to by using their API system.

    I haven't read it myself, but I have a feeling that there's going to be a lot of terms of use in it that will block what you have in mind. Remember that YouTube is owned by Google, so they are the ones that want to make ad money off the videos , not just anyone using their API system.

    Of course you could get around this by hosting your own free video upload and broadcast system yourself...
    I will tell you what I have in mind. I will let people like you embed your aswell as others' youtube videos on my searchengine. List them on my "video searchengine" under your thoughtup keywords.
    So, if someone lists their youtube vid on youtube under these KWs "vps host what is good or bad about them" then just by looking at these KWs people like you would figure it out fast that the public would not be searching for such KWs. By checking the vid stats you would see hardly got any views.
    Here you can help. You will list the same vids' embedded links on my searchengine with high searching keywords such as "vps hosts pros and cons".
    Now, when the public KW search for "vps hosts pros and cons" the low numbered viewed youtube vid would be presented by my searchengine on it's SERP. (This is how you help a good vid with bad KWs get viewed on my searchengine network).
    And so, when members browse your embedded vid (the bad ranked vid on youtube) by KW searching your thoughtup KWs, I will log their viewings and publicize them as their browsing history (what vids they browsed). The browsing histories will not list the original embedded links but doorway pages to the embedded links. (Here is a clue Cato how all my projects work to earn the members income).
    When the public (both members & non-members) view the viewers' browsing histories and click the doorway pages to see what has been browsed by their followees, they will first see ads (not served by youtube) on the doorway pages and you will earn pay per click income. Your income will come from the ad network that will serve the ads on the doorway pages. After the ads have been viewed and you have earned ppc $, the trailers or followers will be redirected to the original youtube embedded links.
    Ofcourse, youtube embedded links will show ads then and you nor my searchengine will earn any money from it. But you do earn from the ads shown on the doorway pages. Half the time your sponsor ads would be shown on the doorway pages and half the time mine (the video searchengine's).
    This way, I do not have to run my own youtube competition site. Nor have to use youtube api to query youtube. The embedded links will do all the querying. And embedded links do not have limits in place. Now, do they ?
    You'd be able to list any vids from youtube, vimeo, metacafe, etc. Why should I restrict my vid SE to youtube only ?
    And so, I won't need to use youtube api. You don't need to fiddle with api stuffs when you embed youtube vids.
    Remember, my vid SE will not be hosting any video files. Just listing embedded links. Ok, it is not straight or simple as it sounds when you deal with embedded links but I have thoughtup a UNIQUE workaround. As ALWAYS.
    Now Catacaustic, how-about that ? You now starting to believe I am like Neo (from Matrix) who will get the system down (all the big internet guys) with my own UNIQUE WAYS & PATHS ? Are you now a convert like Morpheus ?
    https://www.google.com/search?q=neo+...CT8QxA0I5gEwIQ
    When youtube vid publishers see that their KWs are crap and they're getting no views on youtube but getting views via my vid SE thanks to your KWs, they will start liking my vid SE and you.
    They will start loving you as some kind of a free affiliate. This way, you earn money using others' vids without copyright infringement. Make money off others' works. And they earn free traffic off your works (KWs thinkups).
    You will start making a name for yourself on my vid SE. A new career. As some kind of SEO man. Then one day you will get tonnes of people begging you to high rank their vids. You will now be in a position to start charging them for your new service.
    Just one way my vid SE brings bad ranking vid publishers and people like you together and earn everyone money. Kill 3 birds with 1 stone.
    Now, you will become a fan of my vid SE.
    Even youtube would start becoming a fan of my vid SE. Why would not they ? After-all, my vid SE is sending them traffic to vids that are getting no traffic in their own youtube network.
    Youtube might even start hiring you or employing you one day. I hope they don't though. As I am not building platforms for slaves buying & selling. Wage slaves. You are better off as a freelancer.
    Ofcourse, others will copy my ideas but they do not have the super brains of UI man as UI man has other ideas up his/her sleeves.
    At the end, you will become fan of UI man. When UI man launches a new project, you will be the first one to ask him/her about it. Right Cato ?
    Last edited by UniqueIdeaMan; June 27th, 2018 at 06:34 AM.
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,459
    Rep Power
    653
    Good luck getting advertisers with that. Assuming, of course, you are even capable of getting anything to work.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2017
    Posts
    845
    Rep Power
    0
    Originally Posted by gw1500se
    Good luck getting advertisers with that. Assuming, of course, you are even capable of getting anything to work.
    No need for me to look for advertisers. The ad networks would provide the advertisers when I signup to them as a publisher. A long list of advertisers already exist.
    One thing you and Catacaustic do not understand is that I do not need to run my own ad network. I just signup to existing ones and get the affiliate links and place them on my network (searchengine, meta engine, web proxy, vpn, web browser, etc.).
    I already placed the advertiser links on my web browser back in 2016.
    If you and Catacuastic can understand that then you guys would be jumping at this opportunity by now. It is my good fortune that you people do not understand it. Therefore, do not believe in it. I, destined to launch first. You guys can be copycats afterwards.
    Last edited by UniqueIdeaMan; June 27th, 2018 at 06:38 AM.
  14. #8
  15. Impoverished Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,817
    Rep Power
    9646
    You may use the YouTube API to find videos that are relevant to search terms and to present a couple of them on a page which consists primarily of non-YouTube search results. Presenting too many videos and/or not enough regular search results is not allowed.
  16. #9
  17. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,416
    Rep Power
    2105
    Originally Posted by UniqueIdeaMan
    After the ads have been viewed and you have earned ppc $
    Isn't PPC "Pay Per Click" meaning that you don't earn anything until the ads are clicked on? That doesn't guarantee me any income whatsoever. Even the bigger YouTube video bloggers are just scraping by on what they earn - and that's with all of Googles resources behind it. And you can do better then them with just you?

    Originally Posted by UniqueIdeaMan
    And embedded links do not have limits in place. Now, do they ?
    I'd take that bet.

    I'm 100% sure that YouTube monitors and reports on sites that embed their videos. Woudln't you if you were them? Embedding videos from your own playlists and accounts is OK, but start embedding 1,000's of videos from all over and it will flag your site. If you're lucky they'll realise and monitor it for a while. If you're not lucky they'll block your access, and everything you've done will be lost.

    Originally Posted by UniqueIdeaMan
    You'd be able to list any vids from youtube, vimeo, metacafe, etc. Why should I restrict my vid SE to youtube only ?
    This is true, and something that I fully agree with you on.

    Originally Posted by UniqueIdeaMan
    Now Catacaustic, how-about that ? You now starting to believe I am like Neo (from Matrix) who will get the system down (all the big internet guys) with my own UNIQUE WAYS & PATHS ? Are you now a convert like Morpheus ?
    Not even close! All you're doing is piggybacking off other peoples work, and if you do get as successful as you hope to be, you'll break those other services and shut them down, meaning that your systems will also shut down becuase you can't abuse them any more.

    But... I still don't believe that your plan will work as well as you think. I don't think that it will fail, but I don't see it catching on in a big way.


    Originally Posted by UniqueIdeaMan
    When youtube vid publishers see that their KWs are crap and they're getting no views on youtube but getting views via my vid SE thanks to your KWs, they will start liking my vid SE and you.
    And then YouTube will block you for leeching all of their bandwidth and resources for your own profit without you giving anything back to them.

    Originally Posted by UniqueIdeaMan
    You will start making a name for yourself on my vid SE. A new career. As some kind of SEO man. Then one day you will get tonnes of people begging you to high rank their vids. You will now be in a position to start charging them for your new service.
    If that actually does happen you'll never win. People will epxect high rankings, but you can't give high rankings to everyone. It still needs to be figured out by an algorythm, and getting that right is the key. Google (and YouTube) spend millions on that every year. How are you going to manage that alone? And how are you going to manage all the complaints by everyone that signed up to your service that's not getting good rankings?

    Originally Posted by UniqueIdeaMan
    Even youtube would start becoming a fan of my vid SE. Why would not they ? After-all, my vid SE is sending them traffic to vids that are getting no traffic in their own youtube network.
    Because they aren't making ad revenue out of it, so what's in it for them? Why should they let you use their resources for free?

    Originally Posted by UniqueIdeaMan
    At the end, you will become fan of UI man. When UI man launches a new project, you will be the first one to ask him/her about it. Right Cato ?
    Maybe. As I've said all along, I won't commit to anything until I actually see the system working for a while to see what it actually does. Show me something that works, and then let me decide. Don't try and force anyone into anything now. No one here believes in marketing speak and promises. We all believe in results. So show us some results, and we'll listen.

    Originally Posted by UniqueIdeaMan
    One thing you and Catacaustic do not understand is that I do not need to run my own ad network. I just signup to existing ones and get the affiliate links and place them on my network (searchengine, meta engine, web proxy, vpn, web browser, etc.).
    That's got absolutely nothing to do with anything that I, or anyoneeose, has ever said.One thing you and Catacaustic do not understand is that I do not need to run my own ad network. I just signup to existing ones and get the affiliate links and place them on my network (searchengine, meta engine, web proxy, vpn, web browser, etc.).
  18. #10
  19. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2017
    Location
    Worldwide
    Posts
    47
    Rep Power
    45
  20. #11
  21. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2017
    Posts
    845
    Rep Power
    0
    Originally Posted by benanamen
    So, you managed to take a pic of me. Did yaa ?
  22. #12
  23. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2017
    Posts
    845
    Rep Power
    0
    Originally Posted by Catacaustic
    Isn't PPC "Pay Per Click" meaning that you don't earn anything until the ads are clicked on? That doesn't guarantee me any income whatsoever. Even the bigger YouTube video bloggers are just scraping by on what they earn - and that's with all of Googles resources behind it. And you can do better then them with just you?



    I'd take that bet.

    I'm 100% sure that YouTube monitors and reports on sites that embed their videos. Woudln't you if you were them? Embedding videos from your own playlists and accounts is OK, but start embedding 1,000's of videos from all over and it will flag your site. If you're lucky they'll realise and monitor it for a while. If you're not lucky they'll block your access, and everything you've done will be lost.



    This is true, and something that I fully agree with you on.



    Not even close! All you're doing is piggybacking off other peoples work, and if you do get as successful as you hope to be, you'll break those other services and shut them down, meaning that your systems will also shut down becuase you can't abuse them any more.

    But... I still don't believe that your plan will work as well as you think. I don't think that it will fail, but I don't see it catching on in a big way.




    And then YouTube will block you for leeching all of their bandwidth and resources for your own profit without you giving anything back to them.



    If that actually does happen you'll never win. People will epxect high rankings, but you can't give high rankings to everyone. It still needs to be figured out by an algorythm, and getting that right is the key. Google (and YouTube) spend millions on that every year. How are you going to manage that alone? And how are you going to manage all the complaints by everyone that signed up to your service that's not getting good rankings?



    Because they aren't making ad revenue out of it, so what's in it for them? Why should they let you use their resources for free?



    Maybe. As I've said all along, I won't commit to anything until I actually see the system working for a while to see what it actually does. Show me something that works, and then let me decide. Don't try and force anyone into anything now. No one here believes in marketing speak and promises. We all believe in results. So show us some results, and we'll listen.



    That's got absolutely nothing to do with anything that I, or anyoneeose, has ever said.One thing you and Catacaustic do not understand is that I do not need to run my own ad network. I just signup to existing ones and get the affiliate links and place them on my network (searchengine, meta engine, web proxy, vpn, web browser, etc.).
    Oh man Cato! Again you have gone right off the rails! I explain one thing to you and you just go and understand the opposite.
    Do yourself a favour.
    STEP 1: Find some youtube vids you like which you think others will like too.
    STEP 2: Check their rankings on youtube. If their rankings are bad then that means they have not used good KWs to list their vids. make a note of their embedded links.
    STEP 3: Now, imagine you went to my video searchengine. Now, list the embedded links on my SE. List with highly sought KWs. You may use google KW tool for that.
    STEP 4: Signup to the ad networks I tell you to. Insert their api on your settings page (on my SE). That way, the youtube embedded links will be converted to monetized links (leading to doorway pages).

    Now, when my SE users search your KWs, your promoted EMBEDDED links videos would be presented. But the original links won't be presented. Doorway pages links would be presented.
    When my SE users click those doorway pages you would earn $/click as they will see ads on the doorway pages.
    Then, they will need to click a button to be redirected to the original youtube video url.
    Now the youtube vid will play showing youtube ad and the youtube vid publisher and youtube would earn money from the clicks.

    So first the viewers see doorway pages and ads on doorway pages earn you money.
    Then they see a NExT or so button which they must click to get out of the doorway page to the original youtube vid. There they see youtube ad and youtube and the vid publisher earns money. Now youtube and vid publisher happy my SE sending them traffic.
    Why should youtube ban my ip ? I sending them traffic and earning them money.
    If after this you do not understand then go and ask requinix what I am talking about. It is very plain what i just hinted and if you still do not understand then go and google for modern ad networks.
  24. #13
  25. Impoverished Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,817
    Rep Power
    9646
    As I read the YouTube Terms of Service, that would not be allowed: you can't set up advertising on videos, and you can't do anything to block how the embedded player works.

    And that makes me happy.
  26. #14
  27. No Profile Picture
    Contributing User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,459
    Rep Power
    653
    I didn't think he would read and understand the TOS as I advised. No surprise there.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  28. #15
  29. Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2006
    Posts
    2,674
    Rep Power
    1841
    When my SE users click those doorway pages you would earn $/click as they will see ads on the doorway pages.
    So they click a link in something you provide and they get paid. By whom? Thus far all I see is them and you and I doubt they'd be paying themselves.
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc
Page 1 of 2 12 Last
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo