> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Category facets

> To discover category ids to pass to search, or to see brand and price distribution for a category or keyword.

## Request contract

* **Method and path:** POST /apis/v1/auctions-yahoo-co-jp/listings/category-facets
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/auctions-yahoo-co-jp/listings/category-facets`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/auctions-yahoo-co-jp.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "auctions-yahoo-co-jp.listings.category-facets",
  "method": "POST",
  "path": "/apis/v1/auctions-yahoo-co-jp/listings/category-facets",
  "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": {
              "category_id": 23684
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "category_id": {
              "default": 0,
              "description": "category_id\n\nProvider reference: minimum 0; default 0.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 0
              }
            },
            "query": {
              "description": "query",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "status": {
              "default": "OPEN",
              "description": "status\n\nProvider reference: allowed values [\"OPEN\", \"CLOSED\"]; default \"OPEN\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "OPEN",
                  "CLOSED"
                ]
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "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.


## OpenAPI

````yaml openapi/auctions-yahoo-co-jp.json POST /apis/v1/auctions-yahoo-co-jp/listings/category-facets
openapi: 3.1.0
info:
  description: ''
  title: Yahoo! Auctions Japan
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    auctions-yahoo-co-jp:
      description: ''
      title: Yahoo! Auctions Japan
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 8cece64d88db050fe97eca6ead5da2f766445d60ba86801f4c1deab4c945b50c
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/auctions-yahoo-co-jp/listings/category-facets
    - /apis/v1/auctions-yahoo-co-jp/listings/item
    - /apis/v1/auctions-yahoo-co-jp/listings/search
    - /apis/v1/auctions-yahoo-co-jp/listings/seller
    - /apis/v1/auctions-yahoo-co-jp/listings/suggest
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:9c3dc8dd6d471bcb3d03da8e8ac5c5cd151386cf2f9eafca85197316be9db340
    facts_hash: 8cece64d88db050fe97eca6ead5da2f766445d60ba86801f4c1deab4c945b50c
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: auctions-yahoo-co-jp
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/auctions-yahoo-co-jp/listings/category-facets:
    post:
      tags:
        - Yahoo! Auctions Japan
      summary: Category facets
      description: >-
        To discover category ids to pass to search, or to see brand and price
        distribution for a category or keyword.
      operationId: auctions-yahoo-co-jp.listings.category-facets
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  category_id: 23684
            schema:
              additionalProperties: true
              properties:
                category_id:
                  default: 0
                  description: |-
                    category_id

                    Provider reference: minimum 0; default 0.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 0
                query:
                  description: query
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                status:
                  default: OPEN
                  description: >-
                    status


                    Provider reference: allowed values ["OPEN", "CLOSED"];
                    default "OPEN".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - OPEN
                      - CLOSED
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-09.
                  summary: Official provider example
                  value:
                    brands:
                      - count: 17080
                        id: 101345
                        kana_name: ニコン
                        name: ニコン
                        url: https://auctions.yahoo.co.jp/brand/1345
                      - count: 16996
                        id: 100614
                        kana_name: キヤノン
                        name: キヤノン
                        url: https://auctions.yahoo.co.jp/brand/614
                      - count: 8335
                        id: 102135
                        kana_name: リコー
                        name: リコー
                        url: https://auctions.yahoo.co.jp/brand/2135
                      - count: 4023
                        id: 100537
                        kana_name: オリンパス
                        name: オリンパス
                        url: https://auctions.yahoo.co.jp/brand/537
                      - count: 3526
                        id: 100774
                        kana_name: コニカミノルタ
                        name: コニカミノルタ
                        url: https://auctions.yahoo.co.jp/brand/774
                      - count: 2613
                        id: 100880
                        kana_name: シグマ
                        name: シグマ
                        url: https://auctions.yahoo.co.jp/brand/880
                      - count: 2371
                        id: 100067
                        kana_name: タムロン
                        name: TAMRON
                        url: https://auctions.yahoo.co.jp/brand/67
                      - count: 2143
                        id: 101091
                        kana_name: ソニー
                        name: SONY
                        url: https://auctions.yahoo.co.jp/brand/1091
                      - count: 1827
                        id: 102073
                        kana_name: ライカ
                        name: ライカ
                        url: https://auctions.yahoo.co.jp/brand/2073
                      - count: 1414
                        id: 101460
                        kana_name: パナソニック
                        name: Panasonic
                        url: https://auctions.yahoo.co.jp/brand/1460
                      - count: 1097
                        id: 116440
                        kana_name: ツァイス
                        name: ZEISS
                        url: https://auctions.yahoo.co.jp/brand/16440
                      - count: 1091
                        id: 104459
                        kana_name: ケンコー・トキナー
                        name: ケンコー・トキナー
                        url: https://auctions.yahoo.co.jp/brand/4459
                      - count: 994
                        id: 102365
                        kana_name: フジフイルム
                        name: FUJIFILM
                        url: https://auctions.yahoo.co.jp/brand/2365
                      - count: 521
                        id: 101914
                        kana_name: マミヤ
                        name: Mamiya
                        url: https://auctions.yahoo.co.jp/brand/1914
                      - count: 373
                        id: 116853
                        kana_name: コシナ
                        name: コシナ
                        url: https://auctions.yahoo.co.jp/brand/16853
                      - count: 347
                        id: 152635
                        kana_name: メイショウコウガク
                        name: 銘匠光学
                        url: https://auctions.yahoo.co.jp/brand/52635
                      - count: 345
                        id: 135365
                        kana_name: コンタックス
                        name: CONTAX
                        url: https://auctions.yahoo.co.jp/brand/35365
                      - count: 334
                        id: 116441
                        kana_name: ケーアンドエフ コンセプト
                        name: K&F CONCEPT
                        url: https://auctions.yahoo.co.jp/brand/16441
                      - count: 304
                        id: 116878
                        kana_name: ヂョンイー
                        name: 中一光学
                        url: https://auctions.yahoo.co.jp/brand/16878
                      - count: 259
                        id: 136464
                        kana_name: シチコウショウ
                        name: 七工匠
                        url: https://auctions.yahoo.co.jp/brand/36464
                    category_id: 23684
                    children:
                      - count: 43157
                        id: 2084261682
                        is_leaf: false
                        name: 一眼カメラ用（オートフォーカス）
                      - count: 28667
                        id: 2084261691
                        is_leaf: false
                        name: 一眼カメラ用（マニュアルフォーカス）
                      - count: 2671
                        id: 23692
                        is_leaf: true
                        name: 大判、中判カメラ用
                      - count: 682
                        id: 2084041624
                        is_leaf: true
                        name: コンパクトカメラ用
                      - count: 0
                        id: 2084313032
                        is_leaf: true
                        name: カタログ
                      - count: 0
                        id: 2084052265
                        is_leaf: true
                        name: 説明書
                      - count: 6612
                        id: 23716
                        is_leaf: true
                        name: その他
                    country: JP
                    currency: JPY
                    current:
                      count: 88060
                      id: 23684
                      is_leaf: false
                      name: レンズ
                    observed_at_ms: 1791587845291
                    parent:
                      id: 23636
                      name: カメラ、光学機器
                    price_ranges:
                      - count: 83297
                        from: 0
                        to: 113999
                      - count: 3347
                        from: 114000
                        to: 227999
                      - count: 775
                        from: 228000
                        to: 343999
                      - count: 309
                        from: 344000
                        to: 510999
                      - count: 196
                        from: 511000
                        to: 812999
                      - count: 136
                        from: 813000
                        to: 8200999
                    query: null
                    status: OPEN
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Category tree position (parent, current, children with counts), top
            brands and price-range buckets for a Yahoo! Auctions category,
            optionally narrowed by a keyword. category_id 0 is the root
            (top-level categories; child counts are not computed at the root).


            The response contains the tool result directly.


            The provider identifies `children` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `count` | number |  |

            | `id` | number |  |

            | `is_leaf` | boolean |  |

            | `name` | string |  |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.