> ## 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.

# /mandarake/items/search

> Search the Mandarake (まんだらけ) second-hand catalogue by keyword and/or category, narrowed by branch, price range, arrival window, availability, pre-order and R18 flags, ordered by arrival date, price or title. Returns item cards with the catalogue id, name, photo, branch, price, stock line and the price range of the same item at other branches. Texts are available in Japanese, English and Chinese.

**Price:** 1 credit

**⚠️ Common errors:** 422: Neither keyword nor category_id was given, or a malformed category_id



## OpenAPI

````yaml /openapi/e-commerce-marketplaces.json post /api/mandarake/items/search
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/mandarake/items/search:
    post:
      tags:
        - /mandarake
      summary: /mandarake/items/search
      description: >-
        Search the Mandarake (まんだらけ) second-hand catalogue by keyword and/or
        category, narrowed by branch, price range, arrival window, availability,
        pre-order and R18 flags, ordered by arrival date, price or title.
        Returns item cards with the catalogue id, name, photo, branch, price,
        stock line and the price range of the same item at other branches. Texts
        are available in Japanese, English and Chinese.


        **Price:** 1 credit


        **⚠️ Common errors:** 422: Neither keyword nor category_id was given, or
        a malformed category_id
      operationId: __api_mandarake_items_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MandarakeItemsSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MandarakeItemCard'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MandarakeItemsSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        keyword:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
        category_id:
          anyOf:
            - type: string
            - type: 'null'
        count:
          type: integer
          maximum: 10000
          minimum: 1
        store:
          anyOf:
            - $ref: '#/components/schemas/MandarakeStore'
            - type: 'null'
        price_min:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
        price_max:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
        arrival_window:
          anyOf:
            - $ref: '#/components/schemas/MandarakeArrivalWindow'
            - type: 'null'
        hide_sold_out:
          type: boolean
          default: false
        hide_adult:
          type: boolean
          default: false
        preorder_only:
          type: boolean
          default: false
        sort:
          $ref: '#/components/schemas/MandarakeSort'
          default: arrival
        order:
          $ref: '#/components/schemas/MandarakeSortOrder'
          default: desc
        lang:
          $ref: '#/components/schemas/MandarakeLang'
          default: en
      type: object
      required:
        - count
    MandarakeItemCard:
      properties:
        '@type':
          type: string
          default: MandarakeItemCard
        id:
          type: string
        url:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        store:
          anyOf:
            - type: string
            - type: 'null'
        other_store_count:
          type: integer
          default: 0
        stock_number:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          type: string
          default: JPY
        stock_message:
          anyOf:
            - type: string
            - type: 'null'
        is_sold_out:
          type: boolean
          default: false
        is_new_arrival:
          type: boolean
          default: false
        is_adult:
          type: boolean
          default: false
        other_store_price_min:
          anyOf:
            - type: number
            - type: 'null'
        other_store_price_max:
          anyOf:
            - type: number
            - type: 'null'
      type: object
      required:
        - id
        - url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    MandarakeStore:
      type: string
      enum:
        - nakano
        - nagoya
        - shibuya
        - umeda
        - fukuoka
        - grandchaos
        - lalala
        - sapporo
        - utsunomiya
        - kokura
        - complex
        - nayuta
        - cocoo
        - kyoto
        - puck2
        - omiya
        - sahra
    MandarakeArrivalWindow:
      type: string
      enum:
        - last_6_hours
        - last_12_hours
        - last_18_hours
        - last_24_hours
        - last_72_hours
    MandarakeSort:
      type: string
      enum:
        - arrival
        - price
        - title
    MandarakeSortOrder:
      type: string
      enum:
        - asc
        - desc
    MandarakeLang:
      type: string
      enum:
        - ja
        - en
        - zh
    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
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````