Skip to content

Get Attributes

Retrieve a paginated list of product attributes with their options.

Endpoint

GET /api/shop/attributes

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
X-STOREFRONT-KEYYesYour storefront API key

Query Parameters

ParameterTypeDefaultDescription
pageinteger1Page number
limitinteger10Attributes per page

Response Fields (200 OK)

FieldTypeDescription
idintegerAttribute ID
codestringUnique attribute code
namestringAttribute display name
typestringAttribute type (text, select, multiselect, textarea)
optionsarrayAvailable options (for select/multiselect)

Option Fields

FieldTypeDescription
idintegerOption ID
labelstringOption display label
valuestringOption 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

Released under the MIT License.