{
  "openapi": "3.0.1",
  "info": {
    "title": "Glovo Scraper: Every Restaurant & Store in a City",
    "description": "Scrape every restaurant, supermarket and shop on Glovo in a city, not just the first 50: cuisine, rating, review count, delivery fee, delivery time, promotions. Spain, Italy, Poland, Portugal, Romania + 19 countries. Export CSV, JSON, Excel.",
    "version": "0.1",
    "x-build-id": "W6mhyUYNLOvKEcnYC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/polderdata~glovo-restaurants-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-polderdata-glovo-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/polderdata~glovo-restaurants-scraper/runs": {
      "post": {
        "operationId": "runs-sync-polderdata-glovo-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/polderdata~glovo-restaurants-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-polderdata-glovo-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": {
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "City names as Glovo writes them (\"Madrid\", \"Barcelona\", \"Milano\", \"Warszawa\", \"Lisboa\", \"Bucharest\") or in English (\"Milan\", \"Warsaw\", \"Lisbon\"). Add a country code if a name exists twice, e.g. \"Valencia, ES\". Glovo serves about 1,330 cities in 24 countries. If cities, countries and URLs are all empty, the Actor uses Madrid.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries (every Glovo city in the country)",
            "type": "array",
            "description": "Two-letter codes, e.g. \"PT\", \"HR\", \"BG\". The Actor visits every Glovo city in the country (Spain: about 360, Italy: about 290, Poland: about 200), so a big country takes hours. Available: ES, IT, PL, PT, RO, BG, HR, SI, RS, ME, BA, AL, MD, UA, GE, AM, KZ, KG, MA, TN, KE, NG, UG, CI.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Glovo pages (advanced)",
            "type": "array",
            "description": "Glovo city or category pages, e.g. https://glovoapp.com/en/es/madrid or a filtered list such as https://glovoapp.com/en/es/madrid/categories/food_1?type=pizza_34701 (copy it from glovoapp.com after choosing a food type). Store pages are not supported.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Which of Glovo's lists to read in each city. \"All\" reads every list the city page shows (including local ones such as fine dining). A store listed in two categories is saved once.",
            "items": {
              "type": "string",
              "enum": [
                "restaurants",
                "groceries",
                "shops",
                "pharmacy",
                "all"
              ],
              "enumTitles": [
                "Restaurants (Food)",
                "Groceries & supermarkets",
                "Shops",
                "Pharmacy & beauty",
                "All categories"
              ]
            },
            "default": [
              "restaurants"
            ]
          },
          "cuisines": {
            "title": "Cuisine / store type",
            "type": "array",
            "description": "Keep only stores whose Glovo tag contains one of these words, e.g. \"Pizza\", \"Sushi\", \"Burgers\", \"Supermarket\" (case and accents ignored). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "minRating": {
            "title": "Minimum rating (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only stores with at least this share of positive ratings, e.g. 90. Stores without a rating yet are left out when this is set."
          },
          "openNowOnly": {
            "title": "Open now only",
            "type": "boolean",
            "description": "Keep only stores that are open at the time of the run.",
            "default": false
          },
          "freeDeliveryOnly": {
            "title": "Free delivery only",
            "type": "boolean",
            "description": "Keep only stores that currently show free delivery.",
            "default": false
          },
          "promotionsOnly": {
            "title": "Promotions only",
            "type": "boolean",
            "description": "Keep only stores with a running promotion (2 for 1, % off, …).",
            "default": false
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "it",
              "pl",
              "pt",
              "ro",
              "fr",
              "uk",
              "bg",
              "hr",
              "sr",
              "ka",
              "ru",
              "ky",
              "kk"
            ],
            "type": "string",
            "description": "Language of Glovo's texts (category names, delivery fee labels, promotion texts) and of the store URLs.",
            "default": "en"
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Stop after this many stores. Madrid alone has about 1,500 restaurants, Warsaw about 1,150. Free Apify plan: at most 100 per run.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: Glovo's pages load without a proxy. Only set one if your runs get 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}