{
  "openapi": "3.0.1",
  "info": {
    "title": "Best Facebook Phone Number Scraper",
    "description": "Find business and profile contact numbers using the Best Facebook Phone Number Scraper. Extract public phone numbers for marketing and lead generation.",
    "version": "1.0",
    "x-build-id": "bQP8Oe7fcQZfGXzRa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/contacts-api~best-facebook-phone-number-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-contacts-api-best-facebook-phone-number-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/contacts-api~best-facebook-phone-number-scraper/runs": {
      "post": {
        "operationId": "runs-sync-contacts-api-best-facebook-phone-number-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/contacts-api~best-facebook-phone-number-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-contacts-api-best-facebook-phone-number-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": [
          "searchTerms",
          "country",
          "sourceRegion",
          "maxPhoneNumbers"
        ],
        "properties": {
          "country": {
            "title": "Country",
            "enum": [
              "United States (+1)",
              "United Kingdom (+44)",
              "Canada (+1)",
              "Australia (+61)",
              "Germany (+49)",
              "France (+33)",
              "India (+91)",
              "Japan (+81)",
              "Brazil (+55)",
              "Italy (+39)",
              "Spain (+34)",
              "Netherlands (+31)",
              "Sweden (+46)",
              "Norway (+47)",
              "Denmark (+45)",
              "Finland (+358)",
              "Poland (+48)",
              "Czech Republic (+420)",
              "Hungary (+36)",
              "Romania (+40)",
              "Bulgaria (+359)",
              "Croatia (+385)",
              "Slovenia (+386)",
              "Slovakia (+421)",
              "Estonia (+372)",
              "Latvia (+371)",
              "Lithuania (+370)",
              "Portugal (+351)",
              "Greece (+30)",
              "Cyprus (+357)",
              "Malta (+356)",
              "Luxembourg (+352)",
              "Ireland (+353)",
              "Belgium (+32)",
              "Austria (+43)",
              "Switzerland (+41)",
              "Liechtenstein (+423)",
              "Iceland (+354)",
              "South Korea (+82)",
              "China (+86)",
              "Mexico (+52)",
              "Argentina (+54)",
              "Chile (+56)",
              "Colombia (+57)",
              "Peru (+51)",
              "Venezuela (+58)",
              "Ecuador (+593)",
              "Uruguay (+598)",
              "Paraguay (+595)",
              "Bolivia (+591)",
              "Saudi Arabia (+966)",
              "United Arab Emirates (+971)",
              "Bahrain (+973)",
              "Israel (+972)",
              "Jordan (+962)",
              "Kuwait (+965)",
              "Lebanon (+961)",
              "Oman (+968)",
              "Qatar (+974)",
              "Bangladesh (+880)",
              "Pakistan (+92)",
              "Sri Lanka (+94)",
              "Thailand (+66)",
              "Viet Nam (+84)",
              "Malaysia (+60)",
              "Singapore (+65)",
              "Philippines (+63)",
              "Indonesia (+62)",
              "New Zealand (+64)",
              "South Africa (+27)",
              "Turkey (+90)",
              "Ukraine (+380)",
              "Russia (+7)"
            ],
            "type": "string",
            "description": "Select the country to target for Google search results.",
            "default": "United States (+1)"
          },
          "maxPhoneNumbers": {
            "title": "Max Phone Numbers",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop scraping after this many phone numbers are found.",
            "default": 20
          },
          "searchTerms": {
            "title": "Search Terms",
            "type": "array",
            "description": "Enter keywords to find Facebook profiles/pages (e.g., 'Fitness Coaches', 'Real Estate').",
            "items": {
              "type": "string"
            }
          },
          "sourceRegion": {
            "title": "Source Type",
            "enum": [
              "All",
              "Profiles",
              "Reels",
              "Posts",
              "Groups",
              "Videos",
              "Photos",
              "Events",
              "Marketplace"
            ],
            "type": "string",
            "description": "Select the type of Facebook page to target.",
            "default": "All"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}