Response Structure
Understanding the response format of the Catalog API
This guide explains the structure of responses from the Catalog API. All successful API calls return responses with a consistent format to make integration straightforward for your AI shopping agents.
Success Response Format
When your API request is successful, you’ll receive a 200 OK
response with a JSON body containing:
The products
Array
The products
array contains a list of product objects matching your search and filter criteria. Each product has a comprehensive structure with flattened attributes:
Product Object Fields
Unique identifier for the product
Product title or name
Detailed product description
Brand or vendor name
URL to the product detail page
Whether the product is currently available
URL to the main product image
Flattened product attributes using dot notation. Common attributes include:
Unix timestamp when the product was created
Unix timestamp when the product was last updated
Currency code for the product’s price (e.g., “USD”)
Display price for the product
Numeric value of the product price
Array of boolean values indicating if each size variant is in stock
Array of price values for each variant
Array of available size options
Array of titles for each variant
The meta
Object
The meta
object contains metadata about the results:
Total number of products matching the search and filter criteria across all pages. Note: This value is capped at 50 regardless of the actual total.
Total number of pages available based on totalItems
and pageSize
.
The current page number (matches the page
parameter from the request).
Number of items per page.
Empty Results
If your query doesn’t match any products, you’ll still get a successful response (200 OK
), but with an empty products array:
Error Responses
When an error occurs, the API returns an appropriate HTTP status code and a JSON body with error details:
Authentication Error (401 Unauthorized)
Validation Error (400 Bad Request)
Rate Limiting Error (429 Too Many Requests)
Server Error (500 Internal Server Error)
Working with Responses
Handling Pagination
Use the meta
object to implement pagination controls:
Displaying Products
The flattened structure makes it straightforward to display product information:
Related Guides
- Request Structure - How to structure API requests
- Pagination - Detailed information on pagination
- Examples - Code examples for processing API responses