{
  "openapi": "3.0.1",
  "info": {
    "title": "Rakuma Scraper: Japan Sold Prices & New Listing Alerts",
    "description": "Rakuma (fril.jp) scraper for Japan's flea-market app: search by Japanese or English keyword for sold prices and on-sale listings in JPY, with brand and category. Optional sold-comps summary, new-listing and price-below alerts to Discord, Slack or Telegram. No login. Pay per listing.",
    "version": "1.0",
    "x-build-id": "CsW0ljCn8X2wbqscV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/accountable_eel~rakuma-listing-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-accountable_eel-rakuma-listing-lookup",
        "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/accountable_eel~rakuma-listing-lookup/runs": {
      "post": {
        "operationId": "runs-sync-accountable_eel-rakuma-listing-lookup",
        "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/accountable_eel~rakuma-listing-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-accountable_eel-rakuma-listing-lookup",
        "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": [
          "searches"
        ],
        "properties": {
          "searches": {
            "title": "Rakuma searches to run (Japanese or English keywords)",
            "type": "array",
            "description": "One search per line: keywords like \"ポケモンカード\" or \"supreme\", or paste a fril.jp search link (only its keywords are read; the link is never opened). Rakuma matches loosely, so a keyword it does not know is reported as not found. Accepted formats: ポケモンカード, supreme, https://fril.jp/s?query=nintendo+switch. You pay per listing returned; a search that finds nothing costs nothing.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Sold prices or items on sale",
            "enum": [
              "sold",
              "on-sale"
            ],
            "type": "string",
            "description": "Sold shows what items sold for (each row is a sold listing with its last asking price; Rakuma publishes no sale date). On sale shows what is for sale now.",
            "default": "sold"
          },
          "minPrice": {
            "title": "Lowest price (JPY)",
            "type": "integer",
            "description": "Only listings priced at or above this many yen. Leave empty for no lower limit."
          },
          "maxPrice": {
            "title": "Highest price (JPY)",
            "type": "integer",
            "description": "Only listings priced at or below this many yen. Leave empty for no upper limit."
          },
          "sort": {
            "title": "Order",
            "enum": [
              "newest",
              "price-low",
              "price-high",
              "relevance"
            ],
            "type": "string",
            "description": "Newest first is Rakuma's own newest-first order (use it for monitoring). Price orders sort the whole search by price. Relevance is the site's default.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Most listings to return per search",
            "type": "integer",
            "description": "Rakuma shows 40 listings per page; this actor pages automatically, one request per second, up to 1,000 per search. You pay per listing returned, so this is also your budget control.",
            "default": 40
          },
          "includeCompsSummary": {
            "title": "Add a sold-comps summary row per search",
            "type": "boolean",
            "description": "Off by default. When on, each search also returns one summary row: how many sold and on-sale listings were counted, their median prices in yen and the asking-vs-sold gap in %. It costs one extra request (the other feed's newest 40 listings) and is billed as one summary.",
            "default": false
          },
          "deltaMode": {
            "title": "Monitor: remember what I have seen",
            "type": "boolean",
            "description": "Remember each search between runs and mark every listing as new, price-drop, price-rise or unchanged. Use with a schedule and the newest-first order.",
            "default": false
          },
          "deltaName": {
            "title": "Watchlist name (optional)",
            "type": "string",
            "description": "Leave empty and one is derived from the mode and price limits. Type your own name to keep one memory across changes, or to run several independent watchlists.",
            "default": ""
          },
          "alertOn": {
            "title": "Alert on",
            "enum": [
              "new-listing",
              "price-below",
              "sold"
            ],
            "type": "string",
            "description": "New listing: a listing not seen in an earlier run. Sold: an item that newly appears in the sold feed (mode Sold only). Price below: a new or price-dropped listing at or under your target price.",
            "default": "new-listing"
          },
          "alertPriceBelowJpy": {
            "title": "Target price for \"Price below\" (JPY)",
            "type": "integer",
            "description": "Used only when Alert on is \"Price at or below my target\"."
          },
          "minPriceDropPct": {
            "title": "Count a price drop from (%)",
            "type": "integer",
            "description": "A price change smaller than this counts as unchanged.",
            "default": 5
          },
          "alertOnChangeOnly": {
            "title": "Only return rows that match my alert",
            "type": "boolean",
            "description": "With monitoring on, return and bill only the listings that match \"Alert on\" (the first run, which has nothing to compare with, returns none). A summary row is still returned when you asked for one.",
            "default": false
          },
          "skipFirstRun": {
            "title": "Seed silently (no rows on the first run)",
            "type": "boolean",
            "description": "The first run of a watchlist has nothing to compare with. Turn this on to remember it without returning or billing anything, so alerts start from the second run.",
            "default": false
          },
          "notifyUrl": {
            "title": "Send alerts to (Discord or Slack webhook, Telegram bot link, or any URL)",
            "type": "string",
            "description": "Optional. After a listing is billed, each alert is posted here as one message with title, price and a link (no image). Discord or Slack: paste the channel's webhook URL. Telegram: https://api.telegram.org/bot<token>/sendMessage?chat_id=<chat id>. Any other URL receives JSON. Messages are free, and a failed message never fails the run (the row's notifyErrors says why). The first run of a watchlist sends none. Stored encrypted, never logged or written to the results."
          },
          "notifyFormat": {
            "title": "Message format",
            "enum": [
              "auto",
              "discord",
              "slack",
              "telegram",
              "json"
            ],
            "type": "string",
            "description": "Leave on 'Detect from the link': discord.com links get Discord messages, hooks.slack.com Slack, api.telegram.org Telegram, anything else JSON. Pick one only to override that.",
            "default": "auto"
          },
          "maxNotificationsPerRun": {
            "title": "Most alert messages per run",
            "type": "integer",
            "description": "Up to 100. After this, one 'more alerts' message says the rest are in the run's dataset. 0 sends only that one message.",
            "default": 20
          },
          "testRun": {
            "title": "Try it first — only process the first 5",
            "type": "boolean",
            "description": "Turn this on to test your input on a small sample before running the full list. Turn it off to process everything.",
            "default": false
          },
          "onlyFound": {
            "title": "Hide rows with no result",
            "type": "boolean",
            "description": "Only keep rows where something was actually found. Misses are always free, whether or not you show them here.",
            "default": false
          },
          "includeKeywords": {
            "title": "Only keep rows containing",
            "type": "array",
            "description": "Optional. Only keep results that mention at least one of these words (e.g. a job title, a city, a product name). Leave empty to keep everything.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Skip rows containing",
            "type": "array",
            "description": "Optional. Drop any result that mentions one of these words. Leave empty to skip nothing.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Stop after this many results",
            "minimum": 1,
            "type": "integer",
            "description": "Optional. Stop the run once this many results have been found — useful for a quick, cheap sample. Leave blank for no limit."
          },
          "columns": {
            "title": "Which columns do you want?",
            "type": "array",
            "description": "Choose which pieces of information to include in each result row. All are included by default.",
            "items": {
              "type": "string",
              "enum": [
                "rowType",
                "itemId",
                "url",
                "title",
                "priceJpy",
                "sold",
                "brand",
                "category",
                "categoryId",
                "checkedAt",
                "changeType",
                "previousPriceJpy",
                "priceDropPct",
                "isAlert",
                "isSummary",
                "searchMode",
                "totalAvailable",
                "listingsFetched",
                "truncated",
                "activeCount",
                "soldCount",
                "activeTotal",
                "soldTotal",
                "activeMedianPrice",
                "soldMedianPrice",
                "askVsSoldGapPct",
                "notifyErrors",
                "rows"
              ],
              "enumTitles": [
                "Row type (listing or summary)",
                "Rakuma item ID",
                "Listing link",
                "Title",
                "Price (JPY; for a sold item, its last asking price)",
                "Sold",
                "Brand",
                "Category",
                "Category ID",
                "Checked at",
                "Change since last run (baseline / new / price-drop / price-rise / unchanged; monitoring only)",
                "Price at the last run, JPY (monitoring only)",
                "Price drop since the last run, % (monitoring only)",
                "Matches your alert (monitoring only)",
                "Comps summary row",
                "Mode of the search (sold or on-sale; summary row)",
                "Total matching on Rakuma (summary row)",
                "Listings this run fetched (summary row)",
                "More results were available (summary row)",
                "On-sale listings counted in the summary (summary row)",
                "Sold listings counted in the summary (summary row)",
                "Total on-sale listings matching on Rakuma (summary row)",
                "Total sold listings matching on Rakuma (summary row)",
                "Median asking price of the on-sale listings counted, JPY (summary row)",
                "Median sold price of the sold listings counted, JPY (summary row)",
                "Asking vs. sold median price gap in % (summary row)",
                "Alert delivery problems (empty when the alert arrived)",
                "All rows of the search in one cell (only when one row per listing is turned off)"
              ]
            },
            "default": [
              "rowType",
              "itemId",
              "url",
              "title",
              "priceJpy",
              "sold",
              "brand",
              "category",
              "categoryId",
              "checkedAt",
              "changeType",
              "previousPriceJpy",
              "priceDropPct",
              "isAlert",
              "isSummary",
              "searchMode",
              "totalAvailable",
              "listingsFetched",
              "truncated",
              "activeCount",
              "soldCount",
              "activeTotal",
              "soldTotal",
              "activeMedianPrice",
              "soldMedianPrice",
              "askVsSoldGapPct",
              "notifyErrors",
              "rows"
            ]
          },
          "expandRows": {
            "title": "One row per listing (recommended) — turn off for one row per search instead",
            "type": "boolean",
            "description": "When on, each listing found gets its own row. When off, one row per search carries its listings in the \"rows\" cell. You pay per listing returned either way.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 1,
            "type": "integer",
            "description": "Parallel requests. Keep conservative — this target has no browser fallback, so getting blocked costs more than slow-and-steady.",
            "default": 1
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy config. Rakuma refuses the shared datacenter proxy (HTTP 403), so the default is the RESIDENTIAL proxy from Japan. Leave it as it is.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "JP"
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}