Skip to main content

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 inline products data returned by the Google AI Mode endpoint. Inline products are part of the AI Mode response — no separate API call is needed.

Example request

Inline products are intent-detected: send a prompt that surfaces individual product mentions in the AI response. No flag is required.
{
  "prompt": "what are the best wireless headphones for travel",
  "country": "US"
}
This produces a response containing the inline_products array documented below.

Overview

Inline product cards found within the AI response text. Unlike shopping cards — which group multiple products into a dedicated carousel — inline products are stand-alone product references embedded directly in the AI’s prose. Both arrays may coexist in a single response.
Inline products in AI Mode

Inline product structure

FieldTypeDescription
titlestringProduct title
priceobjectStructured pricing with value and currency
old_priceobjectOriginal price before discount (same shape as price)
storestringMerchant/store name
thumbnailstringProduct image URL
product_linkstringDirect product URL

price and old_price

FieldTypeDescription
valuenumberNumeric price
currencystringCurrency symbol

Response example

{
  "success": true,
  "result": {
    "text": "Based on expert reviews, here are the top wireless headphones for travel...",
    "inline_products": [
      {
        "title": "Sony WH-1000XM5",
        "price": {
          "value": 298.0,
          "currency": "$"
        },
        "old_price": {
          "value": 399.99,
          "currency": "$"
        },
        "store": "Amazon",
        "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=example",
        "product_link": "https://www.google.com/shopping/product/example"
      }
    ]
  }
}