{
  "openapi": "3.0.1",
  "info": {
    "title": "iFood Restaurants Scraper · City URL discovery · $3/1K",
    "description": "Collect public iFood restaurants by city or from supplied URLs for directory building, entity matching and coverage checks. Exports merchant IDs, slugs and coverage status, no menus yet. $3/1K restaurants.",
    "version": "0.1",
    "x-build-id": "osrncf7Mm6kBFVTxF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mlg14~ifood-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mlg14-ifood-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/mlg14~ifood-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mlg14-ifood-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/mlg14~ifood-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mlg14-ifood-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": {
          "restaurantUrls": {
            "title": "Restaurant URLs",
            "type": "array",
            "description": "Public iFood restaurant URLs to process directly, each with city, slug and merchant ID. Example: https://www.ifood.com.br/delivery/sao-paulo-sp/name/5024be82-d729-41b9-a64f-d44ba306f232. Leave empty to discover by city.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City slug",
            "type": "string",
            "description": "City slug taken from an iFood restaurant URL, used to find restaurants in the public sitemap. Example: fortaleza-ce or sao-paulo-sp. Use it for city discovery; ignored when restaurantUrls is set.",
            "default": "fortaleza-ce"
          },
          "address": {
            "title": "Delivery address",
            "type": "string",
            "description": "Optional delivery address kept as reference text only; it does not filter or rank results. Example: Av. Paulista 1000, Sao Paulo. Leave empty in almost every run because discovery works by city slug.",
            "default": ""
          },
          "query": {
            "title": "Name contains",
            "type": "string",
            "description": "Optional case-insensitive text that the restaurant URL slug must contain. Example: pizza keeps slugs containing pizza. Use it to narrow a city list; leave empty for all restaurants. It is not a full-text search.",
            "default": ""
          },
          "maxRestaurants": {
            "title": "Maximum restaurants",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of unique restaurant records to return, from 1 to 500. Example: 30. Use a small value for tests and cost control, since each returned restaurant record is billed.",
            "default": 50
          },
          "includeMenu": {
            "title": "Request menu",
            "type": "boolean",
            "description": "Request menu data for each restaurant. Allowed values: true or false. Example: true. Leave true by default; when the live page is blocked the menu stays empty and a coverage status says not-extracted.",
            "default": true
          },
          "includeReviews": {
            "title": "Request reviews",
            "type": "boolean",
            "description": "Request public reviews for each restaurant. Allowed values: true or false. Example: true. Set true only if you want review data attempted; leave false by default, since blocked pages return an empty list.",
            "default": false
          },
          "menuMode": {
            "title": "Menu mode",
            "enum": [
              "limited",
              "all"
            ],
            "type": "string",
            "description": "How many menu items to keep when menu data is available. Allowed values: limited, all. Example: limited. Use limited to cap items at maxMenuItems; set all to remove the local cap.",
            "default": "limited"
          },
          "maxMenuItems": {
            "title": "Maximum menu items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Local cap on menu items per restaurant when menuMode is limited, from 1 to 500. Example: 50. Use a lower value for smaller records; it has no effect when menuMode is all or menus are blocked.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy settings for network requests. Example: {\"useApifyProxy\": true}. Leave empty to start with datacenter access and escalate only if sitemap requests are blocked."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}