Google Shopping
Google Shopping: Search
Search from Google Shopping. Costs 1 credit per successful call.
GET
https://api.perceptlayer.com
/
v1
/
google-shopping
/
search
Search
curl --request GET \
--url https://api.perceptlayer.com/v1/google-shopping/search \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.perceptlayer.com/v1/google-shopping/search"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.perceptlayer.com/v1/google-shopping/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.perceptlayer.com/v1/google-shopping/search';
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.perceptlayer.com/v1/google-shopping/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.perceptlayer.com/v1/google-shopping/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.perceptlayer.com/v1/google-shopping/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.get("https://api.perceptlayer.com/v1/google-shopping/search")
.header("X-API-Key", "<api-key>")
.asString();{
"endpoint": "google-shopping.search",
"params": {
"q": "iphone 15",
"gl": "us",
"hl": "en"
},
"response": {
"search_parameters": {
"q": "iphone 15",
"gl": "us",
"hl": "en",
"start": 0,
"device": "desktop"
},
"shopping_results": [
{
"position": 1,
"category": "Popular products",
"title": "Apple iPhone 15",
"source": "Walmart - Wireless Source",
"rating": 4.7,
"reviews": 45000,
"extensions": [
"Â & more"
],
"product_token": "eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDI2MzYwNjAxNzQxMTU2NTk5MiIsImNhdGFsb2dpZCI6IjQwNjgzNTQwNDI3OTIyNjkzOCIsImhlYWRsaW5lT2ZmZXJEb2NpZCI6IjkwMTI3NzUzOTM1NjQzMzc3MzIiLCJpbWFnZURvY2lkIjoiMTE1NjE0NTY3NjY5MDA5Mzc3NTMiLCJyZHMiOiIiLCJncGNpZCI6IjY2…",
"rank_absolute": 1,
"product_id": "4263606017411565992",
"link": "https://www.google.com/shopping/product/4263606017411565992",
"price": "$393.73",
"extracted_price": 393.73,
"thumbnail": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
},
{
"position": 2,
"category": "Popular products",
"title": "Apple iPhone 15 128GB",
"source": "Best Buy",
"rating": 4.4,
"reviews": 94,
"extensions": [
"Â & more"
],
"product_token": "eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDM3OTAzMjYyMzYzODUyOTYzMSIsImNhdGFsb2dpZCI6Ijk0MDI2NTQ2OTYyNDQ5MzAwNzMiLCJoZWFkbGluZU9mZmVyRG9jaWQiOiIxODA3MzUyNjA3OTAxNzkzNzQ3MyIsImltYWdlRG9jaWQiOiI2MDIzMDEzODcyOTA3MTc0NDMiLCJyZHMiOiIiLCJncGNpZCI6IjQx…",
"rank_absolute": 1,
"product_id": "4379032623638529631",
"link": "https://www.google.com/shopping/product/4379032623638529631",
"price": "$441.00",
"extracted_price": 441,
"thumbnail": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
},
{
"position": 3,
"category": "Popular products",
"title": "Apple iPhone 15 - Black - 128GB (with 36 monthly payments + plan)",
"source": "T-Mobile",
"rating": 4.7,
"reviews": 45000,
"rank_absolute": 1,
"product_id": "8345423428288821281",
"link": "https://www.google.com/shopping/product/8345423428288821281",
"price": "$17.50/mo",
"extracted_price": 17.5,
"thumbnail": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
}
],
"pagination": {
"current_page": 1,
"start": 0,
"next_start": 10
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}1 credit per successful call; failed calls are free. See the Google Shopping API overview for every Google Shopping endpoint.
Authorizations
Query Parameters
Maximum string length:
500Maximum string length:
2Maximum string length:
2Maximum string length:
63Maximum string length:
500Available options:
desktop, mobile, tablet Maximum string length:
2000Was this page helpful?
⌘I
Search
curl --request GET \
--url https://api.perceptlayer.com/v1/google-shopping/search \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.perceptlayer.com/v1/google-shopping/search"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.perceptlayer.com/v1/google-shopping/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.perceptlayer.com/v1/google-shopping/search';
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.perceptlayer.com/v1/google-shopping/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.perceptlayer.com/v1/google-shopping/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.perceptlayer.com/v1/google-shopping/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.get("https://api.perceptlayer.com/v1/google-shopping/search")
.header("X-API-Key", "<api-key>")
.asString();{
"endpoint": "google-shopping.search",
"params": {
"q": "iphone 15",
"gl": "us",
"hl": "en"
},
"response": {
"search_parameters": {
"q": "iphone 15",
"gl": "us",
"hl": "en",
"start": 0,
"device": "desktop"
},
"shopping_results": [
{
"position": 1,
"category": "Popular products",
"title": "Apple iPhone 15",
"source": "Walmart - Wireless Source",
"rating": 4.7,
"reviews": 45000,
"extensions": [
"Â & more"
],
"product_token": "eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDI2MzYwNjAxNzQxMTU2NTk5MiIsImNhdGFsb2dpZCI6IjQwNjgzNTQwNDI3OTIyNjkzOCIsImhlYWRsaW5lT2ZmZXJEb2NpZCI6IjkwMTI3NzUzOTM1NjQzMzc3MzIiLCJpbWFnZURvY2lkIjoiMTE1NjE0NTY3NjY5MDA5Mzc3NTMiLCJyZHMiOiIiLCJncGNpZCI6IjY2…",
"rank_absolute": 1,
"product_id": "4263606017411565992",
"link": "https://www.google.com/shopping/product/4263606017411565992",
"price": "$393.73",
"extracted_price": 393.73,
"thumbnail": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
},
{
"position": 2,
"category": "Popular products",
"title": "Apple iPhone 15 128GB",
"source": "Best Buy",
"rating": 4.4,
"reviews": 94,
"extensions": [
"Â & more"
],
"product_token": "eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDM3OTAzMjYyMzYzODUyOTYzMSIsImNhdGFsb2dpZCI6Ijk0MDI2NTQ2OTYyNDQ5MzAwNzMiLCJoZWFkbGluZU9mZmVyRG9jaWQiOiIxODA3MzUyNjA3OTAxNzkzNzQ3MyIsImltYWdlRG9jaWQiOiI2MDIzMDEzODcyOTA3MTc0NDMiLCJyZHMiOiIiLCJncGNpZCI6IjQx…",
"rank_absolute": 1,
"product_id": "4379032623638529631",
"link": "https://www.google.com/shopping/product/4379032623638529631",
"price": "$441.00",
"extracted_price": 441,
"thumbnail": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
},
{
"position": 3,
"category": "Popular products",
"title": "Apple iPhone 15 - Black - 128GB (with 36 monthly payments + plan)",
"source": "T-Mobile",
"rating": 4.7,
"reviews": 45000,
"rank_absolute": 1,
"product_id": "8345423428288821281",
"link": "https://www.google.com/shopping/product/8345423428288821281",
"price": "$17.50/mo",
"extracted_price": 17.5,
"thumbnail": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
}
],
"pagination": {
"current_page": 1,
"start": 0,
"next_start": 10
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}