Search php on external site!

Asked

Viewed 363 times

0

I am starting a project of a site whose need to perform keyword searches and get the results, the site will look like the youtube, would like to know if it is possible from a textboxin my form I send information to the youtube, and recover the result and show on this site the videos(links) results of the search do not know much of php, more I’ve seen that google provides a ready internal search system for website, where register and their script look for internal results If it is possible to do this (search on external site) if they can give me the "push" I solve the rest.

  • why question pending? I accepted the answer of Rebelox, I already started the project, I made a test with the api php-youtube-api and it seems to do what I need.

1 answer

1


There are several Apis that allow you to obtain content from websites, such as simpleHTMLDom.

But your question is based on a site that contains its own API (Youtube Data API) with this API you can get all the data you want, including the search result.

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

I must say that these two Apis (Youtube Data API and the PHP-Youtube-API) need a key, obtained through the Google Developers Console, this is all documented in Youtube Data API Guide.

  • thank you very much @Rebelox! everything I needed to know, hug.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.