{
  "openapi": "3.0.1",
  "info": {
    "title": "Primark Product Scraper",
    "description": "Get Primark product data by URL, product ID, keyword search or category in 17 countries and local currency. Prices and was-prices, every size, UK click & collect stock, store ranging, images and categories as clean JSON. From $4/1,000 products.",
    "version": "0.1",
    "x-build-id": "tHSdlDeigURzKd5w7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/native_emblem~primark-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-native_emblem-primark-product-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/native_emblem~primark-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-native_emblem-primark-product-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/native_emblem~primark-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-native_emblem-primark-product-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",
        "properties": {
          "productUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "Primark product page URLs from any country site, e.g. https://www.primark.com/en-gb/p/... Each URL is fetched in its own country. To price a product in other countries, put its product code in Product IDs and pick the countries under Storefronts.",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product IDs",
            "type": "array",
            "description": "Primark product codes: the 12-digit code at the end of a product URL (one color), a 9-digit style code (returns every color), or a 9-digit size SKU. Fetched in every selected storefront.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keyword search, ranked like the search box on primark.com (e.g. \"jeans\", \"pyjamas\"). Search in the storefront's language for best results (e.g. \"Jeans\" in Germany, \"pigiama\" in Italy).",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category URLs",
            "type": "array",
            "description": "Primark category pages, e.g. https://www.primark.com/en-gb/c/women/clothing/jeans, or a bare path like women/clothing/jeans (then fetched in every selected storefront). A URL with a country in it is fetched in that country.",
            "items": {
              "type": "string"
            }
          },
          "fullCatalog": {
            "title": "Full catalog",
            "type": "boolean",
            "description": "Every product in the selected storefronts (about 14,000 in the UK; 150,000+ across all 18 storefronts). The filters below still apply. Set a max charge or Max items if you only want part of it.",
            "default": false
          },
          "locales": {
            "title": "Storefronts",
            "type": "array",
            "description": "Which country sites to use for Product IDs, Search terms, bare category paths and Full catalog. Each storefront returns its own assortment, local currency and language.",
            "items": {
              "type": "string",
              "enum": [
                "en-gb",
                "en-ie",
                "en-us",
                "de-de",
                "de-at",
                "fr-fr",
                "fr-be",
                "nl-nl",
                "nl-be",
                "es-es",
                "it-it",
                "pt-pt",
                "pl-pl",
                "cs-cz",
                "sk-sk",
                "hu-hu",
                "ro-ro",
                "sl-si"
              ],
              "enumTitles": [
                "United Kingdom (GBP)",
                "Ireland (EUR)",
                "United States (USD)",
                "Germany (EUR)",
                "Austria (EUR)",
                "France (EUR)",
                "Belgium, French (EUR)",
                "Netherlands (EUR)",
                "Belgium, Dutch (EUR)",
                "Spain (EUR)",
                "Italy (EUR)",
                "Portugal (EUR)",
                "Poland (PLN)",
                "Czechia (CZK)",
                "Slovakia (EUR)",
                "Hungary (HUF)",
                "Romania (RON)",
                "Slovenia (EUR)"
              ]
            },
            "default": [
              "en-gb"
            ]
          },
          "allLocales": {
            "title": "All storefronts",
            "type": "boolean",
            "description": "Shortcut: use all 18 storefronts (17 countries; Belgium has a French and a Dutch site).",
            "default": false
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "Lowest current price, in the storefront's currency (e.g. 5 = £5 in the UK)."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Highest current price, in the storefront's currency."
          },
          "clearanceOnly": {
            "title": "Clearance only",
            "type": "boolean",
            "description": "Only marked-down items (these carry a was-price).",
            "default": false
          },
          "clickAndCollectInStockOnly": {
            "title": "Click & collect in stock only",
            "type": "boolean",
            "description": "Only items with click & collect stock. Click & collect is offered in the UK storefront only.",
            "default": false
          },
          "newSince": {
            "title": "New since",
            "type": "string",
            "description": "Only items first listed on or after this date, e.g. 2026-10-01, or a relative period like \"14 days\"."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Order of search and category results. Matters when Max products per query cuts the list short.",
            "default": ""
          },
          "maxProductsPerQuery": {
            "title": "Max products per query",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many products to keep for each search term or category, per storefront. Default 200.",
            "default": 200
          },
          "maxItems": {
            "title": "Max items (total)",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many products across everything. Leave empty for no limit."
          },
          "includeVariants": {
            "title": "Include sizes",
            "type": "boolean",
            "description": "Add a per-size list to every product: SKU, size, price, was-price, click & collect stock and active flag. Same price either way.",
            "default": true
          },
          "includeStoreRanging": {
            "title": "Include store ranging (add-on)",
            "type": "boolean",
            "description": "Add the Primark store numbers where each size is ranged (carried by the store). Says which stores stock the line, not live shelf stock. Paid add-on: +$1 per 1,000 products.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}