{
  "openapi": "3.0.1",
  "info": {
    "title": "Yuyu-tei Japan TCG Singles — Sell, Buy-back & Spread in 1 Call",
    "description": "Japanese TCG singles on yuyu-tei.jp in one call: retail and buy-back price quantiles, the measured sell/buy spread per card, plus rarity breakdown, in-stock ratio and damaged-copy discount. Pokemon, Yu-Gi-Oh, One Piece and more. From $0.02, no subscription. 遊々亭の販売・買取相場を1コールで。",
    "version": "0.1",
    "x-build-id": "UklauG2ylVF0Yp4i1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpmarketdata~yuyutei-tcg-price-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpmarketdata-yuyutei-tcg-price-checker",
        "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~yuyutei-tcg-price-checker/runs": {
      "post": {
        "operationId": "runs-sync-jpmarketdata-yuyutei-tcg-price-checker",
        "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~yuyutei-tcg-price-checker/run-sync": {
      "post": {
        "operationId": "run-sync-jpmarketdata-yuyutei-tcg-price-checker",
        "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": [
          "game",
          "searchMode"
        ],
        "properties": {
          "game": {
            "title": "Game (yuyu-tei section code)",
            "type": "string",
            "description": "Which card game to search. Common codes: poc = Pokemon (ポケモンカードゲーム), ygo = Yu-Gi-Oh! (遊戯王), opc = One Piece, dm = Duel Masters, ws = Weiss Schwarz, ua = Union Arena, vg = Vanguard, digi = Digimon, bs = Battle Spirits, gcg = Gundam Card Game. Any other code the shop uses also works — it is the path segment in https://yuyu-tei.jp/sell/<code>/s/...",
            "default": "poc"
          },
          "searchMode": {
            "title": "Search by",
            "enum": [
              "cardName",
              "setCode"
            ],
            "type": "string",
            "description": "cardName = search the whole game catalog for a card name. setCode = list every card of one expansion set.",
            "default": "cardName"
          },
          "cardName": {
            "title": "Card name",
            "type": "string",
            "description": "Used when 'Search by' is cardName. Japanese works best — the catalog is Japanese-only (ピカチュウ, 青眼の白龍, ルフィ). One call costs $0.02."
          },
          "setCode": {
            "title": "Set / expansion code",
            "type": "string",
            "description": "Used when 'Search by' is setCode. The code in the URL of a set page, e.g. m05 for https://yuyu-tei.jp/sell/poc/s/m05. Returns every card of that set (one page, no paging)."
          },
          "rarity": {
            "title": "Rarity filter (optional)",
            "type": "string",
            "description": "Keep only one rarity, as printed in the shop's section headings: SR, SAR, AR, RR, R, U, C, UR, CHR, PROMO ... (varies per game). Leave empty for all rarities."
          },
          "includeDamaged": {
            "title": "Include damaged copies (傷有り)",
            "type": "boolean",
            "description": "On by default. Adds one request that reads the 傷有り (damaged) catalog and reports how much cheaper a damaged copy is (median discount vs the same card in normal condition). Turn it off to run with 2 requests instead of 3.",
            "default": true
          },
          "inStockOnly": {
            "title": "In-stock cards only",
            "type": "boolean",
            "description": "Off by default: out-of-stock cards keep their listed price and are part of the market picture. Turn on to restrict every statistic to cards the shop can actually ship today.",
            "default": false
          },
          "includeIndividualCards": {
            "title": "Include individual cards",
            "type": "boolean",
            "description": "Off by default: a run costs a flat $0.02 for the market summary. Enable to also get one record per card (card number, name, rarity, sell price, buy-back price, spread, damaged price, stock, detail URL) at +$0.002 per card. Images and product descriptions are never returned.",
            "default": false
          },
          "maxRecords": {
            "title": "Max individual card records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Caps how many individual card records are returned (and billed) when 'Include individual cards' is on. The market summary always covers every card found, whatever this value is.",
            "default": 100
          },
          "convertToUsd": {
            "title": "Convert prices to USD",
            "type": "boolean",
            "description": "Adds USD statistics next to JPY using the current exchange rate (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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}