Get Results
curl --request GET \
--url https://api.lobstr.io/v1/results \
--header 'Authorization: <authorization>'import requests
url = "https://api.lobstr.io/v1/results"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lobstr.io/v1/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lobstr.io/v1/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lobstr.io/v1/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lobstr.io/v1/results")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"title": "<string>",
"url": "<string>",
"displayed_url": "<string>",
"description": "<string>",
"snippet_segments": "<any>",
"question": "<string>",
"answer": "<string>",
"is_question_answer": true,
"is_related_query": true,
"is_organic": true,
"is_paid": true,
"total_results": "<string>",
"date": "<string>",
"emphasized_keywords": "<string>",
"page": 123
}Google Search Scraper
Get Results
Retrieve scraped data from Google Search Scraper
GET
/
v1
/
results
Get Results
curl --request GET \
--url https://api.lobstr.io/v1/results \
--header 'Authorization: <authorization>'import requests
url = "https://api.lobstr.io/v1/results"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lobstr.io/v1/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lobstr.io/v1/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lobstr.io/v1/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lobstr.io/v1/results")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"title": "<string>",
"url": "<string>",
"displayed_url": "<string>",
"description": "<string>",
"snippet_segments": "<any>",
"question": "<string>",
"answer": "<string>",
"is_question_answer": true,
"is_related_query": true,
"is_organic": true,
"is_paid": true,
"total_results": "<string>",
"date": "<string>",
"emphasized_keywords": "<string>",
"page": 123
}Retrieve scraped data from your Google Search Scraper runs.
Headers
string
required
Your API authentication token. Value:
Token YOUR_API_KEYQuery Parameters
string
required
Hash of the squid to get results from
string
Hash of a specific run (optional)
integer
Page number (default: 1). Example:
1Result Fields
Each result object contains the following fields:string
Title of the search result page. Example:
Coffeestring
URL of the search result. Example:
https://en.wikipedia.org/wiki/Coffeestring
URL as displayed in the Google search result (may differ from actual URL). Example:
https://en.wikipedia.org › wiki › Coffeestring
Meta description or snippet shown in the Google search result. Example:
Coffee is a beverage brewed from roasted, ground coffee beans. Darkly colored, bitter, and slightly acidic, coffee has a stimulating effect on humans, primarily ...json
Individual text segments of the Google search snippet
string
Question text from a People Also Ask entry. Example:
What is the 15-15-15 coffee rule?string
Answer text from a People Also Ask entry
boolean
Whether this result is a People Also Ask (Q&A) entry. Example:
falseboolean
Whether this result is a related search query suggestion. Example:
falseboolean
Whether this is an unpaid organic search result. Example:
trueboolean
Whether this is a paid advertisement in Google search results. Example:
falsestring
Total number of search results Google reports for the query. Example:
3190000000date
Publication or indexing date shown in the Google search result
string
Keywords Google highlights in the search snippet. Example:
coffeeinteger
Search results page number (1 = first page of results). Example:
1Response
200
{
"total_results": 1,
"limit": 50,
"page": 1,
"total_pages": 1,
"result_from": 1,
"result_to": 1,
"data": [
{
"id": 77331,
"object": "result",
"squid": "f6bcb5d88a53ddd90e0ea0944f0433ae",
"run": "bbdefdfc8d2f9c05bcbdd805c24c6cf6",
"title": "Coffee",
"url": "https://en.wikipedia.org/wiki/Coffee",
"displayed_url": "https://en.wikipedia.org › wiki › Coffee",
"description": "Coffee is a beverage brewed from roasted, ground coffee beans. Darkly colored, bitter, and slightly acidic, coffee has a stimulating effect on humans, primarily ...",
"snippet_segments": null,
"question": "What is the 15-15-15 coffee rule?",
"answer": null,
"is_question_answer": false,
"is_related_query": false,
"is_organic": true,
"is_paid": false,
"total_results": "3190000000",
"date": null,
"emphasized_keywords": "coffee",
"page": 1,
"functions": null,
"native_id": 77331
}
],
"next": null,
"previous": null
}