{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Pages Scraper & Monitor ($3/1K)",
    "description": "No login or cookies. Get a Facebook business page's phone, email, website, address, category, rating and exact follower count. Start from page links or business websites, keep only pages that list an email, and monitor changes like new contacts or ads started, with Slack or Discord alerts.",
    "version": "0.2",
    "x-build-id": "peVhbSh4LH1FBrahP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hydedata~facebook-pages-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hydedata-facebook-pages-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/hydedata~facebook-pages-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hydedata-facebook-pages-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/hydedata~facebook-pages-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hydedata-facebook-pages-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": {
          "pages": {
            "title": "Facebook pages",
            "type": "array",
            "description": "One page per line: a page link (https://www.facebook.com/katzsdeli), its username (katzsdeli) or its numeric ID (100064806517961). Links like /p/Name-123, /people/Name/123 and profile.php?id=123 work too. Page names can't be looked up, so paste the link, or the business's website below.",
            "items": {
              "type": "string"
            }
          },
          "websites": {
            "title": "Business websites (find their Facebook page)",
            "type": "array",
            "description": "One website per line (katzsdelicatessen.com). The Actor reads each site's homepage for its Facebook link and scrapes that page. Each row says how sure the match is: high when the page lists the same website, medium when only the site links to the page. Sites with no Facebook link come back as not-found and aren't charged.",
            "items": {
              "type": "string"
            }
          },
          "pagesFileUrl": {
            "title": "Or upload a list",
            "type": "string",
            "description": "A text or CSV file with Facebook page links, usernames, IDs or websites. Every Facebook link in the file is used; with none, the first column of each line is. Upload a file or paste a link to one."
          },
          "includeDetails": {
            "title": "More details (creation date, ad status, verified badge, cover photo)",
            "type": "boolean",
            "description": "Adds the date the page was created, whether it's running ads right now, its verified badge, cover photo and following count. Charged as a separate add-on per page, and only when those details could be read.",
            "default": false
          },
          "compactOutput": {
            "title": "Compact output (for AI agents)",
            "type": "boolean",
            "description": "Fewer fields per page: name, category, intro, website, email, phone, WhatsApp, Instagram, address, followers, rating, price range and open status. Fields a page doesn't list are left out of its row. Made for AI agents and MCP clients, where every field costs tokens. Same price, and filters, monitor mode and alerts work the same.",
            "default": false
          },
          "requireFields": {
            "title": "Only pages that list",
            "type": "array",
            "description": "Deliver a page only when it lists every field picked here. Pages without them are dropped before you're charged, so a lead list only costs you leads you can contact.",
            "items": {
              "type": "string",
              "enum": [
                "email",
                "phone",
                "website",
                "address"
              ],
              "enumTitles": [
                "An email",
                "A phone number",
                "A website",
                "An address"
              ]
            }
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "type": "integer",
            "description": "Upper limit of pages delivered by the whole run. Leave empty for no limit."
          },
          "monitorMode": {
            "title": "Monitor mode (changes only)",
            "type": "boolean",
            "description": "Remembers each page from run to run and only outputs the ones that changed, with what changed: phone, email, website, address, followers, rating, reviews, and with More details also ads started or stopped. Use with a Schedule. The first run returns every page as the baseline. Pages with no change aren't output and cost a smaller check fee instead of a full page.",
            "default": false
          },
          "trackChanges": {
            "title": "Changes to watch",
            "type": "array",
            "description": "What counts as a change in monitor mode.",
            "items": {
              "type": "string",
              "enum": [
                "contact",
                "profile",
                "followers",
                "reviews",
                "ads"
              ],
              "enumTitles": [
                "Contact details (address, phone, email, website, WhatsApp)",
                "Profile (name, categories, intro text, price range)",
                "Follower and like counts",
                "Rating and review count",
                "Started or stopped running ads, verified badge (needs More details)"
              ]
            },
            "default": [
              "contact",
              "profile",
              "followers",
              "reviews"
            ]
          },
          "minFollowerChangePercent": {
            "title": "Min follower change (%)",
            "minimum": 0,
            "type": "number",
            "description": "Report follower or like count changes of at least this percent, when follower counts are watched.",
            "default": 5
          },
          "includeUnchanged": {
            "title": "Also output unchanged pages",
            "type": "boolean",
            "description": "In monitor mode, output every page each run, marked changed or unchanged. Every row is charged as a page.",
            "default": false
          },
          "notifyWebhookUrl": {
            "title": "Send results to a webhook (optional)",
            "type": "string",
            "description": "Paste a Discord or Slack incoming webhook URL to get each run's pages as a message. In monitor mode each page says what changed (e.g. Followers 4,450 → 4,854 (+9.08%), Phone: (512) 555-0100 → (512) 555-0199). Any other URL gets the rows as JSON. Only sent when the run delivers something, so quiet monitor runs stay silent."
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Also send alerts to Telegram. Create a bot with @BotFather and paste its token here."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "The chat, group or channel ID the bot posts to."
          },
          "stateStoreName": {
            "title": "Monitor state store name",
            "type": "string",
            "description": "Named key-value store that keeps monitor memory between runs. Use different names to run independent monitors.",
            "default": "facebook-pages-monitor-state"
          },
          "stateRetentionDays": {
            "title": "Forget pages after (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Pages not checked for this many days are dropped from monitor memory.",
            "default": 90
          },
          "maxConcurrency": {
            "title": "Sessions at once",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Proxy sessions reading pages at the same time. Small runs use fewer on their own. Lower it if pages come back as failed.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Keep this on RESIDENTIAL. Facebook sends datacenter IPs to its login page.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}