Shopping Search
Search Shopping details across various platforms.
cURL 'https://api.enrich.so/v1/api/shopping?query=Jacket&page_size=5&page=1' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'
const axios = require('axios');
axios.get('https://api.enrich.so/v1/api/shopping?query=Jacket&page_size=5&page=1', {
headers: {accept: 'application/json', Authorization: 'Bearer <token>'}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});// Some code
import requests
payload = {'query': 'Jacket', 'page_size': 5, 'page': 1}
headers = {'accept': 'application/json', 'authorization': 'Bearer <token>'}
resp = requests.get('https://api.enrich.so/v1/api/shopping', params=payload, headers=headers)
print (resp.text)
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.enrich.so/v1/api/shopping?query=Jacket&page_size=5&page=1")
.get()
.addHeader("accept", "application/json")
.addHeader("authorization", "Bearer <token>")
.build();
Response response = client.newCall(request).execute();
require 'uri'
require 'net/http'
url = URI("https://api.enrich.so/v1/api/shopping?query=Jacket&page_size=5&page=1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enrich.so/v1/api/shopping?query=Jacket&page_size=5&page=1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept: application/json",
"authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
Example response
Status code: 200 OK
{
"request_parameters" : {
"query" : "Jacket",
"type" : "shopping",
"page_size" : 5,
"current_page" : 1,
"engine" : "google"
},
"shopping_items" : [
{
"title" : "Patagonia Men's R2 TechFace Jacket Pine Needle Green / XXL",
"source" : "evo.com",
"link" : "https://www.evo.com/fleece/patagonia-r2-techface-jacket?image=241376/1109991/patagonia-r2-techface-jacket-men-s-.jpg&srsltid=AfmBOoplmWp-WSZMReBH57UaStXBCfkFwcMjpE7FMnlgsQrHZQjHj5X9bPQ",
"price" : "$199.00",
"delivery" : "Free shipping",
"imageUrl" : "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcRxjmOutVCT_VWyU0qWqUQN4V6B6b81CWof-PRLi3EPsRycnjt8eNi2fSs&usqp=CAE",
"position" : 1
},
{
"title" : "The North Face 1996 Retro Nuptse Jacket - Women's",
"source" : "Dillard's",
"link" : "https://www.dillards.com/p/the-north-face-1996-retro-nuptse-down-puffer-jacket/513055765?sku=2674493&googleShop=Y&srsltid=AfmBOopwQtYyv6mUEozAEZb14hfTbTVLHRs_xzNb6CmTRZkdXkIcLm_JiIE",
"price" : "$330.00",
"delivery" : "Free shipping",
"imageUrl" : "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcQlmy2hsJsSyplLlnMgxEACs3EXdsDtx5UxF4YZnFXRoyrp7u-gBMzSkMsgZUkIaKjmKseT&usqp=CAE",
"position" : 2
},
{
"title" : "Carhartt Men's Tall Gravel Quilted Flannel Lined Duck Active Jacket",
"source" : "Sierra",
"link" : "https://www.sierra.com/item~p~5RMWC-01-L-T/?utm_source=Google&utm_medium=OrganicShopping&utm_campaign=GoogleShopping&cid=Sierra:OrgShoppingFeeds:GOOGLE:NA:NA",
"price" : "$69.99",
"delivery" : "$9.99 shipping",
"imageUrl" : "https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcRYayCRnUgsJzQOyHPpfcKZG50kom6zJu2gMq4WzY341cuZ5UaWyK31490&usqp=CAE",
"position" : 3
},
{
"title" : "Patagonia Down Sweater Hoody - Black - S - Men",
"source" : "Buckman's Ski and Snowboard Shop",
"link" : "https://buckmans.com/product/46125/patagonia-down-sweater-hoody-mens?bbfid=E503E784-714B-4871-B873-5D61D532D3FA&sku=446668&srsltid=AfmBOopgOP5ORgIPKSZmbnIxtoRMneQqKw8JTp9dPwZVIgztNu9KRRfnu4Q",
"price" : "$263.20",
"delivery" : "Free shipping",
"imageUrl" : "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcTjbA19IxQlLTvxlhFZFPX4rbocCK8CkCub7xXsfTHWiB1jVLgetompeCs&usqp=CAE",
"position" : 4
},
{
"title" : "Patagonia Torrentshell 3L Jacket - Nouveau Green - S - Men",
"source" : "Tactics",
"link" : "https://www.tactics.com/patagonia/torrentshell-3l-jacket/nouveau-green?srsltid=AfmBOorbttNaCioxTAKrrx2-_7misYJY6hKls-3OWL6i4lOCRpl7simAwwM",
"price" : "$179.00",
"delivery" : "Free shipping",
"imageUrl" : "https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcR3Ik7g9z5hUHiawbJs-QOvLAlNwdt0XM1DGg36HMh_sUMUrbtaneUTtOo&usqp=CAE",
"position" : 5
}
],
"total_credits" : 33000,
"credits_used" : 12854.7,
"credits_remaining" : 20145.3
}
Last updated