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

# Get crawl pages

> Returns every page of a crawl, up to 1,000 per call, oldest first. Use it for crawls bigger than the 100 pages [Get a crawl](/api-reference/crawling/crawl-status) holds, or after that endpoint has expired. Keep calling with `offset` increased by `limit` until `hasMore` is `false`.

Failed pages are included with their `error_message`. Each page's `id` is what [Retry a crawl page](/api-reference/crawling/crawl-retry-page) needs. The `html` and `markdown` links expire after 1 hour.




## OpenAPI

````yaml GET /crawl/{jobId}/pages
openapi: 3.1.0
info:
  title: Spidra API
  version: 1.0.0
  description: >-
    Public API endpoints for web scraping via Spidra. Authenticate with
    `Authorization: Bearer YOUR_API_KEY`.
servers:
  - url: https://api.spidra.io/api
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /crawl/{jobId}/pages:
    get:
      tags:
        - Crawling
      summary: Get crawl pages
      description: >
        Returns every page of a crawl, up to 1,000 per call, oldest first. Use
        it for crawls bigger than the 100 pages [Get a
        crawl](/api-reference/crawling/crawl-status) holds, or after that
        endpoint has expired. Keep calling with `offset` increased by `limit`
        until `hasMore` is `false`.


        Failed pages are included with their `error_message`. Each page's `id`
        is what [Retry a crawl page](/api-reference/crawling/crawl-retry-page)
        needs. The `html` and `markdown` links expire after 1 hour.
      parameters:
        - name: jobId
          in: path
          required: true
          description: The crawl's or extraction's `jobId`.
          schema:
            type: string
            format: uuid
          example: e303fb87-846e-4a30-8aa5-bfca457a5357
        - name: offset
          in: query
          description: How many pages to skip.
          schema:
            type: integer
            minimum: 0
            default: 0
        - name: limit
          in: query
          description: Pages per call, from 1 to 1,000. Higher values are capped at 1,000.
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 1000
          example: 2
      responses:
        '200':
          description: One batch of pages.
          content:
            application/json:
              schema:
                type: object
                properties:
                  pages:
                    type: array
                    description: The pages in this batch. Uses snake_case field names.
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: >-
                            The page's ID. Use it with `POST
                            /crawl/{jobId}/retry/{pageId}`.
                        job_id:
                          type: string
                          format: uuid
                          description: The crawl's ID.
                        url:
                          type: string
                          description: The page's URL.
                        status:
                          type: string
                          enum:
                            - success
                            - failed
                          description: Whether the page was read.
                        title:
                          type: string
                          description: The page title.
                        data:
                          type:
                            - object
                            - array
                            - string
                            - 'null'
                          description: >-
                            The extracted data, or the page as Markdown when the
                            crawl had no `schema` or `transformInstruction`.
                        error_message:
                          type:
                            - string
                            - 'null'
                          description: Why the page failed. `null` otherwise.
                        created_at:
                          type: string
                          format: date-time
                          description: When the page was saved.
                        html:
                          type:
                            - string
                            - 'null'
                          description: >-
                            A link to the page's stored HTML. Expires after 1
                            hour.
                        markdown:
                          type:
                            - string
                            - 'null'
                          description: >-
                            A link to the page's stored Markdown. Expires after
                            1 hour.
                  total:
                    type: integer
                    description: How many pages the crawl has in all.
                  offset:
                    type: integer
                    description: The `offset` used.
                  limit:
                    type: integer
                    description: The `limit` used.
                  hasMore:
                    type: boolean
                    description: '`true` when there are more pages after this batch.'
              example:
                pages:
                  - id: 17938855-3664-48c4-8140-4b05d16a037f
                    job_id: e303fb87-846e-4a30-8aa5-bfca457a5357
                    url: >-
                      https://books.toscrape.com/catalogue/sharp-objects_997/index.html
                    status: success
                    title: Sharp Objects | Books to Scrape - Sandbox
                    data:
                      price: 47.82
                      title: Sharp Objects
                      in_stock: true
                    error_message: null
                    created_at: '2026-10-25T03:15:04.000Z'
                    html: >-
                      https://.../crawl/e303fb87-846e-4a30-8aa5-bfca457a5357/47837f66-2ea8-4b60-a2e6-7656c0fe1946.html?...
                    markdown: >-
                      https://.../crawl/e303fb87-846e-4a30-8aa5-bfca457a5357/c8973f4e-da20-4927-a2ef-bd763a274bad.md?...
                  - id: baab22f2-195f-454c-a094-4b4454518ceb
                    job_id: e303fb87-846e-4a30-8aa5-bfca457a5357
                    url: >-
                      https://books.toscrape.com/catalogue/in-a-dark-dark-wood_963/index.html
                    status: success
                    title: In a Dark, Dark Wood | Books to Scrape - Sandbox
                    data:
                      price: 19.63
                      title: In a Dark, Dark Wood
                      in_stock: true
                    error_message: null
                    created_at: '2026-10-25T03:15:12.000Z'
                    html: >-
                      https://.../crawl/e303fb87-846e-4a30-8aa5-bfca457a5357/9b889b6c-5296-4cdb-84ca-2440acfd2c2b.html?...
                    markdown: >-
                      https://.../crawl/e303fb87-846e-4a30-8aa5-bfca457a5357/daa293f8-28c5-4039-ae8f-40643015f855.md?...
                total: 3
                offset: 0
                limit: 2
                hasMore: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            There's no crawl with this ID on your account. This endpoint answers
            `403` rather than `404` for an unknown ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CrawlErrorResponse'
              example:
                status: error
                message: Unauthorized access or job not found
                error: Unauthorized access or job not found
        '500':
          description: The pages couldn't be loaded. Try again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CrawlErrorResponse'
              example:
                status: error
                message: Failed to fetch crawl pages
                error: Failed to fetch crawl pages
components:
  responses:
    Unauthorized:
      description: The API key is missing, wrong, or turned off.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missing:
              summary: No key sent
              value:
                status: error
                message: Missing authentication
            invalid:
              summary: Wrong or turned-off key
              value:
                status: error
                message: Invalid token or API key
  schemas:
    CrawlErrorResponse:
      description: >-
        Most crawl endpoints add an `error` field that repeats `message`, kept
        for older clients. Read `message`.
      allOf:
        - $ref: '#/components/schemas/ErrorResponse'
        - type: object
          properties:
            error:
              type: string
              description: The same text as `message`.
    ErrorResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
          description: What went wrong, as a sentence you can show to a person.
        code:
          type: string
          description: >-
            A stable code for the error, when there is one, such as
            `JOB_NOT_FOUND` or `SERVICE_BUSY`. Branch on this rather than on
            `message`.
        errors:
          description: >-
            On validation errors (`422`), every problem with the request.
            Scrape, batch, crawl, map and search return a list of sentences.
            Templates, presets and monitors return `{ field, message }` objects.
          oneOf:
            - type: array
              items:
                type: string
            - type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
        retry_after:
          type: integer
          description: >-
            On `503 SERVICE_BUSY`, how many seconds to wait before sending the
            request again.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.