{
  "openapi": "3.0.1",
  "info": {
    "title": "북오프 BookOff 일본 중고책·만화·CD·게임 시세 — 중고가·재고",
    "description": "키워드를 입력하면 일본 북오프(BookOff) 공식 온라인 스토어에서 중고책·만화·CD·DVD·게임이 얼마인지 알려줍니다. 검색 결과 전체의 중고 대표가와 범위, 판매중/품절 건수, 정가 대비 할인율, 새 상품 가격을 돌려줍니다. 키워드당 $0.02. BookOff Japan used prices per keyword. Unofficial.",
    "version": "0.1",
    "x-build-id": "2jrbqy6D99TMM6aoJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpmarketdata~bookoff-market-kr/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpmarketdata-bookoff-market-kr",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/jpmarketdata~bookoff-market-kr/runs": {
      "post": {
        "operationId": "runs-sync-jpmarketdata-bookoff-market-kr",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/jpmarketdata~bookoff-market-kr/run-sync": {
      "post": {
        "operationId": "run-sync-jpmarketdata-bookoff-market-kr",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "검색 키워드 Keywords",
            "type": "array",
            "description": "하나 이상의 검색 키워드. 북오프의 카탈로그는 일본어 전용이라 일본어가 가장 잘 맞습니다(ガンダム, ワンピース, ドラゴンクエスト, 米津玄師). 키워드 1개당 $0.02.",
            "default": [
              "ガンダム"
            ],
            "items": {
              "type": "string"
            }
          },
          "genreCode": {
            "title": "장르 코드(선택)",
            "type": "string",
            "description": "검색을 북오프의 한 장르로 한정합니다: 12=서적(書籍), 11=만화(コミック), 13=잡지(雑誌), 31=CD, 71=DVD·블루레이, 51=게임(ゲーム). 비워 두면 전체 장르를 검색합니다. 참고: 트레이딩 카드와 하비/피규어 장르는 공식 온라인 스토어에 존재하지 않습니다."
          },
          "maxItemsPerKeyword": {
            "title": "키워드당 표본 개수",
            "minimum": 30,
            "maximum": 360,
            "type": "integer",
            "description": "재고 구성·할인율·장르 구성을 계산하려고 키워드마다 몇 건을 살펴볼지 정합니다. 중고 가격 사분위수는 결과 전체 모집단에서 읽으므로 이 값의 영향을 받지 않습니다. 결과는 한 페이지에 120건이라 120을 넘는 값은 어차피 가져오는 분위수 페이지를 표본에 더할 뿐이고(추가 요청도 추가 시간도 없이 표본이 가격대 전체로 퍼집니다), 120 미만의 값은 '개별 상품 출력'이 켜져 있을 때 반환·과금되는 건수만 제한합니다(+$0.002/건).",
            "default": 120
          },
          "includeIndividualItems": {
            "title": "개별 상품 출력 Include individual listings",
            "type": "boolean",
            "description": "기본값 꺼짐: 실행 1회당 키워드 요약이 $0.02 정액입니다. 켜면 표본으로 잡은 상품마다(제목, 가격, 상태, 재고 상태, 정가, 할인율, 발매일, 매장 수령, URL) 레코드를 추가로 출력하며 건당 +$0.002가 부과됩니다.",
            "default": false
          },
          "convertToUsd": {
            "title": "가격을 달러로 환산",
            "type": "boolean",
            "description": "현재 환율(open.er-api.com)로 엔화 통계 옆에 달러 통계를 함께 표시합니다.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}