{
  "openapi": "3.0.1",
  "info": {
    "title": "IKEA Store Locator & Shelf Stock Tracker",
    "description": "Find IKEA stores across 50+ markets with weekly and holiday hours, then check shelf stock by article number for every store in a country: quantity, stock level, click-and-collect, restock dates and aisle/bin locations. No login or proxy needed.",
    "version": "1.0",
    "x-build-id": "Em6VdL49wCXrpfn27"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~ikea-store-stock-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-ikea-store-stock-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/xyrelith-data~ikea-store-stock-scraper/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-ikea-store-stock-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/xyrelith-data~ikea-store-stock-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-ikea-store-stock-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": [
              "stores",
              "stock",
              "storeStock",
              "search"
            ],
            "type": "string",
            "description": "What to fetch: a store directory, shelf stock for article numbers or product URLs, shelf stock joined with full store details, or a keyword product search followed by shelf stock.",
            "default": "stores"
          },
          "countries": {
            "title": "Countries for the store directory",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "One or more IKEA markets for mode=stores. Each market returns every published store with hours, holiday exceptions, departments and pickup details.",
            "items": {
              "type": "string",
              "enum": [
                "ae",
                "at",
                "au",
                "be",
                "bh",
                "ca",
                "ch",
                "cl",
                "co",
                "cz",
                "de",
                "dk",
                "ee",
                "eg",
                "es",
                "fi",
                "fr",
                "gb",
                "hr",
                "hu",
                "ie",
                "il",
                "in",
                "it",
                "jo",
                "jp",
                "kr",
                "kw",
                "lt",
                "lv",
                "ma",
                "mx",
                "my",
                "nl",
                "no",
                "nz",
                "om",
                "ph",
                "pl",
                "pt",
                "qa",
                "ro",
                "rs",
                "sa",
                "se",
                "sg",
                "si",
                "sk",
                "th",
                "ua",
                "us"
              ],
              "enumTitles": [
                "United Arab Emirates",
                "Austria",
                "Australia",
                "Belgium",
                "Bahrain",
                "Canada",
                "Switzerland",
                "Chile",
                "Colombia",
                "Czechia",
                "Germany",
                "Denmark",
                "Estonia",
                "Egypt",
                "Spain",
                "Finland",
                "France",
                "United Kingdom",
                "Croatia",
                "Hungary",
                "Ireland",
                "Israel",
                "India",
                "Italy",
                "Jordan",
                "Japan",
                "South Korea",
                "Kuwait",
                "Lithuania",
                "Latvia",
                "Morocco",
                "Mexico",
                "Malaysia",
                "Netherlands",
                "Norway",
                "New Zealand",
                "Oman",
                "Philippines",
                "Poland",
                "Portugal",
                "Qatar",
                "Romania",
                "Serbia",
                "Saudi Arabia",
                "Sweden",
                "Singapore",
                "Slovenia",
                "Slovakia",
                "Thailand",
                "Ukraine",
                "United States"
              ]
            },
            "default": [
              "us"
            ]
          },
          "country": {
            "title": "Country",
            "enum": [
              "ae",
              "at",
              "au",
              "be",
              "bh",
              "ca",
              "ch",
              "cl",
              "co",
              "cz",
              "de",
              "dk",
              "ee",
              "eg",
              "es",
              "fi",
              "fr",
              "gb",
              "hr",
              "hu",
              "ie",
              "il",
              "in",
              "it",
              "jo",
              "jp",
              "kr",
              "kw",
              "lt",
              "lv",
              "ma",
              "mx",
              "my",
              "nl",
              "no",
              "nz",
              "om",
              "ph",
              "pl",
              "pt",
              "qa",
              "ro",
              "rs",
              "sa",
              "se",
              "sg",
              "si",
              "sk",
              "th",
              "ua",
              "us"
            ],
            "type": "string",
            "description": "IKEA market for mode=stock, mode=storeStock or mode=search. Article numbers are market-specific: use numbers from the same ikea.com country storefront.",
            "default": "us"
          },
          "language": {
            "title": "Storefront language",
            "enum": [
              "auto",
              "ar",
              "ca",
              "cs",
              "da",
              "de",
              "en",
              "es",
              "et",
              "eu",
              "fi",
              "fr",
              "gl",
              "he",
              "hr",
              "hu",
              "it",
              "ja",
              "ko",
              "lt",
              "lv",
              "ms",
              "nl",
              "no",
              "pl",
              "pt",
              "ro",
              "ru",
              "sk",
              "sl",
              "sr",
              "sv",
              "th",
              "uk"
            ],
            "type": "string",
            "description": "Language path used for store metadata and product search. Auto uses each market's primary language; a language the market does not publish falls back automatically.",
            "default": "auto"
          },
          "itemNos": {
            "title": "Article numbers",
            "type": "array",
            "description": "IKEA article numbers for mode=stock or mode=storeStock. Accepts 20631663, 206.316.63, s19384116 and mixed lists. Checked against every store of the chosen country unless store filters narrow it.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "productUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "IKEA product page URLs for mode=stock or mode=storeStock. The URL's own market and language are used, so one run can check products from several countries.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "searchQuery": {
            "title": "Search keyword",
            "type": "string",
            "description": "Keyword for mode=search, e.g. `kallax`, `billy bookcase` or a local-language term. The best matching products are then checked for shelf stock.",
            "default": "kallax"
          },
          "storeIds": {
            "title": "Store IDs",
            "type": "array",
            "description": "Only these IKEA store codes, e.g. 026 or 921. Applies to the store directory and to stock checks, where it also narrows the IKEA request to those stores.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "storeQuery": {
            "title": "Store name, city, state or postal code",
            "type": "string",
            "description": "Free-text store match against name, display name, city, state/province code, postal code and street address, e.g. `Brooklyn`, `CA` or `91007`.",
            "default": ""
          },
          "storeTypes": {
            "title": "Store types (mode=stores)",
            "uniqueItems": true,
            "type": "array",
            "description": "Only these IKEA location types in the store directory. Empty includes every published type.",
            "items": {
              "type": "string",
              "enum": [
                "STORE",
                "SMALL",
                "PAOP",
                "SHOP",
                "FFP"
              ],
              "enumTitles": [
                "IKEA store",
                "IKEA small store",
                "Plan and order point",
                "IKEA shop",
                "External pickup point"
              ]
            },
            "default": []
          },
          "cashAndCarryOnly": {
            "title": "Cash-and-carry stores only (mode=stores)",
            "type": "boolean",
            "description": "Keep only stores flagged for cash and carry.",
            "default": false
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Keep only stock rows where the store carries the item and has at least one unit.",
            "default": false
          },
          "minQuantity": {
            "title": "Minimum quantity",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Keep only rows with at least this many units on hand. Rows from stores that do not carry the item are excluded."
          },
          "includeRestocks": {
            "title": "Include restock forecasts",
            "type": "boolean",
            "description": "Add every planned restock window plus the next earliest date, quantity and reliability for each store.",
            "default": true
          },
          "includeLocations": {
            "title": "Include aisle and bin locations",
            "type": "boolean",
            "description": "Add the in-store shelf locations: self-serve aisle and bin, warehouse division, or contact-staff instruction.",
            "default": true
          },
          "includeChildItems": {
            "title": "Include combination parts",
            "type": "boolean",
            "description": "For sofas, wardrobes and other combination products, add each child article's stock plus the number of complete sets a store can build.",
            "default": true
          },
          "enrichProduct": {
            "title": "Include product details",
            "type": "boolean",
            "description": "Add product name, type, design, price, currency, rating, images, category path and variant count from the same country storefront.",
            "default": true
          },
          "summarizeByProduct": {
            "title": "One row per product (mode=stock, search)",
            "type": "boolean",
            "description": "Emit a product summary instead of one row per store: totals, store counts, the next restock and the stores holding the most units.",
            "default": false
          },
          "maxProducts": {
            "title": "Maximum products to search (mode=search)",
            "minimum": 1,
            "maximum": 255,
            "type": "integer",
            "description": "How many products from the keyword result to check for shelf stock. IKEA returns at most 255 products for one search phrase.",
            "default": 10
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on dataset rows. The run stops as soon as it is reached.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}