Good evening how can I make an application that basically works like google, I want to type a keyword and receive results on, or pull data from google itself, which language and path should I use?
Good evening how can I make an application that basically works like google, I want to type a keyword and receive results on, or pull data from google itself, which language and path should I use?
You can use the link API so you can use it with "any language", as it works via HTTP request .
Reference: link
if (!empty($_GET['q'])) {
$busca = $_GET['q'];
$url = 'https://www.googleapis.com/customsearch/v1?key=<SUA CHAVE DA API>&cx=<SUA CHAVE CX>&q=' . rawurlencode($busca);
$body = file_get_contents($url);
$json = json_decode($body);
if ($json->items){
foreach ($json->items as $item){
print_r($item);
}
}
}
To generate the CX key go to this link: link
To generate the API key at this link: link
Please note that google provides 100 free consultations per day, for more queries you will have to see the paid plan that currently (April 27,2018) costs $ 5 (I believe in dollars) for every 1000 queries.
Paid Plan: link