{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Profile & Posts Scraper | No Login | Bulk",
    "description": "Scrape public Facebook profiles, pages and recent posts in bulk. Extract contacts, audience and engagement data or discover pages by keyword — no login, cookies or API key.",
    "version": "2.2",
    "x-build-id": "FN5gTju7srsUcCWN1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apivault_labs~facebook-profile-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apivault_labs-facebook-profile-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/apivault_labs~facebook-profile-scraper/runs": {
      "post": {
        "operationId": "runs-sync-apivault_labs-facebook-profile-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/apivault_labs~facebook-profile-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-apivault_labs-facebook-profile-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": {
          "mode": {
            "title": "Scraping mode",
            "enum": [
              "profiles",
              "profilesAndPosts",
              "search"
            ],
            "type": "string",
            "description": "Profiles extracts profile/page details. Profiles + posts also emits recent posts. Search discovers pages by keyword and extracts their profiles.",
            "default": "profiles"
          },
          "profileUrls": {
            "title": "Facebook profile / page URLs or IDs",
            "type": "array",
            "description": "Public Facebook URLs, usernames, profile.php URLs or bare numeric Facebook IDs. Add as many as needed for bulk scraping.",
            "items": {
              "type": "string"
            }
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "For Search mode: discover matching public Facebook pages, then scrape their profiles.",
            "items": {
              "type": "string"
            }
          },
          "searchLocation": {
            "title": "Search location",
            "type": "string",
            "description": "Optional city, region or country appended to every keyword search."
          },
          "maxResultsPerKeyword": {
            "title": "Maximum profiles per keyword",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of discovered Facebook pages scraped for each keyword.",
            "default": 20
          },
          "maxPosts": {
            "title": "Maximum posts per profile / page",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of matching public posts saved for each profile or page.",
            "default": 25
          },
          "postsSince": {
            "title": "Posts from date",
            "type": "string",
            "description": "Optional inclusive start date in YYYY-MM-DD format."
          },
          "postsUntil": {
            "title": "Posts until date",
            "type": "string",
            "description": "Optional inclusive end date in YYYY-MM-DD format."
          },
          "postKeyword": {
            "title": "Post text contains",
            "type": "string",
            "description": "Optional case-insensitive keyword filter for post text.",
            "default": ""
          },
          "scrapePosts": {
            "title": "Legacy: scrape posts",
            "type": "boolean",
            "description": "Backward-compatible API input. Prefer mode=profilesAndPosts for new integrations.",
            "default": false
          },
          "sinceDays": {
            "title": "Legacy: posts from last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Backward-compatible relative filter. postsSince takes precedence when supplied.",
            "default": 0
          },
          "enrichEmailViaGoogle": {
            "title": "Find contacts on linked website",
            "type": "boolean",
            "description": "When Facebook exposes no email or phone, visit the linked public website and check its contact/about pages.",
            "default": true
          },
          "emailDomains": {
            "title": "Email domain filter",
            "type": "array",
            "description": "Keep only emails from these domains. Leave empty to keep every public email.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of profiles processed in parallel.",
            "default": 15
          },
          "timeout": {
            "title": "Timeout per profile",
            "minimum": 10,
            "maximum": 60,
            "type": "integer",
            "description": "Maximum time in seconds for one fetch attempt.",
            "default": 20
          },
          "maxRetries": {
            "title": "Retries per profile",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Retry temporarily failed or blocked profiles.",
            "default": 2
          },
          "dedupe": {
            "title": "Deduplicate inputs and results",
            "type": "boolean",
            "description": "Avoid scraping or saving the same Facebook profile twice.",
            "default": true
          },
          "fastMode": {
            "title": "Fast mode",
            "type": "boolean",
            "description": "Prioritize speed and core fields; some secondary business fields may be absent.",
            "default": false
          },
          "notifyWebhookUrl": {
            "title": "Real-time webhook URL",
            "type": "string",
            "description": "POST every successful profile and post as JSON to an n8n, Make, Zapier or custom webhook.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}