2022-02-17 17:14:56 -03:00
|
|
|
<?php
|
|
|
|
header('Content-Type: application/json');
|
|
|
|
|
2022-02-19 17:40:56 -03:00
|
|
|
require "google.php";
|
2022-02-17 17:14:56 -03:00
|
|
|
|
|
|
|
$query = $_REQUEST["q"];
|
|
|
|
$page = (int) $_REQUEST["p"] * 10;
|
2022-02-19 17:40:56 -03:00
|
|
|
$type = (int) $_REQUEST["type"];
|
2022-02-17 17:14:56 -03:00
|
|
|
|
2022-02-19 17:40:56 -03:00
|
|
|
$results = get_google_results($query, $page, $type);
|
2022-02-17 17:14:56 -03:00
|
|
|
|
2022-02-21 18:00:59 -03:00
|
|
|
echo json_encode($results, JSON_PRETTY_PRINT);
|
2022-02-17 17:14:56 -03:00
|
|
|
?>
|