{
  "openapi": "3.0.1",
  "info": {
    "title": "iFood Scraper: Restaurants, Phones, Hours, Locations, No Login",
    "description": "iFood restaurants in Brazil: address with map position, phone, CNPJ company number, category, price range, opening hours, minimum order and chain. By state or city. No menus. From $1 per 1,000 results, platform usage included.",
    "version": "0.1",
    "x-build-id": "c4R4L5gkUN0e6TYj9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one_dollar_store~ifood-restaurants-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one_dollar_store-ifood-restaurants-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/one_dollar_store~ifood-restaurants-scraper/runs": {
      "post": {
        "operationId": "runs-sync-one_dollar_store-ifood-restaurants-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/one_dollar_store~ifood-restaurants-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-one_dollar_store-ifood-restaurants-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": {
          "states": {
            "title": "States",
            "type": "array",
            "description": "Brazilian states to read, by two letter code. Leave empty for all states in the sitemap.",
            "items": {
              "type": "string",
              "enum": [
                "ac",
                "al",
                "am",
                "ap",
                "ba",
                "ce",
                "df",
                "es",
                "go",
                "ma",
                "mg",
                "ms",
                "mt",
                "pa",
                "pb",
                "pe",
                "pi",
                "pr",
                "rj",
                "rn",
                "ro",
                "rr",
                "rs",
                "sc",
                "se",
                "sp",
                "to"
              ],
              "enumTitles": [
                "Acre (AC)",
                "Alagoas (AL)",
                "Amazonas (AM)",
                "Amapa (AP)",
                "Bahia (BA)",
                "Ceara (CE)",
                "Distrito Federal (DF)",
                "Espirito Santo (ES)",
                "Goias (GO)",
                "Maranhao (MA)",
                "Minas Gerais (MG)",
                "Mato Grosso do Sul (MS)",
                "Mato Grosso (MT)",
                "Para (PA)",
                "Paraiba (PB)",
                "Pernambuco (PE)",
                "Piaui (PI)",
                "Parana (PR)",
                "Rio de Janeiro (RJ)",
                "Rio Grande do Norte (RN)",
                "Rondonia (RO)",
                "Roraima (RR)",
                "Rio Grande do Sul (RS)",
                "Santa Catarina (SC)",
                "Sergipe (SE)",
                "Sao Paulo (SP)",
                "Tocantins (TO)"
              ]
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "City slugs as they appear in the ifood.com.br address, city name then state, for example cruz-ce, ipaba-mg, rio-das-ostras-rj. Leave empty to read the states above.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Food categories",
            "type": "array",
            "description": "Keep restaurants whose main category contains one of these words, for example Pizza, Lanches, Japonesa, Brasileira, Acai. Use iFood's Portuguese names.",
            "items": {
              "type": "string"
            }
          },
          "priceRanges": {
            "title": "Price ranges",
            "type": "array",
            "description": "Keep restaurants with these iFood price bands, from cheapest to most expensive.",
            "items": {
              "type": "string",
              "enum": [
                "CHEAPEST",
                "CHEAP",
                "MODERATE",
                "EXPENSIVE",
                "MOST_EXPENSIVE"
              ],
              "enumTitles": [
                "Cheapest",
                "Cheap",
                "Moderate",
                "Expensive",
                "Most expensive"
              ]
            }
          },
          "enabledOnly": {
            "title": "Enabled restaurants only",
            "type": "boolean",
            "description": "Skip restaurants that iFood marks as switched off.",
            "default": true
          },
          "withPhoneOnly": {
            "title": "With a phone number only",
            "type": "boolean",
            "description": "Keep restaurants that show a phone number.",
            "default": false
          },
          "withCnpjOnly": {
            "title": "With a CNPJ only",
            "type": "boolean",
            "description": "Keep restaurants that show a company tax number (CNPJ).",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 10,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many restaurants. Each restaurant is one result.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. iFood answers Apify addresses directly for these calls, so leave this empty. If iFood starts refusing, the run switches to the Apify datacenter proxy by itself."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}