Bright Data · Arazzo Workflow

Bright Data Monitor a Snapshot and Cancel a Stuck Job

Version 1.0.0

Read snapshot progress, pull the log on errors, and cancel a job that is still running.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Web DataWeb ScrapingProxyResidential ProxyDatacenter ProxyISP ProxyMobile ProxySERPWeb UnlockerScraping BrowserDataset MarketplaceMCPAI AgentsArazzoWorkflows

Provider

bright-data

Workflows

monitor-and-cancel-snapshot
Inspect a snapshot's progress and log, and cancel it if still running.
Reads the progress of a snapshot, retrieves its log for inspection, and cancels the snapshot when it is still running rather than already finished.
3 steps inputs: apiToken, snapshotId outputs: cancelResult, log, status
1
readProgress
Read the snapshot progress, capturing its status and error count.
2
readLog
Retrieve the snapshot log to inspect collection detail before deciding whether to cancel.
3
cancelSnapshot
Cancel the snapshot because it is still running, stopping further budget consumption.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Bright Data Monitor a Snapshot and Cancel a Stuck Job
  summary: Read snapshot progress, pull the log on errors, and cancel a job that is still running.
  description: >-
    An operational governance pattern for the Web Scraper API. The workflow
    reads a snapshot's progress, retrieves its log to inspect what happened, and
    branches: when the snapshot is still running it issues a cancel so the job
    stops consuming budget. Every step spells out its request inline so the flow
    can be read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: scrapeApi
  url: ../openapi/bright-data-scrape-api-openapi.yml
  type: openapi
- name: snapshotsApi
  url: ../openapi/bright-data-snapshots-api-openapi.yml
  type: openapi
workflows:
- workflowId: monitor-and-cancel-snapshot
  summary: Inspect a snapshot's progress and log, and cancel it if still running.
  description: >-
    Reads the progress of a snapshot, retrieves its log for inspection, and
    cancels the snapshot when it is still running rather than already finished.
  inputs:
    type: object
    required:
    - apiToken
    - snapshotId
    properties:
      apiToken:
        type: string
        description: Bright Data API token used as a Bearer credential.
      snapshotId:
        type: string
        description: Identifier of the snapshot to monitor and possibly cancel.
  steps:
  - stepId: readProgress
    description: >-
      Read the snapshot progress, capturing its status and error count.
    operationId: getScrapeProgress
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: snapshot_id
      in: path
      value: $inputs.snapshotId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
      errors: $response.body#/errors
  - stepId: readLog
    description: >-
      Retrieve the snapshot log to inspect collection detail before deciding
      whether to cancel.
    operationId: getSnapshotLog
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: snapshot_id
      in: path
      value: $inputs.snapshotId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      log: $response.body
    onSuccess:
    - name: stillRunning
      type: goto
      stepId: cancelSnapshot
      criteria:
      - context: $steps.readProgress.outputs.status
        condition: $ == "running"
        type: jsonpath
    - name: alreadyDone
      type: end
      criteria:
      - context: $steps.readProgress.outputs.status
        condition: $ != "running"
        type: jsonpath
  - stepId: cancelSnapshot
    description: >-
      Cancel the snapshot because it is still running, stopping further budget
      consumption.
    operationId: cancelSnapshot
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: snapshot_id
      in: path
      value: $inputs.snapshotId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      cancelResult: $response.body
  outputs:
    status: $steps.readProgress.outputs.status
    log: $steps.readLog.outputs.log
    cancelResult: $steps.cancelSnapshot.outputs.cancelResult

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/bright-data-web-scraper-monitor-cancel-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.