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

# /sofmap/products/facets

> Get the full filter catalogue Sofmap (ソフマップ) offers inside one category: its child categories, new versus second-hand counts, second-hand condition grades, every maker and colour, the price bands, the availability flags and the category-specific specification facets, each value with the number of products behind it and the code to pass back to the search endpoint.

**Price:** 1 credit

**⚠️ Common errors:** 412: The requested category does not exist on sofmap.com



## OpenAPI

````yaml /openapi/e-commerce-marketplaces.json post /api/sofmap/products/facets
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/sofmap/products/facets:
    post:
      tags:
        - /sofmap
      summary: /sofmap/products/facets
      description: >-
        Get the full filter catalogue Sofmap (ソフマップ) offers inside one category:
        its child categories, new versus second-hand counts, second-hand
        condition grades, every maker and colour, the price bands, the
        availability flags and the category-specific specification facets, each
        value with the number of products behind it and the code to pass back to
        the search endpoint.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: The requested category does not exist on
        sofmap.com
      operationId: __api_sofmap_products_facets_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SofmapProductsFacetsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SofmapProductFacets'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SofmapProductsFacetsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        category_id:
          type: string
      type: object
      required:
        - category_id
    SofmapProductFacets:
      properties:
        '@type':
          type: string
          default: SofmapProductFacets
        category_id:
          type: string
        product_count:
          anyOf:
            - type: integer
            - type: 'null'
        facets:
          items:
            $ref: '#/components/schemas/SofmapFacet'
          type: array
          default: []
      type: object
      required:
        - category_id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    SofmapFacet:
      properties:
        '@type':
          type: string
          default: SofmapFacet
        id:
          type: string
        key:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        payload_field:
          anyOf:
            - type: string
            - type: 'null'
        values:
          items:
            $ref: '#/components/schemas/SofmapFacetValue'
          type: array
          default: []
      type: object
      required:
        - id
        - key
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
    SofmapFacetValue:
      properties:
        '@type':
          type: string
          default: SofmapFacetValue
        value:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        product_count:
          anyOf:
            - type: integer
            - type: 'null'
        price_min:
          anyOf:
            - type: integer
            - type: 'null'
        price_max:
          anyOf:
            - type: integer
            - type: 'null'
        is_parent:
          type: boolean
          default: false
        is_current:
          type: boolean
          default: false
      type: object
      required:
        - value
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````