{
  "openapi": "3.0.1",
  "info": {
    "title": "Miniature Market Scraper",
    "description": "Scrape Miniature Market's tabletop-game catalog - search or browse by category, filter by price and stock, and get product name, price, brand, SKU, and image URLs.",
    "version": "1.0",
    "x-build-id": "hjULWrJhYQr2cIl2T"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~miniature-market-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-miniature-market-scraper",
        "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/crawlerbros~miniature-market-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-miniature-market-scraper",
        "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/crawlerbros~miniature-market-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-miniature-market-scraper",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "category"
            ],
            "type": "string",
            "description": "What to fetch: free-text search, or browse a category page.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text query, e.g. a game or product name (mode=search).",
            "default": "Catan"
          },
          "category": {
            "title": "Category (mode=category)",
            "enum": [
              "boardGames",
              "miniaturesGames",
              "tradingCardGames",
              "rolePlayingGames",
              "collectibleMiniatures",
              "accessories",
              "familyFriendlyGames",
              "deals",
              "boardGamesNewArrivals",
              "boardGamesPreorders",
              "boardGamesLastChance",
              "boardGamesMiniatureGames",
              "boardGamesDeckAndCardGame",
              "boardGamesDiceGames",
              "boardGamesCampaignAndLegacyGames",
              "boardGamesSinglePlayerGames",
              "boardGamesTwoPlayerGames",
              "boardGamesCooperativeGames",
              "boardGamesWargames",
              "boardGamesOtherBoardGames",
              "miniaturesNewArrivals",
              "miniaturesPreorders",
              "miniaturesLastChance",
              "miniaturesWarhammer",
              "miniaturesBattletech",
              "miniaturesMalifaux",
              "miniaturesStarWars",
              "miniaturesInfinity",
              "miniaturesHeroscape",
              "miniaturesMarvel",
              "miniaturesConquest",
              "miniaturesWarmachine",
              "miniaturesOther",
              "tcgNewArrivals",
              "tcgPreorders",
              "tcgMagicSingles",
              "tcgMagicTheGathering",
              "tcgPokemon",
              "tcgLorcana",
              "tcgStarWarsUnlimited",
              "tcgFleshAndBlood",
              "tcgOnePiece",
              "tcgGundamCardGame",
              "tcgRiftbound",
              "tcgOther",
              "rpgNewArrivals",
              "rpgPreorders",
              "rpgLastChance",
              "rpgDungeonsAndDragons",
              "rpgPathfinder",
              "rpgStarfinder",
              "rpgStarWars",
              "rpgWarhammerRPGs",
              "rpgArkhamHorror",
              "rpgWorldOfDarkness",
              "rpgStarTrekAdventures",
              "rpgOther",
              "collectibleMinisNewArrivals",
              "collectibleMinisPreorders",
              "collectibleMinisLastChance",
              "collectibleMinisDAndD",
              "collectibleMinisPathfinderBattles",
              "collectibleMinisStarfinderBattles",
              "collectibleMinisGundam",
              "collectibleMinisOther",
              "accessoriesNewArrivals",
              "accessoriesPreorders",
              "accessoriesLastChance",
              "accessoriesDice",
              "accessoriesDiceStorage",
              "accessoriesCardSleeves",
              "accessoriesDeckBoxesAndStorage",
              "accessoriesDiceTraysAndTowers",
              "accessoriesTerrain",
              "accessoriesPaintAndModelTools",
              "accessoriesPlaymats",
              "familyNewArrivals",
              "familyPreorders",
              "familyAges25",
              "familyAges69",
              "familyAges1012",
              "familyPuzzles",
              "dealsDailyDeal",
              "dealsClearance",
              "dealsLastChance"
            ],
            "type": "string",
            "description": "Browse a category or sub-category from the site's real navigation taxonomy (mode=category)."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "bestResult",
              "nameAsc",
              "nameDesc",
              "priceAsc",
              "priceDesc",
              "topseller",
              "newItems",
              "newlyListed"
            ],
            "type": "string",
            "description": "Result ordering, as offered by the site's own sort dropdown.",
            "default": "bestResult"
          },
          "minPrice": {
            "title": "Min price (USD)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Drop products cheaper than this."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Drop products more expensive than this."
          },
          "inStockOnly": {
            "title": "In-stock only",
            "type": "boolean",
            "description": "Exclude preorder items; keep only products immediately purchasable.",
            "default": false
          },
          "manufacturerContains": {
            "title": "Manufacturer / brand contains",
            "type": "string",
            "description": "Case-insensitive substring match against the product's manufacturer/brand (e.g. `Games Workshop`, `Wizards of the Coast`)."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}