php search on external site! [closed]

0

I'm starting a project for a website where I need to perform keyword searches and get the results, the site will look like youtube , I wonder if it's possible from a textbox in my form I send information to the youtube search system, and retrieve the result and show on that site the videos (links) search results do not know much about php , google provides an in-house site search system, where they register and their script search for internal results If it is possible to do this (external site search) if you can give me the "push" I will solve the rest.

    
asked by anonymous 28.06.2015 / 14:17

1 answer

1

There are a number of APIs that allow you to get website content, such as simpleHTMLDom .

But your question is based on a site that has its own API ( Youtube Data API ) With this API you can get whatever data you want, including search result .

You can also use php-youtube-api (can be found on GitHub) which, according to the author, was designed to make it easier for programmers to search for data on YouTube.

I have to say that these two Youtube Data API and PHP-Youtube-API ) require a key , obtained through of the Google Developers Console , this is all documented in the Youtube Data API tab .

    
28.06.2015 / 16:34