Product Attributes API
List Product Attributes
GET /products/attributes
There are no parameters required for this endpoint.
curl "https://example-store.com/wp-json/wc/store/v1/products/attributes"
Example response:
[
	{
		"id": 1,
		"name": "Color",
		"taxonomy": "pa_color",
		"type": "select",
		"order": "menu_order",
		"has_archives": false
	},
	{
		"id": 2,
		"name": "Size",
		"taxonomy": "pa_size",
		"type": "select",
		"order": "menu_order",
		"has_archives": false
	}
]
Single Product Attribute
Get a single attribute taxonomy.
GET /products/attributes/:id
| Attribute | Type | Required | Description | 
|---|---|---|---|
| id | integer | Yes | The ID of the attribute to retrieve. | 
curl "https://example-store.com/wp-json/wc/store/v1/products/attributes/1"
Example response:
{
	"id": 1,
	"name": "Color",
	"taxonomy": "pa_color",
	"type": "select",
	"order": "menu_order",
	"has_archives": false
}