ScrapeNest Runs API

Poll or cancel async runs.

GitHub OpenAPI

Operations 2

GET /v1/scrape/runs/{run_id} Poll an async scrape run by id #
POST /v1/scrape/runs/{run_id}/cancel Cancel a queued or running async scrape run #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/scrapenest-dev:scrapenest-dev-runs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

scrapenest-dev-runs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ScrapeNest Runs API
  description: 'AI search + scraping as an API for developers and AI agents. Send your API key as `Authorization: Bearer sn_...` on every call. Errors are JSON envelopes. The API never answers 502 or 504: an upstream or capacity failure is a 503 with Retry-After.'
  version: 1.0.0
  termsOfService: https://scrapenest.dev/terms
  contact:
    name: ScrapeNest support
    url: https://scrapenest.dev/support
    email: support@scrapenest.dev
servers:
- url: https://scrapenest.dev
security:
- bearerAuth: []
tags:
- name: Runs
  description: Poll or cancel async runs.
paths:
  /v1/scrape/runs/{run_id}:
    get:
      tags:
      - Runs
      summary: Poll an async scrape run by id
      description: Returns the current status of a run created by one of the two async endpoints, /v1/scrape/google-maps/reviews/async and /v1/audio/transcript/async. When status='completed', the `result` field contains the response body in the same shape as the synchronous endpoint.
      operationId: getRun
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
          title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScrapeRunStatusResponse'
        '422':
          description: Error response in ScrapeNest's standard envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        4XX:
          description: Error response in ScrapeNest's standard envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        5XX:
          description: Error response in ScrapeNest's standard envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      externalDocs:
        description: Guide and examples
        url: https://scrapenest.dev/docs#ep-runs
  /v1/scrape/runs/{run_id}/cancel:
    post:
      tags:
      - Runs
      summary: Cancel a queued or running async scrape run
      description: Flips a queued or running run to status='cancelled' and stops (or discards) its background work. Runs bill only on completion, so a run cancelled before it completes is not billed. Already-completed, already-failed and already-cancelled runs are returned as-is without modification; a completed run stays billed. Returns the same body as GET /v1/scrape/runs/{run_id}.
      operationId: cancelRun
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
          title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScrapeRunStatusResponse'
        '422':
          description: Error response in ScrapeNest's standard envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        4XX:
          description: Error response in ScrapeNest's standard envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        5XX:
          description: Error response in ScrapeNest's standard envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      externalDocs:
        description: Guide and examples
        url: https://scrapenest.dev/docs#ep-runs
components:
  schemas:
    ErrorBody:
      properties:
        code:
          type: string
          title: Code
          description: Stable machine-readable error code, e.g. "validation_error".
        message:
          type: string
          title: Message
          description: Human-readable summary of the error.
        details:
          anyOf:
          - items:
              $ref: '#/components/schemas/ErrorDetail'
            type: array
          - type: 'null'
          title: Details
          description: Present on validation errors; one entry per offending field.
        retryable:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Retryable
          description: 'Present on some errors: true when the same request may succeed if retried.'
        retry_after:
          anyOf:
          - type: integer
          - type: 'null'
          title: Retry After
          description: 'Present on rate limits and some throttles: seconds to wait before retrying, the same value as the Retry-After header.'
      additionalProperties: true
      type: object
      required:
      - code
      - message
      title: ErrorBody
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
      - error
      title: ErrorEnvelope
    ErrorDetail:
      properties:
        type:
          anyOf:
          - type: string
          - type: 'null'
          title: Type
          description: Machine-readable error type for this item.
        loc:
          anyOf:
          - items: {}
            type: array
          - type: 'null'
          title: Loc
          description: Path to the offending field, e.g. ["body", "query"].
        msg:
          type: string
          title: Msg
          description: Human-readable description of this error item.
      additionalProperties: true
      type: object
      required:
      - msg
      title: ErrorDetail
    ScrapeRunStatusResponse:
      properties:
        run_id:
          type: string
          title: Run Id
        endpoint:
          type: string
          title: Endpoint
        status:
          type: string
          enum:
          - queued
          - running
          - completed
          - failed
          - cancelled
          title: Status
        created_at:
          type: string
          format: date-time
          title: Created At
        started_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Started At
        completed_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Completed At
        cancelled_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Cancelled At
        expires_at:
          type: string
          format: date-time
          title: Expires At
        credits_charged:
          type: integer
          title: Credits Charged
          default: 0
        error_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Error Code
        error_message:
          anyOf:
          - type: string
          - type: 'null'
          title: Error Message
        progress:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Progress
          description: 'Best-effort progress signal for long-running jobs. Currently populated by Maps reviews scrapers as `{"current": int, "target": int, "detail": str}`. Null for endpoints that don''t emit progress, or before the first progress event is written.'
        result:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Result
          description: Response body (same shape as the synchronous endpoint). Populated once status='completed'.
      type: object
      required:
      - run_id
      - endpoint
      - status
      - created_at
      - expires_at
      title: ScrapeRunStatusResponse
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your ScrapeNest API key, sent as Authorization: Bearer sn_... on every call. Create keys in the dashboard; a key works once the account''s email is verified.'
externalDocs:
  description: Guides, credit costs and error codes
  url: https://scrapenest.dev/docs