JSON Response
API Example
curl "https://api.scrapingdog.com/google/?api_key=5eaa61a6e562fc52fe763tr516e4653&query=football&results=10&country=us&page=0"
import requests
api_key = "5eaa61a6e562fc52fe763tr516e4653"
url = "https://api.scrapingdog.com/google/"
params = {
"api_key": api_key,
"query": "football",
"results": 10,
"country": "us",
"page": 0
}
response = requests.get(url, params=params)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Request failed with status code: {response.status_code}")
const axios = require('axios');
const api_key = '5eaa61a6e562fc52fe763tr516e4653';
const url = 'https://api.scrapingdog.com/google/';
const params = {
api_key: api_key,
query: 'football',
results: 10,
country: 'us',
page: 0,
};
axios
.get(url, { params: params })
.then(function (response) {
if (response.status === 200) {
const data = response.data;
console.log(data)
} else {
console.log('Request failed with status code: ' + response.status);
}
})
.catch(function (error) {
console.error('Error making the request: ' + error.message);
});
<?php
// Set the API key and request parameters
$api_key = '5eaa61a6e562fc52fe763tr516e4653';
$query = 'football';
$results = 10;
$country = 'us';
$page = 0;
// Set the API endpoint
$url = 'https://api.scrapingdog.com/google/?api_key=' . $api_key . '&query=' . $query . '&results=' . $results . '&country=' . $country . '&page=' . $page;
// Initialize cURL session
$ch = curl_init($url);
// Set cURL options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Execute the cURL request
$response = curl_exec($ch);
// Check if the request was successful
if ($response === false) {
echo 'cURL error: ' . curl_error($ch);
} else {
// Process the response data as needed
echo $response;
}
// Close the cURL session
curl_close($ch);
require 'net/http'
require 'uri'
# Set the API key and request parameters
api_key = '5eaa61a6e562fc52fe763tr516e4653'
query = 'football'
results = 10
country = 'us'
page = 0
# Construct the API endpoint URL
url = URI.parse("https://api.scrapingdog.com/google/?api_key=#{api_key}&query=#{query}&results=#{results}&country=#{country}&page=#{page}")
# Create an HTTP GET request
request = Net::HTTP::Get.new(url)
# Create an HTTP client
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true # Enable SSL (https)
# Send the request and get the response
response = http.request(request)
# Check if the request was successful
if response.is_a?(Net::HTTPSuccess)
puts response.body # Process the response data as needed
else
puts "HTTP request failed with code: #{response.code}, message: #{response.message}"
end
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.io.IOException;
public class Main {
public static void main(String[] args) {
try {
// Set the API key and request parameters
String apiKey = "5eaa61a6e562fc52fe763tr516e4653";
String query = "football";
int results = 10;
String country = "us";
int page = 0;
// Construct the API endpoint URL
String apiUrl = "https://api.scrapingdog.com/google/?api_key=" + apiKey
+ "&query=" + query
+ "&results=" + results
+ "&country=" + country
+ "&page=" + page;
// Create a URL object from the API URL string
URL url = new URL(apiUrl);
// Open a connection to the URL
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
// Set the request method to GET
connection.setRequestMethod("GET");
// Get the response code
int responseCode = connection.getResponseCode();
if (responseCode == 200) {
// Read the response from the connection
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String inputLine;
StringBuilder response = new StringBuilder();
while ((inputLine = reader.readLine()) != null) {
response.append(inputLine);
}
reader.close();
// Process the response data as needed
System.out.println(response.toString());
} else {
System.out.println("HTTP request failed with response code: " + responseCode);
}
// Close the connection
connection.disconnect();
} catch (IOException e) {
e.printStackTrace();
}
}
}
Response
{
"organic_data": [
{
"description": "Discover classic & new menu items, find deals and enjoy seamless ordering for delivery and carryout. No One OutPizzas the Hut®.",
"synopsis": null,
"title": "Pizza Hut | Delivery & Carryout - No One OutPizzas The Hut!",
"link": "https://www.pizzahut.com/",
"position": 1
},
{
"description": "Order pizza, pasta, sandwiches & more online for carryout or delivery from Domino's. View menu, find locations, track orders. Sign up for Domino's email ...",
"synopsis": null,
"title": "Domino's: Pizza Delivery & Carryout, Pasta, Chicken & More",
"link": "https://www.dominos.com/en/",
"position": 2
},
{
"description": "Enjoy the ease of ordering delicious pizza for delivery or carryout from a Papa Johns near you. Start tracking the speed of your delivery and earn rewards ...",
"synopsis": null,
"title": "Papa Johns Pizza Delivery & Carryout - Best Deals on Pizza ...",
"link": "https://www.papajohns.com/",
"position": 3
},
{
"description": "Pizza is a dish of Italian origin consisting of a usually round, flat base of leavened wheat-based dough topped with tomatoes, cheese, and often various ...",
"synopsis": null,
"title": "Pizza",
"link": "https://en.wikipedia.org/wiki/Pizza",
"position": 4
},
{
"description": "Your home for HOT-N-READY® pizzas, EXTRAMOSTBESTEST® pizzas, DEEP!DEEP!™ Dish pizzas, Crazy Bread® and MORE! Order online for no-contact delivery or ...",
"synopsis": null,
"title": "Little Caesars® Pizza: Best Value Delivery and Carryout",
"link": "https://littlecaesars.com/",
"position": 5
},
{
"description": "Enjoy authentic Italian quality pizza. Dough made fresh every day. Sauce from the original Giammarco recipe. Order online for delivery or carry-out.",
"synopsis": null,
"title": "Marco's Pizza",
"link": "https://www.marcos.com/",
"position": 6
},
{
"description": "Get fired up with Fast-Fire'd Pizzas from Blaze! Made just the way you want. Order online for delivery or pickup.",
"synopsis": null,
"title": "Blaze Pizza - Fast-Fire'd Pizzas - Order Online | Blaze Pizza",
"link": "https://www.blazepizza.com/",
"position": 7
},
{
"description": "Jul 28, 2023 — Win pizza night with easy recipes for pizza, from classic cheese to gluten-free and everything in between. These recipes from Food Network ...",
"synopsis": null,
"title": "Same Day New York Pizza Recipe | Kenji's Cooking Show",
"link": "https://www.youtube.com/watch?v=uXkT8LbCPOY",
"position": 8
},
{
"description": "W. e combine the centuries-old traditions of Italian cooking with California's fresh, artisanal ingredients, creating a unique style of pizzeria in a class of ...",
"synopsis": null,
"title": "32 Pizza Recipes Everyone Will Devour",
"link": "https://www.foodnetwork.com/recipes/photos/top-pizza-recipes",
"position": 9
},
{
"description": "",
"synopsis": null,
"title": "Pizza Antica",
"link": "http://www.pizzaantica.com/",
"position": 10
}
]
}
Last updated