{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Profile Scraper",
    "description": "Facebook Profile Scraper SD - Facebook Profile Scraper is a social media data tool that extracts public Facebook profiles and pages: name, id, bio, category, followers, verified badge, work, education, places, websites, email, phone, photos and recent posts, no login.",
    "version": "1.0",
    "x-build-id": "YbMWVQg1Sxy7rtlsJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~facebook-profile-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-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/neuro-scraper~facebook-profile-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-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/neuro-scraper~facebook-profile-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-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": {
          "startUrls": {
            "title": "Profiles or pages",
            "type": "array",
            "description": "Profile/page URLs (www, m., profile.php?id=, /people/Name/123), usernames (zuck) or numeric ids (4), one per line.",
            "items": {
              "type": "string"
            }
          },
          "maxPosts": {
            "title": "Recent posts per profile (0 = profile only)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Also read this many recent public posts (newest first, 3 per request) into \"posts\".",
            "default": 0
          },
          "onlyPostsNewerThan": {
            "title": "Only posts newer than",
            "type": "string",
            "description": "Keep posts published on or after this date: 2026-09-01, a full ISO time, or a relative period such as \"7 days\", \"2 weeks\", \"3 months\", \"1 year\". Empty = no limit."
          },
          "onlyPostsOlderThan": {
            "title": "Only posts older than",
            "type": "string",
            "description": "Keep posts published on or before this date (same formats). Empty = no limit."
          },
          "postKeywords": {
            "title": "Post text contains",
            "type": "array",
            "description": "Keep only posts whose text contains any of these words (one per line).",
            "items": {
              "type": "string"
            }
          },
          "maxComments": {
            "title": "Comments per post (0 = none)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Also read up to this many public comments of every post and attach them as \"comments\". Each comment page is one extra request (about 10 comments per request).",
            "default": 0
          },
          "commentsSort": {
            "title": "Comment order",
            "enum": [
              "relevant",
              "newest",
              "oldest",
              "all"
            ],
            "type": "string",
            "description": "Order of the comments Facebook returns.",
            "default": "relevant"
          },
          "maxRepliesPerComment": {
            "title": "Replies per comment (0 = none)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Also read replies of each comment (nested under \"replies\").",
            "default": 0
          },
          "minFollowers": {
            "title": "Minimum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip profiles with fewer followers (0 = no filter).",
            "default": 0
          },
          "maxFollowers": {
            "title": "Maximum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip profiles with more followers (0 = no filter).",
            "default": 0
          },
          "accountTypes": {
            "title": "Account types",
            "type": "array",
            "description": "Keep only \"profile\" (people) and/or \"page\" (businesses, brands). Empty = both.",
            "items": {
              "type": "string"
            }
          },
          "verifiedOnly": {
            "title": "Verified only",
            "type": "boolean",
            "description": "Skip profiles without the verified badge.",
            "default": false
          },
          "onlyWithContact": {
            "title": "Only with a contact channel",
            "type": "boolean",
            "description": "Skip profiles that publish no email, phone or website.",
            "default": false
          },
          "emailDomains": {
            "title": "Email domains",
            "type": "array",
            "description": "Keep only profiles whose public email is on one of these domains (gmail.com, company.com), one per line. Empty = no filter.",
            "items": {
              "type": "string"
            }
          },
          "onlyChanged": {
            "title": "Only new or changed profiles",
            "type": "boolean",
            "description": "Remember each profile (named key-value store \"facebook-profile-scraper-state\") and return it again only when a field changed; changed fields are listed.",
            "default": false
          },
          "checkAdsLibrary": {
            "title": "Check active ads (Meta Ad Library)",
            "type": "boolean",
            "description": "For Pages: open the public Ad Library and add hasActiveAds (one extra request per Page).",
            "default": false
          },
          "includeTransparency": {
            "title": "Add Page transparency (creation date, ad status)",
            "type": "boolean",
            "description": "For Pages: read the Page transparency tab - creation date, \"running ads\" status, confirmed owner. One extra request of about 16 MB per Page.",
            "default": false
          },
          "outputPreset": {
            "title": "Output preset",
            "enum": [
              "full",
              "compact",
              "contacts"
            ],
            "type": "string",
            "description": "Which fields each row keeps.",
            "default": "full"
          },
          "includeFailedRows": {
            "title": "Output failed inputs",
            "type": "boolean",
            "description": "Also add a row (status + error) for inputs that cannot be read logged out. Off = they are only reported in the log.",
            "default": false
          },
          "maxPostPages": {
            "title": "Max post pages per profile",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Safety stop for the timeline (3 posts per page).",
            "default": 400
          },
          "maxTotalItems": {
            "title": "Max results in total (0 = no total limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Stops the whole run after this many dataset rows (all inputs together).",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Facebook limits logged-out visitors per IP address. Residential proxies (the default) give the most reliable results; the Actor switches to a fresh IP when Facebook refuses one.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}