Catalog coverage · pastmidnight
Catalog coverage · pastmidnight
Catalog coverage · pastmidnight.com
Search products from pastmidnight.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": ["pastmidnightlabel"], "q": "eyewear", "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=["pastmidnightlabel"],
q="eyewear",
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: ["pastmidnightlabel"],
q: "eyewear",
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.
Past Midnight
Past Midnight
Past Midnight
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.

Past Midnight
$205.00In stock
The Classic Sunglasses are the first design in The Classic Collection. These everyday, versatile shades will be the first that you grab to style your outfit. Past Midnight eyewear is crafted in small batches with meticulous detail at every stage, including making molds, laser welding, polishing, and production.With quality at the core of our brand, our styles are crafted from the finest luxury acetate.
Source product pageProduct content returned by the lookup API, ready for a product page.
JSON response excerpt
{
"source": "indexed",
"catalogKey": "pastmidnightlabel",
"product": {
"title": "The Classic",
"brand": {
"name": "Past Midnight"
},
"productUrl": "https://www.pastmidnight.com/products/the-classic-sunglasses-white",
"currentPrice": 205,
"currency": "USD",
"inStock": true,
"description": "The Classic Sunglasses are the first design in The Classic Collection. These everyday, versatile shades will be the first that you grab to style your outfit. Past Midnight eyewear is crafted in small batches with meticulous detail at every stage, including making molds, laser welding, polishing, and production.With quality at the core of our brand, our styles are crafted from the finest luxury acetate.",
"primaryImage": {
"url": "https://cdn.shopify.com/s/files/1/0216/4971/9396/files/GLASSES_5_1_8fca18d3-f500-4fe5-9035-9b6e9bfc6d80.jpg?v=1780031488",
"cdnUrl": "https://cdn.octogen.ai/6328278b4d96917a48d283763919ad3b/82541f3f92ce916221364b1b4a195852.webp?request_id=c853e9c0-d069-4c58-a163-4eb315c12661",
"width": 2000,
"height": 3000,
"sizeBytes": 34948,
"mimeType": "image/webp"
},
"details": {
"materials": [
"luxury acetate"
],
"fit": [
"The Classic Sunglasses are the first design in The Classic Collection. These everyday, versatile shades will be the first that you grab to style your outfit."
],
"dimensions": null,
"patterns": []
}
}
}StoreRouter classification and attributes. Use attribute_handles as search facet values.
JSON response excerpt
{
"source": "indexed",
"catalogKey": "pastmidnightlabel",
"product": {
"enrichment": {
"type": "sunglasses",
"category_path": [
"Apparel & Accessories",
"Accessories",
"Eyewear",
"Sunglasses"
],
"styles": [
"classic",
"minimalist",
"modern"
],
"attributes": {
"Pattern": [
"Solid"
],
"Lens color": [
"Black"
],
"Lens pattern": [
"Solid"
],
"Temple color": [
"White"
],
"Temple pattern": [
"Solid"
],
"Eyewear frame color": [
"White"
],
"Eyewear frame design": [
"Cat Eye"
],
"Eyewear frame pattern": [
"Solid"
],
"Eyewear Frame Material": [
"Acetate"
]
},
"attribute_handles": {
"pattern": [
"pattern__solid"
],
"lens_color": [
"lens_color__black"
],
"lens_pattern": [
"lens_pattern__solid"
],
"temple_color": [
"temple_color__white"
],
"temple_pattern": [
"temple_pattern__solid"
],
"eyewear_frame_color": [
"eyewear_frame_color__white"
],
"eyewear_frame_design": [
"eyewear_frame_design__cat_eye"
],
"eyewear_frame_pattern": [
"eyewear_frame_pattern__solid"
],
"eyewear_frame_material": [
"eyewear_frame_material__acetate"
]
}
}
}
}curl -sS https://api.storerouter.ai/v1/products/lookup \
-H "Authorization: Bearer $OCTOGEN_PLATFORM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.pastmidnight.com/products/the-classic-sunglasses-white",
"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 Pastmidnightlabel 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%.
Eyewear frame color
eyewear_frame_color
Eyewear frame design
eyewear_frame_design
Product color
color
Color family
color_family
Pattern
pattern
Lens color
lens_color
Eyewear frame pattern
eyewear_frame_pattern
Temple color
temple_color
| Field | Facet name | Source | Coverage | Values |
|---|---|---|---|---|
| Activewear | is_activewear | Merchant data | 100% | 1 |
| Product color | color | Merchant data | 97% | 16 |
| Color family | color_family | Merchant data | 97% | 10 |
| Age Group | age_groups | StoreRouter enrichment | 100% | 1 |
| Category at depth 0 | category_path.depth_0 | StoreRouter enrichment | 100% | 1 |
| Category at depth 1 | category_path.depth_1 | StoreRouter enrichment | 100% | 1 |
| Category at depth 2 | category_path.depth_2 | StoreRouter enrichment | 100% | 1 |
| Category at depth 3 | category_path.depth_3 | StoreRouter enrichment | 100% | 2 |
| Eyewear frame color | eyewear_frame_color | StoreRouter enrichment | 100% | 12 |
| Eyewear frame design | eyewear_frame_design | StoreRouter enrichment | 100% | 5 |
| Eyewear Frame Material | eyewear_frame_material | StoreRouter enrichment | 100% | 1 |
| Gender | gender | StoreRouter enrichment | 100% | 2 |
| Pattern | pattern | StoreRouter enrichment | 97% | 5 |
| Lens color | lens_color | StoreRouter enrichment | 94% | 7 |
| Eyewear frame pattern | eyewear_frame_pattern | StoreRouter enrichment | 91% | 4 |
| Lens pattern | lens_pattern | StoreRouter enrichment | 85% | 2 |
| Temple color | temple_color | StoreRouter enrichment | 39% | 8 |
| Temple pattern | temple_pattern | StoreRouter enrichment | 30% | 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