{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Page Search Scraper: Pages by Keyword",
    "description": "Facebook Page search by keyword, no login: public Pages Facebook's search lists for your words, with name, id, link, picture, badge (none on another route's rows). Add-ons: contacts (category, followers, address, phone, e-mail, website), Ad Library facts. City and country filters. Pay per Page.",
    "version": "0.1",
    "x-build-id": "7w3H6k8K9Y1GAz91z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~facebook-page-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-facebook-page-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/automation_craft~facebook-page-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-facebook-page-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/automation_craft~facebook-page-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-facebook-page-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": {
          "searchQueries": {
            "title": "Keywords",
            "type": "array",
            "description": "The words to search Facebook's Page search for, one per line: a trade and a place (dentist london, boulangerie paris), a brand (nike), a niche (yoga studio). Facebook's own Page search links (facebook.com/search/pages/?q=...) are read too. Facebook matches ANY ONE word of a keyword in a Page's name, so dentist london also finds Pages named only Dentist or only London: use the name match setting or the location filters to narrow it. Also read under the keys queries, keywords, keyword, query, search, searchTerms, categories and startUrls. Up to 500 a run; one keyword given twice is read once.",
            "items": {
              "type": "string"
            }
          },
          "pageUrls": {
            "title": "Page links",
            "type": "array",
            "description": "Facebook Page links read directly, without a search: facebook.com/<username>, facebook.com/people/<name>/<id>/, facebook.com/profile.php?id=<id>, or a Page id. Each is read from its public About section or contact page (the Page details add-on: turn it on), so each delivered Page is charged a Page and a Page details event. Page links put among the keywords (or startUrls) are read the same way. Read after the keyword searches; a link to a Page the run already delivered is free.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Pages per keyword",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most Pages delivered for one keyword (Pages left out by a filter are not counted). 100 when left out. Facebook ends a keyword's list by itself after about 45 to 500 Pages (measured in November 2026): a higher number never brings more than Facebook shows. Also read as resultsLimit, resultsPerQuery, maxResults, max_results."
          },
          "maxItems": {
            "title": "Pages per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The most Pages one run delivers over all keywords. No limit when left out (the per keyword number and your charge limit bound the run)."
          },
          "maxSearchPages": {
            "title": "Results pages per walk",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most results pages one walk of a keyword reads (Facebook shows about 16 Pages a page). No limit when left out: the walk reads to Facebook's own end of the list or the Pages per keyword. Also read as maxPages."
          },
          "searchPasses": {
            "title": "Walks per keyword",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many times each keyword is searched, each time on a fresh Facebook search session. Facebook's list differs from one search to the next (a second search of dentist london added 98 Pages to 96): every extra walk delivers only Pages no walk of the run delivered, so repeats are never charged. A later walk ends after 10 results pages in a row that bring no Page to deliver. 1 when left out."
          },
          "searchCountry": {
            "title": "Search from country",
            "type": "string",
            "description": "A two letter country code (GB, US, FR, DE ...). Facebook answers a logged out search with the Pages it shows to a visitor of that country, and lists more local Pages for it (dentist london from Britain: 303 Pages, 204 of them not in the list Facebook shows from the US). The search calls then go out from Apify residential exits of that country; the Page details add-on keeps the proxy below. Left out: Apify's datacenter exits, which Facebook sees as the US."
          },
          "includePageDetails": {
            "title": "Page details (add-on)",
            "type": "boolean",
            "description": "Reads each delivered Page's public details: in English runs with Apify's default exits its About section first, with its Contact and basic info page as the fallback (and the only door in other languages or with other proxies): category, followers and likes, address and its map link, phone numbers, e-mail addresses, websites, rating with its review count, the hours line Facebook shows (Open now, Closed now, Always open), price range, services, service area, languages, WhatsApp numbers, other accounts (Instagram, TikTok ...) and the classic page id; the cover photo comes with the contact page only. Charged as a Page details event per Page whose details were read; a Page whose details neither door could read is not charged for them (a keyword's Page is then delivered without them; with a details filter, or as a Page link, it is left out free). Also read as includeDetails, fetchDetails, enrichPages.",
            "default": false
          },
          "includePageTransparency": {
            "title": "Page transparency (add-on)",
            "type": "boolean",
            "description": "Adds each Page's facts from Meta's Ad Library to its row: whether it runs ads now and how many (runningAds, activeAdsCount), the date the Page was created, its name changes, the countries its admins are in, its linked Instagram account and its Ad Library link. Read by the classic page id the Page details add-on reads, so it needs that add-on on. Charged as one Page transparency event per Page whose facts were read. Also read as includeTransparency, includeAdStatus.",
            "default": false
          },
          "language": {
            "title": "Language of the details",
            "enum": [
              "en-US",
              "en-GB",
              "de-DE",
              "fr-FR",
              "es-ES",
              "es-LA",
              "it-IT",
              "pt-BR",
              "pt-PT",
              "nl-NL",
              "pl-PL",
              "sv-SE",
              "da-DK",
              "nb-NO",
              "fi-FI",
              "cs-CZ",
              "ro-RO",
              "hu-HU",
              "el-GR",
              "tr-TR",
              "ru-RU",
              "uk-UA",
              "ar-AR",
              "he-IL",
              "hi-IN",
              "id-ID",
              "ms-MY",
              "th-TH",
              "vi-VN",
              "ja-JP",
              "ko-KR",
              "zh-CN",
              "zh-TW"
            ],
            "type": "string",
            "description": "The language the contact page is read in (the Accept-Language Facebook answers): the texts Facebook translates (categories, the rating and hours lines, the follower text, the country in an address) come back in it. The numbers read from those texts (followers, likes, rating percent, review count) are read in English only, so with another language they stay empty and the follower filters cannot be used. English (en-US) when left out.",
            "default": "en-US"
          },
          "verifiedOnly": {
            "title": "Verified Pages only",
            "type": "boolean",
            "description": "Delivers only Pages with Facebook's blue badge (in the search results). Also read as onlyVerified.",
            "default": false
          },
          "nameMatch": {
            "title": "Name must match the keyword",
            "enum": [
              "any",
              "all_words",
              "phrase"
            ],
            "type": "string",
            "description": "Facebook matches any one word of a keyword. all_words keeps only Pages whose name holds every word of it (whole words, case and accents set aside); phrase keeps only Pages whose name holds the words in order. any when left out.",
            "default": "any"
          },
          "excludeWords": {
            "title": "Leave out Pages with these words",
            "type": "array",
            "description": "Pages whose name or description holds any of these words or phrases (whole words, case and accents set aside) are left out, free. A run with excluded words reads Facebook's own search only: when Facebook refuses it, the other search routes are not used.",
            "items": {
              "type": "string"
            }
          },
          "pageCategories": {
            "title": "Page categories",
            "type": "array",
            "description": "Keeps Pages whose Facebook category holds one of these words or phrases (Dentist, Bakery, Real Estate Agent, Restaurant ...; whole words, case set aside). Needs the Page details add-on.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations in the address",
            "type": "array",
            "description": "Keeps Pages whose address holds one of these places as whole words: a city, a district, a state, a postcode (London, Chicago, IL, 75011). Facebook's search takes no location for a logged out visitor, so the place is read from each Page's own address (the Page details add-on). Pages without an address are left out unless the next setting keeps them. Combine with countries: London alone also matches London, KY. Also read as location, cities, city. Needs the Page details add-on.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries in the address",
            "type": "array",
            "description": "Keeps Pages whose address names one of these countries: two letter codes (GB, US, DE) or English names. Read from each Page's own address (the Page details add-on). Also read as country. Needs the Page details add-on.",
            "items": {
              "type": "string"
            }
          },
          "includePagesWithoutAddress": {
            "title": "Keep Pages without an address",
            "type": "boolean",
            "description": "With locations or countries set, a Page that shows no address is delivered too (its row says so) instead of being left out. About a quarter of local business Pages show none (19 of 74 dentist london Pages read).",
            "default": false
          },
          "minFollowers": {
            "title": "Minimum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keeps Pages with at least this many followers. Facebook writes large counts cut (1.2K is 1,200 to 1,299): a Page whose count could be on either side of the bound is left out, free. Needs the Page details add-on."
          },
          "maxFollowers": {
            "title": "Maximum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keeps Pages with at most this many followers (small local businesses). The same cut counts rule as above. Needs the Page details add-on."
          },
          "requireEmail": {
            "title": "Only Pages with an e-mail",
            "type": "boolean",
            "description": "Keeps Pages that show an e-mail address in their contact and basic info (About section or contact page). Needs the Page details add-on.",
            "default": false
          },
          "requirePhone": {
            "title": "Only Pages with a phone",
            "type": "boolean",
            "description": "Keeps Pages that show a phone number in their contact and basic info (About section or contact page). Needs the Page details add-on.",
            "default": false
          },
          "requireWebsite": {
            "title": "Only Pages with a website",
            "type": "boolean",
            "description": "Keeps Pages that show a website. Needs the Page details add-on.",
            "default": false
          },
          "withoutWebsite": {
            "title": "Only Pages without a website",
            "type": "boolean",
            "description": "Keeps Pages that show no website (leads for web design work). Needs the Page details add-on.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify's datacenter exits by default (Facebook answers them logged out). Apify residential exits of a country, no proxy (the run container's own address) or your own proxy links work too. Also read as proxy."
          },
          "maxConcurrency": {
            "title": "Page details read at once",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many Pages' details (the Page details add-on: the About section or the contact page) are read at the same time, each from its own exit; the Pages are still delivered in the search's order. 1 when left out: Facebook lets each address of Apify's datacenter exits read only a handful of contact pages, so on them parallel reads meet its login wall far more often (measured: 83 percent of tries with 3 at once against 41 percent with 1). More than 1 helps with your own proxies or residential exits."
          },
          "requestDelayMs": {
            "title": "Pause between search calls (ms)",
            "minimum": 300,
            "maximum": 10000,
            "type": "integer",
            "description": "The pause between two search calls of one keyword. 400 when left out."
          },
          "maxRunSeconds": {
            "title": "Stop after (seconds)",
            "minimum": 60,
            "maximum": 86400,
            "type": "integer",
            "description": "Ends the run after this many seconds with the Pages read so far delivered; each keyword's coverage row says where it stopped."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}