查看原始 JSON
{
"type": "object",
"required": [],
"properties": {
"body": {
"type": "object",
"title": "Input schema for Instagram scraper",
"required": [],
"properties": {
"search": {
"type": "string",
"title": "Search query",
"editor": "textfield",
"description": "可选,用文本查找账号、话题标签或地点页面。搜索结合 Instagram 或 Facebook Ads 与 Google 来源,匹配结果可能不同于登录 Instagram 后的搜索结果。",
"sectionCaption": "Scrape based on search query instead of URL",
"sectionDescription": "Instagram search is available indirectly. The scraper gets the data combining results from Instagram (or Facebook Ads) and Google search. For that reason results might be slightly different from what you see on Instagram as a logged in user."
},
"directUrls": {
"type": "array",
"items": {
"type": "string",
"pattern": "https:\\/\\/(www\\.)?instagram\\.com\\/.+"
},
"title": "Instagram URLs you want to scrape",
"editor": "stringList",
"prefill": [
"https://www.instagram.com/humansofny/"
],
"description": "可选,填写互不重复的 HTTPS Instagram 链接,可指向已选账号、帖子、话题标签或地点。通过链接或搜索词确定目标。预填的 humansofny 链接只是示例,不是默认值。",
"uniqueItems": true,
"placeholderValue": "URL"
},
"searchType": {
"enum": [
"user",
"hashtag",
"place"
],
"type": "string",
"title": "Search type",
"editor": "select",
"default": "hashtag",
"prefill": "hashtag",
"enumTitles": [
"Search users",
"Search hashtags",
"Search places"
],
"description": "可选,user 表示账号,hashtag 表示话题标签页面,place 表示地点;默认为 hashtag,仅用于搜索词查询。"
},
"resultsType": {
"enum": [
"posts",
"comments",
"details",
"mentions",
"reels",
"stories"
],
"type": "string",
"title": "What do you want to scrape from each page?",
"editor": "select",
"default": "posts",
"prefill": "posts",
"enumTitles": [
"Scrape posts",
"Scrape comments",
"Scrape details of a profile, post, hashtag or place",
"Scrape profile mentions",
"Scrape profile reels",
" "
],
"description": "可选,默认为 posts(帖子)。comments 只能使用帖子链接;details 获取账号、帖子、话题标签或地点资料;mentions 和 reels 分别采集主页被提及的帖子和主页 Reels。stories 已弃用,不能作为受支持的 Stories 获取模式;采集 Reels 应选择 reels。"
},
"searchLimit": {
"type": "integer",
"title": "Search results limit",
"editor": "number",
"maximum": 250,
"minimum": 1,
"prefill": 1,
"description": "可选,设置搜索请求匹配页面数的上限,范围为 1–250。预填的 1 只是示例,不是默认值。这里计数的是账号、话题标签或地点页面,不是整次请求的帖子数。"
},
"resultsLimit": {
"type": "integer",
"title": "Max results per URL",
"editor": "number",
"minimum": 1,
"prefill": 200,
"description": "可选,设置每个 Instagram 链接的帖子或评论上限,至少为 1。预填的 200 只是示例,不是默认值;该设置未另设最大值。评论还受每个帖子最多 50 条的限制。这不是整次请求的总上限,也不保证返回指定数量。"
},
"addParentData": {
"type": "boolean",
"title": "Add metadata",
"editor": "hidden",
"default": false,
"description": "可选,默认为 false。仅为动态中的记录附加上级来源背景:账号帖子附加账号背景,话题标签帖子附加标签背景。这不等于另行查询完整账号报告。"
},
"onlyPostsNewerThan": {
"type": "string",
"title": "Newer than",
"editor": "datepicker",
"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 时间或 1 days、2 months、3 years 等相对时间。不保证边界包含方式或完整覆盖;这里指发布时间,不是采集时间。"
}
},
"description": "可选,设置通过已选 Instagram 链接或搜索词采集公开记录的方式。根据目标选择适用的结果模式,并提供链接或搜索词以进行有用查询。",
"schemaVersion": 1
}
},
"additionalProperties": false
}