Documentation Index
Fetch the complete documentation index at: https://docs.cloro.dev/llms.txt
Use this file to discover all available pages before exploring further.
This section documents the shopping cards data returned by the Perplexity endpoint. Shopping cards are part of the Perplexity response, so no separate API call is needed.
Example request
Shopping cards are intent-detected by Perplexity. Send a prompt that expresses shopping intent (for example, asking for product recommendations or where to buy). No flag is required.
{
"prompt": "best running shoes under $150",
"country": "US"
}
This produces a response containing the shopping_cards array documented below.
Overview
Perplexity automatically detects shopping-intent queries and returns structured shopping cards with product listings, pricing, ratings, and offers.
| Field | Type | Description |
|---|
result.shopping_cards | array | Shopping product cards with detailed product information |
Each shopping card contains:
| Field | Type | Description |
|---|
products | array | Array of product objects |
tags | array | Optional category tags |
Product structure
Each product object includes:
| Field | Type | Description |
|---|
title | string | Product name |
url | string | Product page URL |
description | string | Product description |
price | string | Current price |
original_price | string | Original price before discount |
rating | number | Product rating (0-5) |
numReviews | number | Number of reviews |
imageUrls | array | Product image URLs |
merchant | string | Merchant name |
id | any | Product identifier |
variants | array | Product variants (size, color, etc.) |
offers | array | Shopping offers with pricing details |
Response example
{
"success": true,
"result": {
"text": "Here are several running shoes under $150...",
"shopping_cards": [
{
"tags": ["running", "athletic"],
"products": [
{
"title": "Nike Pegasus 41",
"url": "https://www.nike.com/t/pegasus-41",
"description": "Responsive cushioning for daily training runs.",
"price": "$140.00",
"original_price": null,
"rating": 4.6,
"numReviews": 1284,
"imageUrls": [
"https://static.nike.com/pegasus-41.jpg"
],
"merchant": "Nike",
"id": "nike-pegasus-41",
"variants": [],
"offers": [
{
"merchant": "Nike",
"price": "$140.00",
"url": "https://www.nike.com/t/pegasus-41"
}
]
}
]
}
]
}
}