Facebook 个人主页帖子与完整照片集抓取
Pricing
from $4.49 / 1,000 facebook 个人主页帖子
Go to Apify Store
Facebook 个人主页帖子与完整照片集抓取
抓取 Facebook 公开个人主页的最新与历史帖子,输出机器可读的 JSON 数据:正文、发布时间、作者、互动数据、稳定帖子链接,以及全部可获取的照片链接(含隐藏的 +N 照片集)。支持 Apify API、MCP、日常监控与历史回填。
Facebook 个人主页帖子与完整照片集抓取
Pricing
from $4.49 / 1,000 facebook 个人主页帖子
抓取 Facebook 公开个人主页的最新与历史帖子,输出机器可读的 JSON 数据:正文、发布时间、作者、互动数据、稳定帖子链接,以及全部可获取的照片链接(含隐藏的 +N 照片集)。支持 Apify API、MCP、日常监控与历史回填。
You can access the Facebook 个人主页帖子与完整照片集抓取 programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
{ "openapi": "3.0.1", "info": { "version": "0.1", "x-build-id": "seuxJMshxngGt3TiD" }, "servers": [ { "url": "https://api.apify.com/v2" } ], "paths": { "/acts/spbotdel~facebook-profile-posts-cn/run-sync-get-dataset-items": { "post": { "operationId": "run-sync-get-dataset-items-spbotdel-facebook-profile-posts-cn", "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/spbotdel~facebook-profile-posts-cn/runs": { "post": { "operationId": "runs-sync-spbotdel-facebook-profile-posts-cn", "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/spbotdel~facebook-profile-posts-cn/run-sync": { "post": { "operationId": "run-sync-spbotdel-facebook-profile-posts-cn", "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": [ "profileUrls" ], "properties": { "profileUrls": { "title": "个人主页链接", "type": "array", "description": "必填。公开 Facebook 个人主页的链接、个性化主页地址、数字 ID、profile.php?id=... 链接或 /people/.../<id> 链接。请勿填写公共主页、小组、Marketplace 链接或私密/需登录的个人主页。一次运行最多处理 maxProfilesPerRun 个个人主页。", "items": { "type": "string" } }, "maxProfilesPerRun": { "title": "每次运行的个人主页数量", "minimum": 1, "maximum": 20, "type": "integer", "description": "一次运行中独立处理的个人主页目标最大数量。结果和计费按个人主页倍增。多余的 profileUrls 会被跳过,并在 SUMMARY 中报告。", "default": 10 }, "maxPostsPerProfile": { "title": "每个个人主页的最大帖子数", "minimum": 1, "maximum": 1000, "type": "integer", "description": "每个个人主页返回的最大公开帖子结果数。每个帖子为一个计费结果:10 个个人主页 x 1,000 个帖子约为 10,000 个计费结果。首次测试或日常监控请使用较小数值。如需更深历史,请求至多 1,000 个帖子,然后使用 SUMMARY.profiles[].pointer.nextCursor 继续。", "default": 20 }, "expandAllPhotos": { "title": "展开全部照片", "type": "boolean", "description": "尽力还原藏在 Facebook +N 相册后面的公开照片链接。建议保持开启以获得完整数据;仅在快速预览时关闭。", "default": true }, "omitPinnedPosts": { "title": "忽略置顶帖子", "type": "boolean", "description": "排除个人主页顶部固定的旧置顶帖,让最新帖采集与定时监控更可预测。", "default": true }, "sinceDate": { "title": "起始日期", "type": "string", "description": "可选监控边界。从个人主页头部开始,遇到早于此日期的帖子后停止。请使用 ISO 日期或时间戳。对于精确的已知帖子停止点,优先使用 knownPostIds。 状态路由:每日最新监控 -> knownPostIds(日期截断时用 sinceDate);较旧帖子回填 -> 从 SUMMARY.pointer.nextCursor 获取 startCursor。切勿将回填游标传入最新运行。" }, "knownPostIds": { "title": "已知帖子 ID", "type": "array", "description": "你的系统里已存的帖子 ID。Actor 从最新可见帖子开始,遇到第一个匹配 ID 即停止,最适合无重复花费的定时监控。 状态路由:每日最新监控 -> knownPostIds(日期截断时用 sinceDate);较旧帖子回填 -> 从 SUMMARY.pointer.nextCursor 获取 startCursor。切勿将回填游标传入最新运行。", "items": { "type": "string" } }, "startCursor": { "title": "起始游标", "type": "string", "description": "SUMMARY.pointer.nextCursor 中的游标,用于单个个人主页的更早历史回填。不要拿昨天的游标找新帖子,也不要把一个主页的游标用于另一个。 状态路由:每日最新监控 -> knownPostIds(日期截断时用 sinceDate);较旧帖子回填 -> 从 SUMMARY.pointer.nextCursor 获取 startCursor。切勿将回填游标传入最新运行。" }, "includeRawPayload": { "title": "包含原始数据", "type": "boolean", "description": "高级。保持默认值,除非 SUMMARY 诊断明确指出此开关。 在每条结果中附带解析后的 Facebook 原始数据。仅在调试或研究结构时开启,输出会大很多。", "default": false }, "includeUnavailablePosts": { "title": "包含不可用动态卡片", "type": "boolean", "description": "高级。保持默认值,除非 SUMMARY 诊断明确指出此开关。 返回那些分享或关联内容已被删除或受限的动态卡片。默认关闭,以免空卡片占用帖子名额。", "default": false }, "bootstrapRetries": { "title": "初始化重试", "minimum": 1, "maximum": 10, "type": "integer", "description": "高级。保持默认值,除非 SUMMARY 诊断明确指出此开关。 个人主页解析与初始化失败时,全新代理/会话的重试次数。", "default": 4 }, "graphqlPageRetries": { "title": "翻页重试", "minimum": 0, "maximum": 5, "type": "integer", "description": "高级。保持默认值,除非 SUMMARY 诊断明确指出此开关。 遇到临时性空白、被限流或失败的时间线页面时的重试次数。", "default": 4 }, "proxyCountry": { "title": "代理国家", "type": "string", "description": "高级。保持默认值,除非 SUMMARY 诊断明确指出此开关。 Apify 住宅代理的国家代码(两位字母)。", "default": "US" }, "fallbackProxyCountries": { "title": "限流备用国家", "maxItems": 3, "type": "array", "description": "高级。保持默认值,除非 SUMMARY 诊断明确指出此开关。 仅当 Facebook 在主要国家临时限流或拒绝某个个人主页时,才依次尝试的最多三个住宅代理备用国家。", "items": { "type": "string", "pattern": "^[A-Za-z]{2}$" }, "default": [ "DE", "GB", "NL" ] }, "mediaExpansionConcurrency": { "title": "照片展开并发", "minimum": 1, "maximum": 8, "type": "integer", "description": "高级。保持默认值,除非 SUMMARY 诊断明确指出此开关。 可同时展开公开照片集的帖子数。", "default": 3 }, "mediaSetRetries": { "title": "照片集重试", "minimum": 0, "maximum": 5, "type": "integer", "description": "高级。保持默认值,除非 SUMMARY 诊断明确指出此开关。 每个 Facebook media/set 或永久链接展开请求的重试次数。", "default": 1 }, "debug": { "title": "调试输出", "type": "boolean", "description": "高级。保持默认值,除非 SUMMARY 诊断明确指出此开关。 在 SUMMARY 中附带发现过程与响应诊断信息。", "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 } } } } } } } } }}OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.
OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.
By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.
You can download the OpenAPI definitions for Facebook 个人主页帖子与完整照片集抓取 from the options below:
If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.
You can also check out our other API clients: