查看原始 JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"title": "Input schema for the empty project actor.",
"required": [
"startUrls"
],
"properties": {
"startUrls": {
"type": "array",
"title": "Facebook URLs",
"editor": "requestListSources",
"example": [
{
"url": "https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl"
}
],
"prefill": [
{
"url": "https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl"
}
],
"description": "必填的已选帖子链接列表,每项以含 url 属性的请求列表条目提交。可使用普通、图片、视频或 Reels 帖子链接;预填链接只是示例。"
},
"viewOption": {
"enum": [
"RANKED_THREADED",
"RECENT_ACTIVITY",
"RANKED_UNFILTERED"
],
"type": "string",
"title": "Comments mode",
"editor": "select",
"default": "RANKED_UNFILTERED",
"example": "RANKED_UNFILTERED",
"enumTitles": [
"Most relevant",
"Newest",
"All"
],
"description": "可选 RANKED_THREADED(最相关)、RECENT_ACTIVITY(最新)或 RANKED_UNFILTERED(全部/不筛选),默认最后一种。“全部”不保证取得所有评论;日期筛选会强制使用 RECENT_ACTIVITY。"
},
"resultsLimit": {
"type": "integer",
"title": "Results amount",
"editor": "number",
"example": 50,
"minimum": 1,
"prefill": 50,
"description": "可选整数,至少为 1;省略时请求尽可能多的结果。预填 50 不是默认值。嵌套回复可能使条数超过请求数量,因此它不是严格总量上限。"
},
"includeNestedComments": {
"type": "boolean",
"title": "Include comment replies",
"editor": "checkbox",
"default": false,
"example": false,
"description": "可选,默认 false。开启后,每个帖子请求最多三层评论与回复,可取得的评论与回复分别作为独立结果返回,不保证完整讨论。"
},
"onlyCommentsNewerThan": {
"type": "string",
"title": "📅 Extract comments that are newer than",
"editor": "datepicker",
"example": "2024-01-01",
"pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^(\\d+)\\s*(minute|hour|day|week|month|year)s?$",
"dateType": "absoluteOrRelative",
"description": "可选,按 UTC 发布时间请求较新评论:可用 YYYY-MM-DD 或 ISO 日期时间作为起始界限,也可指定分钟、小时、天、周、月或年的相对范围。会强制使用 RECENT_ACTIVITY,且可能增加费用。示例日期不是默认值。",
"sectionCaption": "Time frame",
"sectionDescription": "Use this if you only want to scrape comments from a specific period of time."
}
},
"description": "必填请求对象,包含已选 Facebook 帖子列表,以及可选的评论视图、请求数量、嵌套回复和日期设置。",
"schemaVersion": 1
}
},
"additionalProperties": false
}