{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Local Business & Places Search Scraper",
    "description": "[ 1k/1.49$ ] Facebook Local Business & Places Search Scraper finds local business Pages and places for a location, with optional category and keyword filters, from Facebook's public Places directory. Optional enrichment adds followers, address, phone, website, email, hours and reviews.",
    "version": "0.1",
    "x-build-id": "Wogg4vOTx9Awqs1ig"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alpha-scraper~facebook-local-business-places-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alpha-scraper-facebook-local-business-places-search-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/alpha-scraper~facebook-local-business-places-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alpha-scraper-facebook-local-business-places-search-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/alpha-scraper~facebook-local-business-places-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alpha-scraper-facebook-local-business-places-search-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": {
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City and region or country, e.g. Austin, Texas or Paris, France. A country name uses its cities (see 'More cities'). It is matched by name against Facebook's public Places directory."
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "More locations, in the same format as 'Location'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country hint",
            "type": "string",
            "description": "Optional country, e.g. United States. Speeds up the lookup of the locations."
          },
          "cityUrls": {
            "title": "City URLs",
            "uniqueItems": true,
            "type": "array",
            "description": "Direct Facebook Places city URLs, e.g. https://www.facebook.com/places/Things-to-do-in-Austin-Texas/106224666074625/.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "type": "array",
            "description": "Keep only places of these categories. Tab names select a whole list: restaurants, bars, cafe, hotels, museum, nightlife, outdoor, shopping, sightseeing (synonyms such as coffee, pub, hotel or park also work). Any other text, e.g. pizza or dentist, is matched against the place name and categories. A place matches if it fits any entry. Empty keeps all places.",
            "default": [
              "cafe",
              "shopping",
              "restaurants"
            ],
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Extra filter: every word must occur in the place name or its categories, e.g. coffee roasters."
          },
          "includeEventVenues": {
            "title": "Include event venues",
            "type": "boolean",
            "description": "Also include the Page venues of the events that the city page recommends.",
            "default": true
          },
          "nearLatitude": {
            "title": "Near latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Radius filter, together with 'Near longitude' and 'Radius': keep only places within the radius of this point. Places without coordinates are dropped, and enrichment is switched on automatically if it was off."
          },
          "nearLongitude": {
            "title": "Near longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Longitude of the radius filter centre (needs 'Near latitude' and 'Radius')."
          },
          "radiusKm": {
            "title": "Radius",
            "minimum": 0,
            "type": "number",
            "description": "Radius of the filter around 'Near latitude' / 'Near longitude'. Empty or 0 disables the radius filter."
          },
          "enrich": {
            "title": "Enrichment level",
            "enum": [
              "full",
              "ids",
              "none"
            ],
            "type": "string",
            "description": "How much is fetched for every place. Full adds 2 requests per place (followers, likes, address, coordinates, phone, website, email, hours, price range, recommend percentage and review count). Basic adds 1 request (page id, followers, likes). Off returns the listing data only.",
            "default": "full"
          },
          "deepEnrich": {
            "title": "Deep enrichment",
            "type": "boolean",
            "description": "Only with 'Enrichment level' set to Full: 2 more requests per place for the About description, creation date, ad status and owner.",
            "default": false
          },
          "moreCities": {
            "title": "More cities",
            "minimum": 0,
            "type": "integer",
            "description": "Extra cities of the same country to crawl after each resolved city. The country list is in popularity order, not geographic. If 'Location' is only a country name, this many of its cities are used (5 when 0).",
            "default": 0
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of places in total, across all cities.",
            "default": 15
          },
          "workers": {
            "title": "Enrichment workers",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Number of parallel clients used for enrichment (1 to 4). Only used when enrichment is on.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}