Catalog coverage · casper
Catalog coverage · casper
Search products from casper.com and retrieve product details as JSON through StoreRouter’s API. Access prices, images, descriptions, and available variant data, plus enriched attributes for filtering.
Snapshot from . Counts are approximate and refresh about daily.
Developer quickstart
export OCTOGEN_PLATFORM_API_KEY="your-api-key". Requests use Authorization: Bearer; the SDKs read this variable automatically. Keep the key on your server.curl -sS https://api.storerouter.ai/v1/products/search \ -H "Authorization: Bearer $OCTOGEN_PLATFORM_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "catalogs": ["casper"], "limit": 5 }'# Requires Python 3.11+ and uv; install from the public SDK repository:
# git clone https://github.com/octogen-ai/octogen-dev.git
# cd octogen-dev
# uv sync --project sdks/python
# Save this sample as search.py here, then run:
# uv run --project sdks/python python search.py
import asyncio
from octogen_ai_sdk import OctogenClient
async def main() -> None:
async with OctogenClient(base_url="https://api.storerouter.ai/v1") as client:
page = await client.search_products(
catalogs=["casper"],
limit=5,
)
for product in page.items:
print(product.title, product.current_price, product.product_url)
asyncio.run(main())// Node.js 20+; install: npm install @octogen-ai/sdk
// Save this sample as search.mjs, then run: node search.mjs
import { OctogenClient } from "@octogen-ai/sdk";
const client = new OctogenClient({ baseUrl: "https://api.storerouter.ai/v1" });
const page = await client.searchProducts({
catalogs: ["casper"],
limit: 5,
});
for (const product of page.items) {
console.log(product.title, product.currentPrice, product.productUrl);
}Indexed snapshot from this search, verified by URL lookup. Selected fields only; prices and availability may have changed since retrieval.
Casper
Casper
Casper
Search finds indexed products by query and filters within this retailer’s catalog.Product URL lookup retrieves one product: index_only uses the index and returns 404 on a miss; auto checks the index before resolving a miss on demand. For a fresh page read where supported, use resolutionMode: "on_demand_only" with onDemandCachePolicy: "refresh". On-demand results may be partial and do not guarantee live price or availability.
Example product response
Inspect a product from the search example above, then retrieve its details through the API.
Indexed response retrieved . Price and availability reflect this response and may change.

Casper
$109.00In stock
Sizes: Twin, Twin XL, Full, Queen, King, California King
Our percale weave is strong enough to last, but airy enough to keep you cool and asleep throughout the night.
Source product pageProduct content returned by the lookup API, ready for a product page.
JSON response excerpt
{
"source": "indexed",
"catalogKey": "casper",
"product": {
"title": "Percale Sheet Set",
"brand": {
"name": "Casper"
},
"productUrl": "https://casper.com/products/percale-sheet-set",
"currentPrice": 109,
"currency": "USD",
"inStock": true,
"description": "Our percale weave is strong enough to last, but airy enough to keep you cool and asleep throughout the night.",
"primaryImage": {
"url": "https://cdn.shopify.com/s/files/1/0608/2268/3729/files/Percale-Sheet-Set-PDP-hero-Eucalyptus.jpg?v=1791412307",
"cdnUrl": "https://cdn.octogen.ai/d0e343c98ea8302dd03f97e2d9f10a88/c62f591e221800d0883bfe6e6d43fd9e.webp?request_id=130a4174-8783-4e82-a5d9-e2bb899c079b",
"width": 3388,
"height": 2259,
"sizeBytes": 73756,
"mimeType": "image/webp"
},
"details": {
"materials": [
"100% Organic Cotton, 1:1 Weave, 300-thread count",
"Wash on a warm, normal cycle. Wash dark colors separately. Only non-chlorine bleach when needed.",
"Tumble dry on low heat. Remove promptly.",
"Warm iron if needed."
],
"fit": [],
"dimensions": null,
"patterns": []
}
}
}StoreRouter classification and attributes. Use attribute_handles as search facet values.
JSON response excerpt
{
"source": "indexed",
"catalogKey": "casper",
"product": {
"enrichment": {
"type": "sheet set",
"category_path": [
"Furniture",
"Beds & Accessories",
"Bed & Bed Frame Accessories"
],
"styles": [
"minimalist",
"modern"
],
"attributes": {
"Color": [
"Blue",
"Gray",
"Green",
"Navy",
"White"
],
"Pattern": [
"Solid"
]
},
"attribute_handles": {
"color": [
"color__blue",
"color__gray",
"color__green",
"color__navy",
"color__white"
],
"pattern": [
"pattern__solid"
]
}
}
}
}curl -sS https://api.storerouter.ai/v1/products/lookup \
-H "Authorization: Bearer $OCTOGEN_PLATFORM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://casper.com/products/percale-sheet-set",
"resolutionMode": "index_only"
}'Selected response fields are shown. API documentation
Catalog
Attributes
Each attribute below is a search facet: the bar shows the share of Casper products that have it, and each value shows the share tagged with that value. A product can have several values, so these can add up to more than 100%.
Color
attribute_facets.color
Frame material
frame_material
Pattern
pattern
Foundation material
foundation_material
Mattress features
mattress_features
| Field | Facet name | Source | Coverage | Values |
|---|---|---|---|---|
| Product color | color | Merchant data | 8% | 5 |
| Color family | color_family | Merchant data | 8% | 4 |
| Category at depth 0 | category_path.depth_0 | StoreRouter enrichment | 100% | 1 |
| Category at depth 1 | category_path.depth_1 | StoreRouter enrichment | 100% | 2 |
| Category at depth 2 | category_path.depth_2 | StoreRouter enrichment | 100% | 5 |
| Category at depth 3 | category_path.depth_3 | StoreRouter enrichment | 58% | 7 |
| Color | attribute_facets.color | StoreRouter enrichment | 47% | 7 |
| Frame material | frame_material | StoreRouter enrichment | 28% | 9 |
| Pattern | pattern | StoreRouter enrichment | 28% | 3 |
| Foundation material | foundation_material | StoreRouter enrichment | 25% | 5 |
| Mattress features | mattress_features | StoreRouter enrichment | 19% | 3 |
| Furniture/Fixture material | furniture_fixture_material | StoreRouter enrichment | 14% | 9 |
| Age Group | age_groups | StoreRouter enrichment | 3% | 1 |
| Firmness | firmness | StoreRouter enrichment | 3% | 1 |
| Slat material | slat_material | StoreRouter enrichment | 3% | 1 |
| Canonical brand name | brand_name | Brand | 100% | 1 |
Data
For agents
Every facet name and value on this page, ready for an agent or a script.
Are you an AI agent? Fetch https://storerouter.ai/llms.txt to learn how to get product data from StoreRouter, and how to make a storefront's products readable by agents.
One API key gives your agent search, product lookup, and similar-item results across every store StoreRouter indexes.
Get an API key