跳转到主要内容
POST
Pause a Scraper Studio job
临时停止正在运行的 Bright Data Scraper Studio 作业。作业将停止处理新的输入并转为 paused 状态,之后可通过恢复 Scraper Studio 作业重新启动。 该端点不接受请求体,成功时返回纯文本响应体 OK,而非 JSON。请按文本读取响应,不要对其调用 JSON 解析器。

作业状态行为

已完成的作业无法暂停、恢复或取消。

如何查找作业 ID

使用作业列表端点查找您要暂停的作业 ID:
将返回的 id 值用作 job_id 路径参数。完整参数列表请参见列出 Scraper Studio 作业

何时使用该端点

  • 在目标网站发生故障期间暂停大批量作业,待网站恢复后再继续
  • 在维护窗口期间释放并发资源,用于优先级更高的工作
  • 当作业返回大量 blockeddetect_block 错误时先停止作业,以便调整国家、会话或速率设置
如需永久停止作业,请使用取消 Scraper Studio 作业

相关

授权

Authorization
string
header
必填

Use your Bright Data API Key as a Bearer token in the Authorization header.

How to authenticate:

  1. Obtain your API Key from the Bright Data account settings at https://brightdata.com/cp/setting/users
  2. Include the API Key in the Authorization header of your requests
  3. Format: Authorization: Bearer YOUR_API_KEY

Example:

Learn how to get your Bright Data API key: https://docs.brightdata.com/api-reference/authentication

路径参数

job_id
string
必填

ID of the job to pause

响应

Job paused successfully

The response is of type string.