Shopping search
import requests
url = "https://api.parallel.ai/v1/shopping/search"
payload = { "search_queries": ["Sony WH-1000XM5"] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({search_queries: ['Sony WH-1000XM5']})
};
fetch('https://api.parallel.ai/v1/shopping/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.parallel.ai/v1/shopping/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"search_queries": [
"Sony WH-1000XM5"
]
}
'{
"search_id": "<string>",
"session_id": "session_8a911eb27c7a4afaa20d0d9dc98d07c0",
"results": [
{
"url": "<string>",
"title": "<string>",
"description": "<string>",
"merchant": "<string>",
"brand": "<string>",
"price": 123,
"currency": "<string>",
"original_price": 123,
"rating": 123,
"review_count": 123,
"image_url": "<string>",
"condition": "new",
"availability": "in_stock",
"offers": [
{
"url": "<string>",
"merchant": "<string>",
"price": 123,
"currency": "<string>"
}
]
}
],
"warnings": [
{
"type": "spec_validation_warning",
"message": "<string>",
"detail": {}
}
],
"usage": [
{
"name": "sku_search",
"count": 1
}
]
}{
"type": "error",
"error": {
"ref_id": "search_fcb2b4f3c75e418687bccaa1a8381331",
"message": "Request validation error"
}
}Search
Shopping search
Shopping search for products to buy, each linked to a store’s product page.
POST
/
v1
/
shopping
/
search
Shopping search
import requests
url = "https://api.parallel.ai/v1/shopping/search"
payload = { "search_queries": ["Sony WH-1000XM5"] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({search_queries: ['Sony WH-1000XM5']})
};
fetch('https://api.parallel.ai/v1/shopping/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.parallel.ai/v1/shopping/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"search_queries": [
"Sony WH-1000XM5"
]
}
'{
"search_id": "<string>",
"session_id": "session_8a911eb27c7a4afaa20d0d9dc98d07c0",
"results": [
{
"url": "<string>",
"title": "<string>",
"description": "<string>",
"merchant": "<string>",
"brand": "<string>",
"price": 123,
"currency": "<string>",
"original_price": 123,
"rating": 123,
"review_count": 123,
"image_url": "<string>",
"condition": "new",
"availability": "in_stock",
"offers": [
{
"url": "<string>",
"merchant": "<string>",
"price": 123,
"currency": "<string>"
}
]
}
],
"warnings": [
{
"type": "spec_validation_warning",
"message": "<string>",
"detail": {}
}
],
"usage": [
{
"name": "sku_search",
"count": 1
}
]
}{
"type": "error",
"error": {
"ref_id": "search_fcb2b4f3c75e418687bccaa1a8381331",
"message": "Request validation error"
}
}Body
application/json
Shopping search request: products to buy, each linked to a store's page.
Keyword product queries, such as a model name or a product type with its attributes. At least one query is required, and at most 5, each at most 200 characters.
Maximum array length:
5Maximum string length:
200Examples:
["Sony WH-1000XM5"]
["waterproof hiking boots women"]
Response
Successful Response
Shopping search response.