{
  "openapi": "3.0.1",
  "info": {
    "title": "ASDA UK Product & Price Scraper",
    "description": "ASDA UK product, price, promotion, taxonomy and store-scoped availability Actor.",
    "version": "1.0",
    "x-build-id": "MNc3xSq8eM1vTDV8x"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dromb~asda-uk-product-price-availability/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dromb-asda-uk-product-price-availability",
        "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/dromb~asda-uk-product-price-availability/runs": {
      "post": {
        "operationId": "runs-sync-dromb-asda-uk-product-price-availability",
        "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/dromb~asda-uk-product-price-availability/run-sync": {
      "post": {
        "operationId": "run-sync-dromb-asda-uk-product-price-availability",
        "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": [
          "task"
        ],
        "properties": {
          "task": {
            "title": "Task",
            "enum": [
              "search",
              "category",
              "shelf",
              "exact_product",
              "product_batch",
              "suggestions"
            ],
            "type": "string",
            "description": "Choose keyword search, taxonomy lookup, exact CIN, CIN batch, or query suggestions.",
            "default": "search"
          },
          "query": {
            "title": "Search query",
            "minLength": 1,
            "maxLength": 300,
            "type": "string",
            "description": "Keyword required by search and suggestions, for example milk, coffee, or shampoo.",
            "default": "milk"
          },
          "cin": {
            "title": "Exact CIN",
            "pattern": "^[0-9]+$",
            "type": "string",
            "description": "ASDA CIN required by exact_product. CINs are returned in product identifiers.",
            "default": "165468"
          },
          "cins": {
            "title": "CIN batch",
            "minItems": 1,
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "CINs required by product_batch. Retrieve up to 100 unique known products in one run.",
            "items": {
              "type": "string",
              "pattern": "^[0-9]+$"
            },
            "default": [
              "165468",
              "2041527",
              "489747"
            ]
          },
          "categoryId": {
            "title": "Category ID",
            "pattern": "^[0-9]+$",
            "minLength": 1,
            "type": "string",
            "description": "Category taxonomy ID required by category. IDs are available in product taxonomy output.",
            "default": "1215660378320"
          },
          "shelfId": {
            "title": "Shelf ID",
            "pattern": "^[0-9]+$",
            "minLength": 1,
            "type": "string",
            "description": "Shelf taxonomy ID required by shelf. IDs are available in product taxonomy output.",
            "default": "1215339438036"
          },
          "priceRegion": {
            "title": "Price field region",
            "enum": [
              "EN",
              "SC",
              "WA",
              "NI"
            ],
            "type": "string",
            "description": "Select England, Scotland, Wales, or Northern Ireland price and promotion fields. This is field selection, not geolocation.",
            "default": "EN"
          },
          "commerceStoreId": {
            "title": "Commerce store ID",
            "pattern": "^[0-9]+$",
            "minLength": 1,
            "maxLength": 50,
            "type": "string",
            "description": "Manual ASDA commerce store ID used for store-scoped availability. Postcode conversion is not included.",
            "default": "4565"
          },
          "inStockOnly": {
            "title": "Only products available at the selected store",
            "type": "boolean",
            "description": "Return only products with positive source stock for the selected commerce store ID.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum Dataset rows. The quick default is 20 and the hard maximum is 1,000.",
            "default": 20
          },
          "pageStart": {
            "title": "Starting page",
            "minimum": 0,
            "maximum": 999,
            "type": "integer",
            "description": "Zero-based Algolia page number.",
            "default": 0
          },
          "hitsPerPage": {
            "title": "Results per source request",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum 100.",
            "default": 60
          },
          "includeSponsored": {
            "title": "Include sponsored products",
            "type": "boolean",
            "description": "Turn off to exclude sponsored products from source results.",
            "default": true
          },
          "includePromotions": {
            "title": "Include promotions",
            "type": "boolean",
            "description": "Include normalized promotion objects and their validity windows when supplied.",
            "default": true
          },
          "includeRatings": {
            "title": "Include ratings",
            "type": "boolean",
            "description": "Include rating average and rating count when supplied.",
            "default": true
          },
          "mode": {
            "title": "Search mode",
            "enum": [
              "deterministic",
              "storefront_parity"
            ],
            "type": "string",
            "description": "Deterministic is recommended. Storefront parity adds source ranking hints while preserving hard filters.",
            "default": "deterministic"
          },
          "requestDelayMs": {
            "title": "Delay after each source request",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Optional delay between successful source requests.",
            "default": 200
          },
          "timeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Per-request timeout.",
            "default": 30
          },
          "maxRetries": {
            "title": "Maximum retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Number of retries for retryable network, HTTP, or invalid-response failures.",
            "default": 2
          },
          "proxyMode": {
            "title": "Direct/proxy order",
            "enum": [
              "direct_only",
              "direct_first",
              "proxy_first",
              "proxy_only"
            ],
            "type": "string",
            "description": "Direct access is the proven default. Choose how optional custom proxies should be attempted.",
            "default": "direct_only"
          },
          "proxyUrls": {
            "title": "Custom proxy URLs",
            "maxItems": 5,
            "uniqueItems": true,
            "type": "array",
            "description": "Encrypted custom HTTP proxy URLs. Required by proxy-first and proxy-only modes.",
            "items": {
              "type": "string",
              "minLength": 8
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}