{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Page Details & Contact Scraper",
    "description": "Get contact details and page info from public Facebook Pages without logging in: email, phone (also in E.164), address, website, social links, category, followers, rating, opening status and recent post links. You only pay for pages delivered; failed pages are free.",
    "version": "0.3",
    "x-build-id": "omZysmLLtXAHtWEPQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataji~facebook-page-contact-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataji-facebook-page-contact-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/dataji~facebook-page-contact-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dataji-facebook-page-contact-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/dataji~facebook-page-contact-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dataji-facebook-page-contact-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",
        "required": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Facebook pages or business websites",
            "type": "array",
            "description": "Facebook Pages to scrape, one per line. Accepted: page links (https://www.facebook.com/NASA), id links (https://www.facebook.com/profile.php?id=100044561550831, /people/.../<id>/), page share links (https://www.facebook.com/share/...), @usernames, plain usernames and numeric page ids. You can also give a business website or bare domain (https://levainbakery.com or levainbakery.com): the actor finds the Facebook Page the site links to and scrapes it (website lookups are free; a site without a Page link gives a free 'noFacebookPage' row). Duplicates are removed. You can upload a text or CSV file, for example the website column of a Google Maps export; Google Maps and image links in the file are skipped. Group and event links, and post, reel or video links that don't name a page, are not Pages and come back as free 'invalidInput' rows.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "includeRecentPostUrls": {
            "title": "Include recent post links",
            "type": "boolean",
            "description": "Add the links (and dates) of the recent posts that Facebook includes in the page itself, usually the latest one. Paste them into our Facebook Comments Scraper to get the comments. The latest post's text, reactions, comments, shares and the page's activity status are always included, at no cost.",
            "default": true
          },
          "includeTransparency": {
            "title": "Page transparency (creation date, running ads)",
            "type": "boolean",
            "description": "Add the page's creation date, whether it is running ads right now, and the confirmed owner, from the page's public transparency section (one extra request per page). Charged as a 'transparency' event only for pages where this data was returned. The Ad Library link (adLibraryUrl) is always included for free.",
            "default": false
          },
          "findEmailOnWebsite": {
            "title": "Find email on website",
            "type": "boolean",
            "description": "For pages that list no email on Facebook but have a website: look for the email on the website's homepage and at most 2 contact pages. Charged as a 'website-email' event only when an email is found and delivered. Phones found on the site are added free (websitePhones).",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only pages with an email",
            "type": "boolean",
            "description": "Deliver only pages with an email (from Facebook, or from the website when 'Find email on website' is on). Other pages come back as free 'filteredOut' rows without page data.",
            "default": false
          },
          "onlyWithPhone": {
            "title": "Only pages with a phone",
            "type": "boolean",
            "description": "Deliver only pages that list a phone on Facebook. Other pages come back as free 'filteredOut' rows.",
            "default": false
          },
          "onlyWithoutWebsite": {
            "title": "Only pages without a website",
            "type": "boolean",
            "description": "Deliver only pages that list no website (for example to sell web design). Other pages come back as free 'filteredOut' rows.",
            "default": false
          },
          "onlyBusinesses": {
            "title": "Only businesses",
            "type": "boolean",
            "description": "Deliver only business pages: pages whose Intro shows an address, phone, price range, opening hours, services or reviews. Brands, media, public figures and creators come back as free 'filteredOut' rows.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages are loaded at the same time, each through its own proxy IP. Higher is faster; lower is gentler and less likely to be blocked.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy (datacenter) is used by default. With the default, a page that is still blocked after two datacenter tries gets its last try on Apify residential proxy automatically, at no extra cost. If you choose a proxy group, country or your own proxy URLs, the actor uses exactly that. Business websites are always loaded through Apify datacenter proxy when Apify Proxy is on.",
            "default": {
              "useApifyProxy": true
            }
          },
          "residentialCountry": {
            "title": "Country of the automatic residential retry",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter country code (for example US, GB, DE) of the residential IP used for the automatic last retry when you keep the default proxy. Facebook shows prices and some labels in the viewer's country style. Default US.",
            "default": "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}