{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Business Leads Without a Website",
    "description": "Find local businesses without a website, or with a dead one, from public Facebook business pages. Phone, email, website check, lapsed-domain flag and lead score. No login. Works with AI agents via MCP.",
    "version": "0.0",
    "x-build-id": "S25t2ZA3M3ugIs9t7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/marielise.dev~facebook-business-lead-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-marielise.dev-facebook-business-lead-finder",
        "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/marielise.dev~facebook-business-lead-finder/runs": {
      "post": {
        "operationId": "runs-sync-marielise.dev-facebook-business-lead-finder",
        "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/marielise.dev~facebook-business-lead-finder/run-sync": {
      "post": {
        "operationId": "run-sync-marielise.dev-facebook-business-lead-finder",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "discover",
              "urls",
              "watch"
            ],
            "type": "string",
            "description": "discover: find pages of businesses in an area through OpenStreetMap (businesses mapped in OSM with a Facebook link). urls: check the Facebook pages you list. watch: re-check a saved set of pages and return only new pages and changes (lost or gained website, new email or phone, went dormant, reactivated).",
            "default": "discover"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, town or area, ideally with its country, for example \"Lisbon, Portugal\" or \"Austin, TX\". Geocoded with OpenStreetMap Nominatim. Discovery uses the public OpenStreetMap Overpass API and usually takes under 2 minutes (up to about 6 when its servers are overloaded); results are cached for 7 days so a repeat search for the same area is much faster; coverage is strong in European cities and thin in the US. Required in discover mode; optional discovery source in watch mode. If discover runs with no location, categories or page URLs at all, it runs a 10-result demo for restaurants without a website in Lisbon."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Search radius around the location centre, 1 to 50 km.",
            "default": 25
          },
          "categories": {
            "title": "Business categories",
            "type": "array",
            "description": "Business types to search, for example restaurant, cafe, hairdresser, plumber, electrician, dentist, gym, florist, bakery, car repair, accountant, hotel. Terms are understood in the selected language (en, pt, es, fr, de). Raw OpenStreetMap tags such as shop=bakery or craft=roofer also work. Unknown terms are listed in the run summary.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Category language",
            "enum": [
              "en",
              "pt",
              "es",
              "fr",
              "de"
            ],
            "type": "string",
            "description": "Language of your category terms and of the place names returned by the geocoder. Facebook pages are always read in English so the fields parse the same way everywhere.",
            "default": "en"
          },
          "pageUrls": {
            "title": "Facebook page URLs",
            "type": "array",
            "description": "Used in urls mode, and as extra pages to watch in watch mode. Accepts full URLs (https://www.facebook.com/yourpage), facebook.com/yourpage, @handle, a bare page name or a numeric page id. Groups, events, posts and personal profiles are skipped. facebook.com/share/<id> and fb.me links are resolved (best effort); unresolvable ones are skipped as invalid_url.",
            "items": {
              "type": "string"
            }
          },
          "mapsDatasetId": {
            "title": "Google Maps dataset ID",
            "type": "string",
            "description": "Optional. The ID of a dataset produced by a Google Maps scraper run, for example a search for \"plumber in Austin\". Many small businesses enter their Facebook page as their website on Google Maps; those rows are checked on Facebook. Rows that list a Facebook link next to a real website are kept unless the website filter is \"no\", in which case they are dropped before any Facebook request and cost nothing. Works in every mode: in urls mode it can replace Facebook page URLs, in watch mode it adds pages to the watch list. Reads up to 5,000 rows. Reading the dataset is free; checked pages are billed like any other page. Useful where OpenStreetMap has few Facebook links, but yield varies: in US test searches only 0 to 3 percent of Google Maps rows listed a Facebook page."
          },
          "hasWebsite": {
            "title": "Website filter",
            "enum": [
              "any",
              "yes",
              "no",
              "broken"
            ],
            "type": "string",
            "description": "no: only pages without a real website (no website, only a Facebook link, or only a social, link-in-bio or directory page such as Zomato, TheFork or Deliveroo). yes: only pages with their own domain or a site-builder page. broken: only businesses whose listed website (on Facebook, in OpenStreetMap or on Google Maps) is dead: the domain does not resolve, the server errors or times out, the certificate is invalid, the domain is parked or for sale, or it redirects to a social page. any: no filter.",
            "default": "any"
          },
          "hasEmail": {
            "title": "Only pages with an email",
            "type": "boolean",
            "description": "Keep only pages that publish an email address.",
            "default": false
          },
          "hasPhone": {
            "title": "Only pages with a phone number",
            "type": "boolean",
            "description": "Keep only pages that publish a phone number.",
            "default": false
          },
          "minFollowers": {
            "title": "Minimum followers",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Skip pages with fewer followers. 0 means no minimum.",
            "default": 0
          },
          "maxFollowers": {
            "title": "Maximum followers",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Skip pages with more followers, useful to exclude chains and brands. Leave empty for no maximum. Must be at least the minimum."
          },
          "activeWithinDays": {
            "title": "Posted within (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep only pages whose newest visible post is at most this many days old. Pages with no readable post are excluded when this is set. Leave empty to keep dormant pages too."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum lead records returned across all sources. You are billed $0.03 per record returned. In watch mode this caps change records.",
            "default": 100
          },
          "maxScannedPages": {
            "title": "Max pages checked",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper bound on Facebook pages fetched, so strict filters cannot run on forever. 0 means automatic: five times Max results, at most 5,000.",
            "default": 0
          },
          "fetchAbout": {
            "title": "Fetch the About tab",
            "type": "boolean",
            "description": "Also reads the About tab of pages that pass your filters, but only when it can add something: a missing email, address or postcode, or a website that is still in doubt for the no or broken website filter. Adds the postcode, the full website URL, social profile platforms and service area, and double-checks the no-website verdict. Billed as about-enrichment ($0.015 per lead), only for returned leads whose About tab was actually read.",
            "default": false
          },
          "checkAds": {
            "title": "Check the Meta Ad Library",
            "type": "boolean",
            "description": "Checks whether each returned page is running Facebook ads right now and the approximate number of active ads, using the public Ad Library. Runs a browser: give the run 2,048 to 4,096 MB of memory. Billed as ads-check ($0.05 per lead), only when the check gives a definite answer. When off, isRunningAds is null.",
            "default": false
          },
          "checkDomain": {
            "title": "Suggest a domain name",
            "type": "boolean",
            "description": "For each returned lead without a working website, builds a domain from the business name (country domain and .com) and checks through RDAP whether it is still free. Country domains whose registry has no public RDAP service (for example .pt, .es, .de, .it, .gr) are checked through DNS, which can only show that a name is taken. When a listed website no longer resolves, also checks whether the business's own domain has lapsed. Free of charge.",
            "default": true
          },
          "checkUnlistedPages": {
            "title": "Broken filter: also check businesses with no website on record",
            "type": "boolean",
            "description": "Only used with the broken website filter. By default, businesses whose OpenStreetMap or Google Maps entry lists no website are skipped without a Facebook request, because few of them turn out to list a dead website on Facebook. Turn on to check them too. In a Lisbon test this doubled the leads (19 instead of 9) but the run cost $1.685 instead of $0.335, because each extra page checked costs scan-no-result ($0.015) and most return nothing. Pages you list in pageUrls are always checked.",
            "default": false
          },
          "watchId": {
            "title": "Watch ID",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9 _-]{0,59}$",
            "type": "string",
            "description": "Name of the watch list, for example lisbon-restaurants. Required in watch mode. Snapshots are kept in a named key-value store in your account, so the next run with the same ID returns only new pages and changes. Unchanged pages cost the scan-no-result event ($0.015 each)."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies are strongly recommended; Facebook flags datacenter IPs quickly. The proxy country defaults to the country of the discovered location.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "healthCheck": {
            "title": "Health check (for scheduled monitoring)",
            "type": "boolean",
            "description": "For scheduled monitoring of the actor itself. Runs urls mode on the pages in Facebook page URLs and fails the run if any page returns no record, if a record lacks name, category, page id or followers, or if more than half of the records have neither phone nor email. Nothing is charged in a health-check run. Use pages you know are public business pages and keep the filters off.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}