{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Pages by City — Open Data, Not Affiliated with Meta",
    "description": "Facebook Page leads by city: page URL and ID, name, category, address, lat/lon, phone, website, email and other socials, from Overture Maps open data (Meta contribution, CDLA-Permissive-2.0). Never fetches facebook.com; no likes, followers or posts. Not affiliated with Meta. $4 per 1,000 pages.",
    "version": "0.1",
    "x-build-id": "Od6PdmMcUZMzkUoMm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actor-forge~facebook-pages-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actor-forge-facebook-pages-data",
        "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/actor-forge~facebook-pages-data/runs": {
      "post": {
        "operationId": "runs-sync-actor-forge-facebook-pages-data",
        "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/actor-forge~facebook-pages-data/run-sync": {
      "post": {
        "operationId": "run-sync-actor-forge-facebook-pages-data",
        "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": "A city, optionally with region or country: \"Lisbon\", \"Austin, TX\", \"Paris France\". You can also type \"restaurants in Lisbon\" (the part before \"in\" becomes the category when Categories is empty), coordinates \"38.7223,-9.1393,3km\", or a bbox \"west,south,east,north\". 32,000+ cities with 15,000+ people are built in; smaller towns are looked up in Overture's own divisions data and need a region or country. Ignored when bbox or lat/lon are set."
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Plain words (restaurant, dentist, hotel, gym, lawyer, coffee...) or Overture category ids (dental_clinic, italian_restaurant...). A parent category includes its children, so restaurant also returns italian_restaurant. Empty = every business with a Facebook Page in the area. Run with listCategories to see all 2,100+ ids.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Name contains",
            "type": "string",
            "description": "Optional. Only places whose name (or brand name) contains this text, case-insensitive, e.g. \"Starbucks\" or \"dental\".",
            "default": ""
          },
          "maxResults": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many Facebook Pages. Highest-confidence places come first (nearest first for a radius search). Pages beyond the cap are never charged.",
            "default": 500
          },
          "minConfidence": {
            "title": "Minimum confidence",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Overture's 0-1 confidence that the place exists as described. 0.6 (default) drops most stale or duplicate records; 0.9 keeps only well-corroborated places; 0 returns everything.",
            "default": 0.6
          },
          "bbox": {
            "title": "Bounding box",
            "type": "array",
            "description": "Optional [west, south, east, north] in degrees (longitude, latitude, longitude, latitude), e.g. [-9.20, 38.69, -9.10, 38.76]. Up to 1.5 x 1.5 degrees (about one metro area). Takes priority over location."
          },
          "lat": {
            "title": "Latitude",
            "type": "number",
            "description": "Optional centre latitude for a radius search (with lon and radiusKm). Takes priority over location."
          },
          "lon": {
            "title": "Longitude",
            "type": "number",
            "description": "Optional centre longitude for a radius search."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0.1,
            "maximum": 80,
            "type": "number",
            "description": "Radius for lat/lon (default 5 km). With a city name it searches this radius around the city centre instead of the whole city. Results get distanceKm and come nearest first."
          },
          "countryCode": {
            "title": "Country code",
            "type": "string",
            "description": "Optional two-letter ISO code (US, DE, GB...). Picks the right city when a name exists in several countries and keeps only places whose address is in that country.",
            "default": ""
          },
          "requireWebsite": {
            "title": "Only pages with a website",
            "type": "boolean",
            "description": "Skip businesses without a website. Skipped rows are never charged.",
            "default": false
          },
          "requirePhone": {
            "title": "Only pages with a phone",
            "type": "boolean",
            "description": "Skip businesses without a phone number. Skipped rows are never charged.",
            "default": false
          },
          "requireEmail": {
            "title": "Only pages with an email",
            "type": "boolean",
            "description": "Skip businesses without a business email (after the personal-email filter). Skipped rows are never charged.",
            "default": false
          },
          "includePhones": {
            "title": "Include phones",
            "type": "boolean",
            "description": "Business phone numbers as published for the place, normalised to E.164 (+15125550100) where possible.",
            "default": true
          },
          "includeEmails": {
            "title": "Include emails",
            "type": "boolean",
            "description": "Business emails from the source data. Addresses on the business's own website domain and role mailboxes (info@, office@, bookings@...) are kept; free-mail addresses (gmail, outlook...) are kept only when they contain the business name. Others are dropped as possibly personal and counted in droppedPersonalEmails.",
            "default": true
          },
          "matchAlternateCategories": {
            "title": "Also match alternate categories",
            "type": "boolean",
            "description": "Also return places whose secondary (alternate) categories match, not only their main category. Wider but less precise.",
            "default": false
          },
          "includeFields": {
            "title": "Only these output fields",
            "type": "array",
            "description": "Optional. Keep only these fields in each row (facebookUrl is always kept). Any of: facebookUrl, pageHandle, facebookPageId, name, category, categoryHierarchy, phones, websites, emails, otherSocials, address, fullAddress, lat, lon, distanceKm, brand, confidence, sourceUpdatedAt, overtureId, sources, licence, licenceUrls, attribution, overtureRelease, droppedPersonalEmails. Keep attribution if you republish the data.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "listCategories": {
            "title": "List categories only (free)",
            "type": "boolean",
            "description": "Instead of places, output Overture's category list (id, parent, hierarchy, worldwide place count). Filter it with Categories or Name contains, e.g. \"dent\". Free.",
            "default": false
          },
          "release": {
            "title": "Overture release",
            "type": "string",
            "description": "Optional, advanced: pin an Overture release such as 2026-09-23.1. Empty = the newest release (Overture publishes monthly).",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}