> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapio.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get job result

> Retrieve the completed output of an async job.



## OpenAPI

````yaml get /v1/jobs/{id}/result
openapi: 3.1.0
info:
  title: Scrapio
  version: 1.0.0
  description: >-
    Turn any URL into structured data. Fetch raw HTML, crawl sites, extract
    structured content, interact with dynamic pages, and search the web through
    one API.
  contact:
    name: Scrapio Support
    url: https://scrapio.dev
  license:
    name: Proprietary
servers:
  - url: https://api.scrapio.dev
    description: Production
security:
  - bearerAuth: []
tags:
  - name: System
  - name: Fetch
  - name: Crawl
  - name: Map
  - name: Interact
  - name: Search
  - name: Google
  - name: Fast Search
  - name: Jobs
  - name: YouTube
  - name: Amazon
  - name: Walmart
  - name: Booking
  - name: Agoda
  - name: Airbnb
  - name: ChatGPT
  - name: Perplexity
  - name: Gemini
  - name: Bing
  - name: Reddit
  - name: TikTok
  - name: Apple App Store
  - name: Target
  - name: Monitors
paths:
  /v1/jobs/{id}/result:
    get:
      tags:
        - Jobs
      summary: Get async job result
      description: >-
        Retrieves the completed output of an async job. Returns `409` if the job
        has not finished yet — check `GET /v1/jobs/{id}` first and only call
        this endpoint when `result_available` is `true`. Results expire 24 hours
        after job completion.
      operationId: getJobResult
      parameters:
        - name: id
          in: path
          required: true
          description: The job identifier returned when the job was created.
          schema:
            type: string
            example: job_abc123
      responses:
        '200':
          description: Completed job output.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobResultResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Job not found or result expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Job has not finished yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: |-
            curl https://api.scrapio.dev/v1/jobs/job_abc123/result \
              -H "Authorization: Bearer $SCRAPIO_API_KEY"
        - lang: Python
          label: Python
          source: |-
            import os, requests
            result = requests.get(
                "https://api.scrapio.dev/v1/jobs/job_abc123/result",
                headers={"Authorization": f"Bearer {os.environ['SCRAPIO_API_KEY']}"},
            ).json()
            print(result["outputs"]["markdown"])
        - lang: JavaScript
          label: Node.js
          source: >-
            const result = await
            fetch("https://api.scrapio.dev/v1/jobs/job_abc123/result", {
              headers: { Authorization: `Bearer ${process.env.SCRAPIO_API_KEY}` },
            }).then(r => r.json());

            console.log(result.outputs.markdown);
components:
  schemas:
    JobResultResponse:
      anyOf:
        - type: object
          properties:
            request_id:
              type: string
            job_id:
              type: string
            job_type:
              type: string
              enum:
                - fetch
            status:
              type: string
              enum:
                - completed
                - partial
                - cancelled
            mode:
              type: string
              enum:
                - async
            outputs:
              type: object
              properties:
                html:
                  type: string
                markdown:
                  type: string
                json:
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
                screenshot:
                  type: object
                  properties:
                    url:
                      type: string
                      format: uri
                  required:
                    - url
              additionalProperties: false
            diagnostics:
              type: object
              properties:
                outcome:
                  type: string
                  enum:
                    - partial
                output_failures:
                  type: array
                  items:
                    type: object
                    properties:
                      output:
                        type: string
                        enum:
                          - html
                          - markdown
                          - json
                          - screenshot
                        description: Which output formats to return
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - output
                      - code
                      - message
                    additionalProperties: false
              required:
                - outcome
                - output_failures
              additionalProperties: false
          required:
            - request_id
            - job_id
            - job_type
            - status
            - mode
          additionalProperties: false
        - type: object
          properties:
            request_id:
              type: string
            job_id:
              type: string
            job_type:
              type: string
              enum:
                - interact
                - search
                - crawl
                - map
            status:
              type: string
              enum:
                - completed
                - partial
                - cancelled
            mode:
              type: string
              enum:
                - async
            result:
              type: object
              propertyNames:
                type: string
              additionalProperties: {}
          required:
            - request_id
            - job_id
            - job_type
            - status
            - mode
          additionalProperties: false
        - type: object
          properties:
            request_id:
              type: string
            job_id:
              type: string
            job_type:
              type: string
              enum:
                - youtube_search_crawl
            status:
              type: string
              enum:
                - completed
            mode:
              type: string
              enum:
                - async
            result:
              type: object
              propertyNames:
                type: string
              additionalProperties: {}
          required:
            - request_id
            - job_id
            - job_type
            - status
            - mode
          additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        request_id:
          type: string
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
        diagnostics:
          type: object
          properties:
            outcome:
              type: string
              enum:
                - failed
            retryable:
              type: boolean
            blocked:
              type: boolean
            timed_out:
              type: boolean
          required:
            - outcome
            - retryable
          additionalProperties: false
      required:
        - request_id
        - error
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````