{
  "openapi": "3.0.1",
  "info": {
    "title": "GoFood Restaurant Scraper (Indonesia)",
    "description": "Scrape GoFood restaurants in Indonesia: ratings, delivery fees, ETA, promos, cuisines, opening hours, coordinates and featured dishes with prices.",
    "version": "0.0",
    "x-build-id": "9o5AR7LaUzwrymgn6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ariadev~gofood-restaurant-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ariadev-gofood-restaurant-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/ariadev~gofood-restaurant-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ariadev-gofood-restaurant-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/ariadev~gofood-restaurant-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ariadev-gofood-restaurant-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": [
          "locations"
        ],
        "properties": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "City names (e.g. Jakarta Selatan, Bandung, Surabaya, Bali, Medan, Makassar, Yogyakarta, Tarakan...) or exact coordinates as \"latitude,longitude\" (e.g. \"-6.2615,106.8106\"). GoFood returns restaurants that deliver to each point, so use several points to cover a big city.",
            "default": [
              "Jakarta Selatan"
            ],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories / cuisines",
            "type": "array",
            "description": "Which GoFood lists to scrape for every location. Note: GoFood returns ~50 restaurants for NEAR_ME, while cuisine lists and 'Cheap delivery' paginate to hundreds. For maximum coverage enable 'Scrape all categories'.",
            "items": {
              "type": "string",
              "enum": [
                "NEAR_ME",
                "MOST_LOVED",
                "FINAL_CHEAP_WEB_APP",
                "MARTABAK",
                "SOTO_BAKSO_SOP",
                "SNACKS_JAJANAN",
                "NOODLES",
                "BAKERY",
                "BEVERAGES",
                "CHINESE",
                "BURGER_SANDWICH",
                "FAST_FOOD",
                "JAPANESE",
                "SATE",
                "PIZZA_PASTA",
                "KOREAN",
                "SEAFOOD",
                "COFFEE",
                "INDIAN",
                "MIDDLE_EASTERN"
              ],
              "enumTitles": [
                "Near me (all restaurants around the location)",
                "Most loved (top rated)",
                "Cheap delivery (Ongkir murah)",
                "Martabak",
                "Bakso & soto",
                "Snacks / jajanan",
                "Noodles",
                "Bakery",
                "Beverages",
                "Chinese",
                "Western / burgers",
                "Fast food",
                "Japanese",
                "Sate",
                "Pizza & pasta",
                "Korean",
                "Seafood",
                "Coffee",
                "Indian",
                "Middle Eastern"
              ]
            },
            "default": [
              "NEAR_ME",
              "FINAL_CHEAP_WEB_APP"
            ]
          },
          "scrapeAllCategories": {
            "title": "Scrape all categories (max coverage)",
            "type": "boolean",
            "description": "Ignores the selection above and scrapes every category for every location. Duplicates are removed, so this is the best way to collect (almost) all restaurants in an area.",
            "default": false
          },
          "customCategoryCodes": {
            "title": "Custom category codes (advanced)",
            "type": "array",
            "description": "Any other GoFood collection/cuisine code you find in the GoFood website URLs, e.g. \"MOST_LOVED\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "brandIds": {
            "title": "Brand IDs (optional)",
            "type": "array",
            "description": "Scrape every outlet of a chain near each location, e.g. McDonald's = 226ea0d5-c763-40dc-aad3-9a233ed04f86, KFC = efa96fcb-553b-4052-a5cd-a9688032a094, Kopi Kenangan = 2b7a33c5-a5e2-4da4-bddc-9825cb038b84. Any restaurant's brandId is included in the output.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSearch": {
            "title": "Max restaurants per location & category",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stops paginating a single list after this many unique restaurants.",
            "default": 100
          },
          "maxResults": {
            "title": "Max restaurants in total",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap for the whole run. 0 = no cap.",
            "default": 0
          },
          "includeFeaturedDishes": {
            "title": "Include featured dishes",
            "type": "boolean",
            "description": "Adds the 1-6 highlighted menu items GoFood shows for each restaurant (name, description, price, promo price, photo).",
            "default": true
          },
          "sortByDistance": {
            "title": "Sort by distance",
            "type": "boolean",
            "description": "Return the closest restaurants first.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "enum": [
              "",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Only restaurants with at least this rating.",
            "default": ""
          },
          "maxDeliveryFeeIdr": {
            "title": "Max delivery fee (IDR)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 5000 = only restaurants with delivery fee up to Rp5.000."
          },
          "maxDishPriceIdr": {
            "title": "Max dish price (IDR)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 30000 = restaurants with dishes up to Rp30.000."
          },
          "onlyDishPromos": {
            "title": "Only restaurants with dish promos",
            "type": "boolean",
            "description": "Only restaurants that currently have discounted dishes.",
            "default": false
          },
          "onlyPopular": {
            "title": "Only popular restaurants",
            "type": "boolean",
            "description": "Only restaurants GoFood marks as popular.",
            "default": false
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "id"
            ],
            "type": "string",
            "description": "Language of cuisine names and promo texts.",
            "default": "en"
          },
          "requestDelaySecs": {
            "title": "Delay between pages (seconds)",
            "minimum": 0,
            "type": "number",
            "description": "Polite random delay between page requests.",
            "default": 1
          },
          "autoProxyFallback": {
            "title": "Automatic connection fallback",
            "type": "boolean",
            "description": "If the selected proxy gets blocked, automatically try a direct connection and then Apify RESIDENTIAL proxy (Indonesia).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "GoFood blocks most datacenter IP ranges (HTTP 403). Recommended and default: Apify Proxy group RESIDENTIAL with country Indonesia (ID). It is available on all Apify plans including Free, and this Actor uses only ~5 MB of proxy traffic per 1,000 restaurants.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "ID"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}