List attributes
curl --request POST \
--url https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"store": "woocommerce.com"
}
'import requests
url = "https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes"
payload = { "store": "woocommerce.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({store: 'woocommerce.com'})
};
fetch('https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'store' => 'woocommerce.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes"
payload := strings.NewReader("{\n \"store\": \"woocommerce.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"store\": \"woocommerce.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"store\": \"woocommerce.com\"\n}"
response = http.request(request)
puts response.read_body{
"attribute": {
"id": 10,
"name": "Compatibility",
"taxonomy": "pa_compatibility"
},
"attributes": [
{
"count": 5,
"has_archives": true,
"id": 10,
"name": "Compatibility",
"taxonomy": "pa_compatibility",
"type": "select"
},
{
"count": 249,
"has_archives": true,
"id": 2,
"name": "Countries",
"taxonomy": "pa_countries",
"type": "select"
},
{
"count": 4,
"has_archives": true,
"id": 3,
"name": "Gateway Types",
"taxonomy": "pa_gateway-types",
"type": "select"
},
{
"count": 193,
"has_archives": false,
"id": 9,
"name": "Languages",
"taxonomy": "pa_languages",
"type": "select"
},
{
"count": 2,
"has_archives": false,
"id": 6,
"name": "Revenue Share",
"taxonomy": "pa_revenue-share",
"type": "select"
},
{
"count": 2,
"has_archives": true,
"id": 1,
"name": "Theme Package",
"taxonomy": "pa_theme-type",
"type": "select"
},
{
"count": 68,
"has_archives": false,
"id": 7,
"name": "WooCommerce version required",
"taxonomy": "pa_wc_version_required",
"type": "select"
},
{
"count": 2429,
"has_archives": true,
"id": 5,
"name": "Works With",
"taxonomy": "pa_works_with",
"type": "select"
},
{
"count": 21,
"has_archives": false,
"id": 8,
"name": "WordPress version required",
"taxonomy": "pa_wp_version_required",
"type": "select"
}
],
"count": 5,
"next_page": null,
"observed_at_ms": 1791509616189,
"page": 1,
"per_page": 100,
"store": {
"host": "woocommerce.com",
"url": "https://woocommerce.com/"
},
"terms": [
{
"count": 66,
"id": 33417,
"name": "Block editor",
"slug": "block-editor"
},
{
"count": 310,
"id": 33015,
"name": "Cart & checkout blocks",
"slug": "cart-checkout-blocks"
},
{
"count": 382,
"id": 32524,
"name": "High performance order storage (HPOS)",
"slug": "hpos"
},
{
"count": 11,
"id": 33456,
"name": "Product editor",
"slug": "product-editor"
},
{
"count": 36,
"id": 33418,
"name": "Site editor",
"slug": "site-editor"
}
],
"total": 5,
"total_pages": 1
}WooCommerce stores
List attributes
Find attribute taxonomies and term slugs for search_products attribute filters, or list a store’s brands/sizes/colours.
POST
https://api.aisa.one
/
apis
/
v1
/
woocommerce-com
/
products
/
list-attributes
List attributes
curl --request POST \
--url https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"store": "woocommerce.com"
}
'import requests
url = "https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes"
payload = { "store": "woocommerce.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({store: 'woocommerce.com'})
};
fetch('https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'store' => 'woocommerce.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes"
payload := strings.NewReader("{\n \"store\": \"woocommerce.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"store\": \"woocommerce.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"store\": \"woocommerce.com\"\n}"
response = http.request(request)
puts response.read_body{
"attribute": {
"id": 10,
"name": "Compatibility",
"taxonomy": "pa_compatibility"
},
"attributes": [
{
"count": 5,
"has_archives": true,
"id": 10,
"name": "Compatibility",
"taxonomy": "pa_compatibility",
"type": "select"
},
{
"count": 249,
"has_archives": true,
"id": 2,
"name": "Countries",
"taxonomy": "pa_countries",
"type": "select"
},
{
"count": 4,
"has_archives": true,
"id": 3,
"name": "Gateway Types",
"taxonomy": "pa_gateway-types",
"type": "select"
},
{
"count": 193,
"has_archives": false,
"id": 9,
"name": "Languages",
"taxonomy": "pa_languages",
"type": "select"
},
{
"count": 2,
"has_archives": false,
"id": 6,
"name": "Revenue Share",
"taxonomy": "pa_revenue-share",
"type": "select"
},
{
"count": 2,
"has_archives": true,
"id": 1,
"name": "Theme Package",
"taxonomy": "pa_theme-type",
"type": "select"
},
{
"count": 68,
"has_archives": false,
"id": 7,
"name": "WooCommerce version required",
"taxonomy": "pa_wc_version_required",
"type": "select"
},
{
"count": 2429,
"has_archives": true,
"id": 5,
"name": "Works With",
"taxonomy": "pa_works_with",
"type": "select"
},
{
"count": 21,
"has_archives": false,
"id": 8,
"name": "WordPress version required",
"taxonomy": "pa_wp_version_required",
"type": "select"
}
],
"count": 5,
"next_page": null,
"observed_at_ms": 1791509616189,
"page": 1,
"per_page": 100,
"store": {
"host": "woocommerce.com",
"url": "https://woocommerce.com/"
},
"terms": [
{
"count": 66,
"id": 33417,
"name": "Block editor",
"slug": "block-editor"
},
{
"count": 310,
"id": 33015,
"name": "Cart & checkout blocks",
"slug": "cart-checkout-blocks"
},
{
"count": 382,
"id": 32524,
"name": "High performance order storage (HPOS)",
"slug": "hpos"
},
{
"count": 11,
"id": 33456,
"name": "Product editor",
"slug": "product-editor"
},
{
"count": 36,
"id": 33418,
"name": "Site editor",
"slug": "site-editor"
}
],
"total": 5,
"total_pages": 1
}Request contract
- Method and path: POST /apis/v1/woocommerce-com/products/list-attributes
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/woocommerce-com/products/list-attributes
{
"operationId": "woocommerce-com.products.list-attributes",
"method": "POST",
"path": "/apis/v1/woocommerce-com/products/list-attributes",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"attribute": "pa_compatibility",
"store": "woocommerce.com"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"attribute": {
"description": "Taxonomy (pa_color) or attribute id whose terms to list. Pattern: ^(pa_\\S+|[0-9]+)$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"page": {
"default": 1,
"description": "1-based page; use next_page from the previous result.\n\nProvider reference: minimum 1; maximum 10000; default 1.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 10000,
"min": 1
}
},
"per_page": {
"default": 100,
"description": "per_page\n\nProvider reference: minimum 1; maximum 100; default 100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 100,
"min": 1
}
},
"store": {
"description": "The store: a bare domain (example.com) or any URL on the store. Any WooCommerce site with the public Store API (/wp-json/wc/store/v1) enabled.",
"type": "string"
}
},
"required": [
"store"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
Global product attributes of a WooCommerce store (e.g. Color pa_color, Size pa_size, Brand pa_brand) and, when one is named, its terms (id, name, slug, product count), paged up to 100 per page.
The response contains the tool result directly.
The provider identifies terms as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
count | number | |
id | number | |
name | string | |
slug | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.