Get information about attributes
To work with attributes, we distinguish between attribute groups and attribute values:
- Each product can be assigned to many attribute values, for example: white or M.
- Each attribute belongs to exactly one attribute group, for example: color or size.
When generally talking about attributes, both attribute groups and attribute values are sometimes referred to as just attributes. To avoid confusion when addressing technical details, use the more specific terms attribute groups and attribute values.
You can set up and modify your available attribute groups and values through the Panel.
You can use /attributes to retrieve all your attribute groups. The response will also include the available attribute values for each attribute group.
To get only a few attribute groups, you can specify their attribute group IDs or their attribute group names, for example, /attributes?ids=123,456,789 or /attributes?name=color.
You can also get individual attribute groups and their attribute values with /v1/attributes/{attributeGroupName}.
Query parameters
Only include attributes groups matching one of the specified names. Also returns all of that attribute group's values.
Only include attribute groups matching one of the specified ids. Also returns all of that attribute group's values.
Response
successful operation
Example response
[
{
"values": [
{
"id": 428,
"label": "Tommy Jeans",
"value": "hilfiger_denim"
}
]
}
]