{
  "openapi": "3.0.1",
  "info": {
    "title": "Makro PRO Thailand Product Prices & Pack Sizes",
    "description": "Search Makro PRO Thailand for groceries, THB prices, pack sizes, promotions and optional details by store. $3 per 1,000 fresh products; one-time free-account trial.",
    "version": "0.1",
    "x-build-id": "GepFXhz2aIE5S0pZF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mai_amm~makro-pro-thailand-product-price-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mai_amm-makro-pro-thailand-product-price-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/mai_amm~makro-pro-thailand-product-price-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mai_amm-makro-pro-thailand-product-price-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/mai_amm~makro-pro-thailand-product-price-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mai_amm-makro-pro-thailand-product-price-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": [
          "keyword"
        ],
        "properties": {
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Thai or English product search phrase, for example ข้าว, นม or milk.",
            "default": "ข้าว"
          },
          "storeCode": {
            "title": "Makro store",
            "enum": [
              "35",
              "46",
              "53",
              "160",
              "138",
              "140",
              "142",
              "144",
              "146",
              "148",
              "152",
              "154",
              "157",
              "14",
              "16",
              "01",
              "08",
              "17",
              "20",
              "22",
              "24",
              "28",
              "32",
              "27",
              "31",
              "34",
              "04",
              "02",
              "06",
              "10",
              "25",
              "38",
              "40",
              "42",
              "44",
              "48",
              "36",
              "47",
              "161",
              "162",
              "163",
              "139",
              "141",
              "143",
              "145",
              "147",
              "149",
              "153",
              "156",
              "158",
              "13",
              "15",
              "18",
              "07",
              "804",
              "12",
              "19",
              "21",
              "23",
              "26",
              "29",
              "30",
              "33",
              "37",
              "05",
              "09",
              "11",
              "39",
              "41",
              "43",
              "45",
              "49",
              "51",
              "54",
              "56",
              "58",
              "60",
              "62",
              "64",
              "66",
              "68",
              "70",
              "72",
              "76",
              "78",
              "80",
              "82",
              "84",
              "86",
              "89",
              "100",
              "103",
              "105",
              "107",
              "109",
              "111",
              "113",
              "115",
              "117",
              "120",
              "122",
              "124",
              "126",
              "128",
              "130",
              "132",
              "134",
              "136",
              "159",
              "168",
              "150",
              "165",
              "166",
              "170",
              "74",
              "50",
              "52",
              "55",
              "57",
              "59",
              "61",
              "63",
              "65",
              "67",
              "69",
              "71",
              "73",
              "75",
              "77",
              "79",
              "81",
              "83",
              "85",
              "87",
              "96",
              "101",
              "102",
              "104",
              "106",
              "108",
              "110",
              "112",
              "114",
              "116",
              "118",
              "119",
              "121",
              "123",
              "125",
              "127",
              "129",
              "131",
              "133",
              "135",
              "137",
              "301",
              "303",
              "167",
              "151",
              "155",
              "164",
              "169",
              "171",
              "03",
              "172",
              "401",
              "402",
              "403",
              "404",
              "405",
              "406",
              "409",
              "411",
              "412",
              "407"
            ],
            "type": "string",
            "description": "Prices and availability are requested for this store. This does not confirm delivery eligibility for every address.",
            "default": "01"
          },
          "language": {
            "title": "Product language",
            "enum": [
              "th",
              "en"
            ],
            "type": "string",
            "description": "Preferred product language; some source fields may only be available in Thai.",
            "default": "th"
          },
          "maxItems": {
            "title": "Maximum products (0 = all)",
            "minimum": 0,
            "type": "integer",
            "description": "Paying accounts: 0 removes the item limit within page/work/charge budgets. Free trial: up to 10 products once.",
            "default": 50
          },
          "includeDetails": {
            "title": "Include product and pricing details",
            "type": "boolean",
            "description": "Attempt descriptions, variant offers and available volume/member prices. Extra platform usage may apply.",
            "default": true
          },
          "sort": {
            "title": "Sort products",
            "enum": [
              "RELEVANCE",
              "PRICE_ASC",
              "PRICE_DESC",
              "PROMOTIONS",
              "RECENTLY_ADDED"
            ],
            "type": "string",
            "description": "Choose the order of the retailer search results.",
            "default": "RELEVANCE"
          },
          "autoCorrect": {
            "title": "Allow search correction",
            "type": "boolean",
            "description": "Allow the retailer to correct the search phrase.",
            "default": false
          },
          "maxPages": {
            "title": "Maximum listing pages",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many listing pages.",
            "default": 10
          },
          "pageSize": {
            "title": "Products per listing page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Source listing page size; the output still respects your item limit.",
            "default": 20
          },
          "maxRequests": {
            "title": "Maximum store reads",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Run-wide work budget, including retries and details.",
            "default": 200
          },
          "maxDownloadMB": {
            "title": "Download budget (MB)",
            "minimum": 1,
            "maximum": 2048,
            "type": "integer",
            "description": "Stop starting further reads after this budget. A final response may cross the limit.",
            "default": 100
          },
          "requestTimeoutSecs": {
            "title": "Timeout per read (seconds)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Timeout for each source read.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}