Get Attributes
Retrieve a paginated list of product attributes with their options.
Endpoint
GET /api/shop/attributesRequest Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | application/json |
X-STOREFRONT-KEY | Yes | Your storefront API key |
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number |
limit | integer | 10 | Attributes per page |
Response Fields (200 OK)
| Field | Type | Description |
|---|---|---|
id | integer | Attribute ID |
code | string | Unique attribute code |
name | string | Attribute display name |
type | string | Attribute type (text, select, multiselect, textarea) |
options | array | Available options (for select/multiselect) |
Option Fields
| Field | Type | Description |
|---|---|---|
id | integer | Option ID |
label | string | Option display label |
value | string | Option value |
Use Cases
- Load product filter options
- Build product configuration pages
- Display attribute filters on category pages
- Get available sizes, colors, variants
- Create product search filters

