Substrata serves structured building product specification data via a REST API. No authentication required during beta. All responses are JSON.
Returns a paginated list of building products. Supports full-text search, filtering by category/manufacturer/performance specs, and sorting.
| Parameter | Description | Example |
|---|---|---|
| q | Full-text search | q=triple+pane |
| category | Product category | windows, doors, insulation |
| subcategory | Subcategory | casement, entry, spray-foam |
| manufacturer | Manufacturer (partial, case-insensitive) | andersen |
| min_u_value | Min thermal transmittance | 0.15 |
| max_u_value | Max thermal transmittance | 0.25 |
| min_r_value | Min thermal resistance | 15 |
| max_r_value | Max thermal resistance | 30 |
| min_shgc | Min solar heat gain coefficient | 0.20 |
| max_shgc | Max solar heat gain coefficient | 0.30 |
| energy_star | ENERGY STAR filter | true |
| min_price | Min price (USD) | 100 |
| max_price | Max price (USD) | 1000 |
| frame_material | Frame material (partial match) | vinyl |
| glazing_type | Glazing type (partial match) | triple |
| core_material | Core material (partial match) | polyurethane |
| sort | Sort field | name, u_value, price_min_usd |
| order | Sort direction | asc, desc |
| page | Page number (default: 1) | 2 |
| limit | Results per page (max: 100, default: 20) | 10 |
curl "https://substrata-34wm.polsia.app/v1/products?category=windows&energy_star=true&max_u_value=0.25&limit=3"
{
"data": [
{
"id": 6,
"name": "Andersen E-Series Triple Pane Casement",
"slug": "andersen-e-series-triple-casement",
"manufacturer": "Andersen",
"category": "windows",
"subcategory": "casement",
"description": "Premium architectural-grade casement...",
"width_mm": 762,
"height_mm": 1524,
"u_value": "0.170",
"shgc": "0.190",
"vt": "0.330",
"stc_rating": 37,
"frame_material": "Wood/Aluminum",
"glazing_type": "Triple Low-E",
"price_min_usd": "1200.00",
"price_max_usd": "2400.00",
"warranty_years": 20,
"energy_star": true,
"certifications": ["ENERGY STAR","NFRC","AAMA","PHI"],
"model_number": "AE-TC3060"
}
],
"pagination": {
"page": 1,
"limit": 3,
"total": 7,
"total_pages": 3,
"has_next": true,
"has_prev": false
},
"filters_applied": {
"category": "windows",
"energy_star": "true",
"max_u_value": "0.25"
}
}
Returns a single product by its URL slug. Returns 404 if not found.
curl "https://substrata-34wm.polsia.app/v1/products/andersen-400-casement"
{
"data": {
"id": 2,
"name": "Andersen 400 Series Casement Window",
"slug": "andersen-400-casement",
"manufacturer": "Andersen",
...all product fields
}
}
Returns all product categories with subcategories and product counts.
curl "https://substrata-34wm.polsia.app/v1/categories"
{
"data": [
{
"category": "doors",
"product_count": "16",
"subcategories": ["entry","patio","multi-slide","garage","interior","folding"]
},
{
"category": "insulation",
"product_count": "18",
"subcategories": ["fiberglass-batt","mineral-wool","rigid-board","blown-in","spray-foam",...]
},
{
"category": "windows",
"product_count": "19",
"subcategories": ["double-hung","casement","awning","sliding","picture",...]
}
]
}
Returns all manufacturers with product counts and which categories they produce.
curl "https://substrata-34wm.polsia.app/v1/manufacturers"
{
"data": [
{
"manufacturer": "Andersen",
"product_count": "4",
"categories": ["windows","doors"]
},
{
"manufacturer": "Owens Corning",
"product_count": "3",
"categories": ["insulation"]
},
...
]
}
Returns aggregate statistics about the product database.
{
"data": {
"total_products": "53",
"total_manufacturers": "35",
"total_categories": "3",
"energy_star_products": "26",
"avg_u_value": "0.259",
"avg_r_value": "13.40",
"avg_price_min": "919.41",
"avg_price_max": "2781.80"
}
}
Every product in the database has the following fields. Null values indicate data not applicable to that product type.
| Field | Type | Description |
|---|---|---|
| id | integer | Unique ID |
| name | string | Product name |
| slug | string | URL-safe identifier |
| manufacturer | string | Manufacturer name |
| category | string | windows, doors, insulation |
| subcategory | string | Product subcategory |
| description | string | Product description |
| width_mm | integer | Width in millimeters |
| height_mm | integer | Height in millimeters |
| depth_mm | integer | Depth in millimeters |
| thickness_mm | numeric | Thickness in millimeters |
| weight_kg | numeric | Weight in kilograms |
| u_value | numeric | Thermal transmittance (W/m²K) |
| r_value | numeric | Thermal resistance (m²K/W) |
| shgc | numeric | Solar Heat Gain Coefficient |
| vt | numeric | Visible Transmittance |
| stc_rating | integer | Sound Transmission Class |
| fire_rating | string | Fire resistance rating |
| wind_load_pa | integer | Wind load (Pascals) |
| air_leakage | numeric | Air leakage rate (L/s/m²) |
| frame_material | string | Frame material |
| glazing_type | string | Glazing type |
| core_material | string | Core/insulation material |
| finish | string | Surface finish |
| price_min_usd | numeric | Minimum price (USD) |
| price_max_usd | numeric | Maximum price (USD) |
| warranty_years | integer | Warranty period |
| energy_star | boolean | ENERGY STAR certified |
| certifications | array | List of certifications |
| model_number | string | Manufacturer model number |