{
  "openapi": "3.0.1",
  "info": {
    "title": "Coop Sverige Store Locator Scraper",
    "description": "Scrape Coop Sverige's store locator - every Coop, Stora Coop, X:tra, Coop Forum, Coop Mini and Coop Kök & Café location in Sweden with address, phone, coordinates, opening hours, and services.",
    "version": "1.0",
    "x-build-id": "snZ8C7cMNjAforCV3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~coop-sverige-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-coop-sverige-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~coop-sverige-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-coop-sverige-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~coop-sverige-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-coop-sverige-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",
              "byStoreIds"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "query": {
            "title": "Keyword search",
            "type": "string",
            "description": "Free-text match against store name, city, and address (mode=search)."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Exact city match, e.g. `Stockholm`, `Göteborg`, `Malmö` (mode=search)."
          },
          "postalCodePrefix": {
            "title": "Postal code starts with",
            "type": "string",
            "description": "Filter stores whose postal code starts with this prefix, e.g. `111` for central Stockholm (mode=search)."
          },
          "concept": {
            "title": "Store concept / banner",
            "enum": [
              "any",
              "coop",
              "storaCoop",
              "coopForum",
              "coopPrisvart",
              "xtra",
              "coopKokCafe",
              "coopMini"
            ],
            "type": "string",
            "description": "Filter by Coop Sverige store banner (mode=search).",
            "default": "any"
          },
          "nearLatitude": {
            "title": "Near latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Center latitude for a geo radius search. Must be set together with `nearLongitude` (mode=search)."
          },
          "nearLongitude": {
            "title": "Near longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Center longitude for a geo radius search. Must be set together with `nearLatitude` (mode=search)."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0.1,
            "maximum": 1000,
            "type": "number",
            "description": "Max distance from the near-location point. Only applies when `nearLatitude`/`nearLongitude` are set.",
            "default": 10
          },
          "hasService": {
            "title": "Must offer service",
            "enum": [
              "",
              "ATG-ombud",
              "Apoteksombud",
              "Bageri",
              "Bring",
              "Budbee",
              "Catering",
              "Coop Snabbkassa",
              "DHL paket",
              "Fotoautomat",
              "Frimärksombud",
              "Hämta – beställ och hämta i butiken",
              "Instabox",
              "Kontantkort, mobil",
              "Kök & Café",
              "Lokaltrafikkort",
              "Manuell delikatessdisk",
              "Manuell fiskdisk",
              "Posten Brev & paket",
              "Salladsbar",
              "Scan & Pay",
              "Schenker Privpak paket",
              "ShopExpress",
              "Svenska spel - online",
              "Systembolagsombud",
              "Utbetalningskort/Värdeavi"
            ],
            "type": "string",
            "description": "Only include stores that offer this service (checked via the store detail endpoint — forces detail fetch even if `includeDetails` is off) (mode=search).",
            "default": ""
          },
          "staffing": {
            "title": "Staffing type",
            "enum": [
              "",
              "ALWAYS_MANNED",
              "PARTLY_UNMANNED",
              "ALWAYS_UNMANNED"
            ],
            "type": "string",
            "description": "Only include stores with this staffing model (checked via the store detail endpoint — forces detail fetch even if `includeDetails` is off) (mode=search).",
            "default": ""
          },
          "storeIds": {
            "title": "Store IDs (mode=byStoreIds)",
            "type": "array",
            "description": "Numeric Coop store IDs to look up directly, e.g. `598` (Coop Krylbo). Find IDs via mode=search first.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include full details (services, opening hours, flyers & staffing)",
            "type": "boolean",
            "description": "Fetch services list, full weekly/holiday/department opening hours, current weekly-offer flyers, staffing type, owner info, and always-open/temporary-closure status per store. Adds one extra request per store, so runs are slower. Always on for mode=byStoreIds.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 800,
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}