{
  "openapi": "3.0.1",
  "info": {
    "title": "Glovo Scraper - Restaurants, Menus, Grocery Prices & Fees",
    "description": "Scrape Glovo restaurants, supermarkets and shops for any address or a whole city, in Spain, Portugal, Italy, Poland, Romania, Morocco and every other Glovo country. Ratings, delivery fees and times, opening hours, phone, full menus with prices and discounts, and complete supermarket catalogues.",
    "version": "0.0",
    "x-build-id": "AHrjPFgFcP6OXMcR0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lukass~glovo-mp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lukass-glovo-mp",
        "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/lukass~glovo-mp/runs": {
      "post": {
        "operationId": "runs-sync-lukass-glovo-mp",
        "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/lukass~glovo-mp/run-sync": {
      "post": {
        "operationId": "run-sync-lukass-glovo-mp",
        "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": [
          "proxy"
        ],
        "properties": {
          "country": {
            "title": "Country",
            "enum": [
              "es",
              "pt",
              "it",
              "pl",
              "ro",
              "hr",
              "rs",
              "bg",
              "me",
              "ba",
              "md",
              "ge",
              "am",
              "kz",
              "kg",
              "ua",
              "ad",
              "ma",
              "tn",
              "ke",
              "ug",
              "ng",
              "gh",
              "ci"
            ],
            "type": "string",
            "description": "Glovo country to scrape. Addresses and cities are looked up there. Glovo decides per address whether it delivers; the run log says when it does not.",
            "default": "es"
          },
          "locations": {
            "title": "Delivery addresses",
            "type": "array",
            "description": "Addresses or coordinates (\"41.3874,2.1686\") to deliver to, one per line. Each returns the stores that deliver there.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Whole cities",
            "type": "array",
            "description": "City names. The city is covered with a grid of delivery points and every store that delivers anywhere in it is returned once.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Store URLs",
            "type": "array",
            "description": "Glovo store pages to scrape directly, e.g. https://glovoapp.com/es/es/barcelona/stores/kfc-barcelona. Details and menu are always fetched. The store is looked up near the city in the URL, or near the first delivery address above when it is in the same country.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "gridSpacingKm": {
            "title": "City grid spacing (km)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Distance between delivery points when scraping a whole city.",
            "default": 3
          },
          "maxPointsPerCity": {
            "title": "Max delivery points per city",
            "minimum": 1,
            "type": "integer",
            "description": "Caps the grid for very large cities. The points kept are spread evenly over the city.",
            "default": 150
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Which Glovo tabs to list: food (restaurants), groceries (supermarkets and convenience stores), shops (pets, flowers, electronics, gifts...).",
            "items": {
              "type": "string",
              "enum": [
                "food",
                "groceries",
                "shops"
              ],
              "enumTitles": [
                "Food",
                "Groceries",
                "Shops"
              ]
            },
            "default": [
              "food"
            ]
          },
          "searchQueries": {
            "title": "Search",
            "type": "array",
            "description": "Search terms, as typed into the app: a brand (\"McDonald's\") or a dish (\"pizza\"). Each runs at every address and city point, in the first category. Up to 100 stores per search and point.",
            "items": {
              "type": "string"
            }
          },
          "onlyNameMatches": {
            "title": "Only stores named like the search",
            "type": "boolean",
            "description": "Keep only results whose name contains the search term - to find one brand's branches.",
            "default": false
          },
          "nameFilter": {
            "title": "Store name contains",
            "type": "array",
            "description": "Keep only stores whose name contains one of these (case and punctuation ignored).",
            "items": {
              "type": "string"
            }
          },
          "cuisines": {
            "title": "Cuisines",
            "type": "array",
            "description": "Only stores with one of these cuisine tags, matched loosely: \"pizza\", \"sushi\", \"burgers\", \"asian\".",
            "items": {
              "type": "string"
            }
          },
          "onlyOpen": {
            "title": "Only open now",
            "type": "boolean",
            "description": "Skip stores that are closed right now.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only stores rated at least this share of positive ratings, e.g. 90. Glovo rates in percent, not stars."
          },
          "includeSponsored": {
            "title": "Include sponsored listings",
            "type": "boolean",
            "description": "Stores that pay for their place in the list.",
            "default": true
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "restaurants",
              "menuItems"
            ],
            "type": "string",
            "description": "One record per store (with its menu nested), or one record per menu item - easier for spreadsheets and price comparison.",
            "default": "restaurants"
          },
          "fetchMenu": {
            "title": "Fetch store details and menu",
            "type": "boolean",
            "description": "Three extra requests per store for its address, phone, opening hours, service fee and full menu. Turn off for a cheaper list of names, ratings, fees and delivery times only.",
            "default": true
          },
          "includeMenuItems": {
            "title": "Include menu items",
            "type": "boolean",
            "description": "Add every menu item (name, description, price, original price, category, options, photo, sold out) to each store record.",
            "default": true
          },
          "includeGroceryCatalog": {
            "title": "Full grocery catalogue",
            "type": "boolean",
            "description": "For supermarkets and shops (Carrefour, Lewiatan, pet shops...), walk every aisle and return all products with price, original price, category and stock - often 1,000-5,000 per store. About 30 extra requests per store, billed per aisle.",
            "default": false
          },
          "maxPagesPerPoint": {
            "title": "Max list pages per point",
            "minimum": 1,
            "type": "integer",
            "description": "Glovo lists 20 stores per page, open ones first. Caps how deep each delivery point's list goes: 100 pages = 2,000 stores. Central Warsaw has more than 1,000 stores from one point.",
            "default": 100
          },
          "maxItems": {
            "title": "Max stores",
            "type": "integer",
            "description": "Stop after this many stores. Split evenly between sources (each address, city, category and search term). Leave empty for no limit."
          },
          "monitoringMode": {
            "title": "Monitoring mode (only new stores)",
            "type": "boolean",
            "description": "Return only stores that earlier runs of this same search did not list - new openings and stores that started delivering to the area. The first run is the baseline.",
            "default": false
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy uses residential IPs from the selected country by default. Proxy costs are included in the price.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}