Apify
运行 Apify actor 并获取结果
配置
运行 Actor
操作
运行 Actor
Apify API 令牌*
••••••••
Actor ID*
例如:janedoe/my-actor 或 actor ID
Actor 输入
json
{
"startUrl": "https://example.com",
"maxPages": 10
}
超时
Actor 超时时间(秒)
构建
Actor 构建版本(例如:"latest"、"beta" 或构建标签)
运行 Actor(
apify_run_actor_sync)同步运行 APIFY actor 并获取结果(最长 5 分钟)
输入
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
apiKey | string | 是 | 来自 console.apify.com/account#/integrations 的 APIFY API 令牌 |
actorId | string | 是 | Actor ID 或 username/actor-name(例如:"janedoe/my-actor" 或 actor ID) |
input | string | 否 | 以 JSON 字符串形式提供的 Actor 输入。必填字段请参阅 actor 文档。 |
timeout | number | 否 | 超时时间(秒,默认值:actor 默认) |
build | string | 否 | 要运行的 Actor 构建版本(例如:"latest"、"beta" 或构建标签/编号) |
输出
| 参数 | 类型 | 说明 |
|---|---|---|
success | boolean | Actor 运行是否成功 |
runId | string | APIFY 运行 ID |
status | string | 运行状态(SUCCEEDED、FAILED 等) |
items | array | 数据集条目(如果已完成) |
运行 Actor(异步)
操作
运行 Actor(异步)
Apify API 令牌*
••••••••
Actor ID*
例如:janedoe/my-actor 或 Actor ID
Actor 输入
json
{
"startUrl": "https://example.com",
"maxPages": 10
}
超时
Actor 超时时间(秒)
构建
Actor 构建(例如 "latest"、"beta" 或构建标签)
等待完成
初始等待时间(秒,0-60)
条目上限
最多获取的数据集条目数(1-250000)
运行 Actor(异步)(
apify_run_actor_async)以异步方式运行 APIFY Actor,并通过轮询支持长时间运行的任务
输入
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
apiKey | 字符串 | 是 | 来自 console.apify.com/account#/integrations 的 APIFY API 令牌 |
actorId | 字符串 | 是 | Actor ID 或用户名/actor-name (例如 "janedoe/my-actor" 或 actor ID) |
input | 字符串 | 否 | Actor 输入,作为 JSON 字符串 |
waitForFinish | 数字 | 否 | 轮询开始前的初始等待秒数 (0-60) |
itemLimit | 数字 | 否 | 要获取的数据集条目上限 (1-250000,默认 100) |
timeout | 数字 | 否 | 超时秒数 (默认:Actor 默认值) |
build | 字符串 | 否 | 要运行的 Actor 构建 (例如 "latest"、"beta" 或构建标签/编号) |
输出
| 参数 | 类型 | 说明 |
|---|---|---|
success | 布尔值 | Actor 运行是否成功 |
runId | 字符串 | APIFY 运行 ID |
status | 字符串 | 运行状态 (SUCCEEDED、FAILED 等) |
datasetId | 字符串 | 包含结果的数据集 ID |
items | 数组 | 数据集条目 (如果已完成) |
使用说明
将 Apify 集成到你的工作流中。使用自定义输入运行任意 Apify actor 并获取结果。支持同步和异步执行,并自动获取数据集。
注意事项
- 类别:
tools - 类型:
apify