> ## 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 a search log

> Returns one past search with its settings, results and credits. Further pages you loaded with `pageTokens` are merged into the first page's log, and opening a further page's log returns that same merged view.




## OpenAPI

````yaml GET /search-logs/{uuid}
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:
  /search-logs/{uuid}:
    get:
      tags:
        - Search
      summary: Get a search log
      description: >
        Returns one past search with its settings, results and credits. Further
        pages you loaded with `pageTokens` are merged into the first page's log,
        and opening a further page's log returns that same merged view.
      parameters:
        - name: uuid
          in: path
          required: true
          description: >-
            The log's `uuid` from [List search
            logs](/api-reference/search/search-logs), or the `logUuid` from a
            search result. Not the search's `jobId`.
          schema:
            type: string
            format: uuid
          example: e6e7bea9-99ab-49a5-968a-6895f1ed0af8
      responses:
        '200':
          description: The search log.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  data:
                    $ref: '#/components/schemas/SearchLogDetail'
              example:
                status: success
                data:
                  id: 327
                  uuid: e6e7bea9-99ab-49a5-968a-6895f1ed0af8
                  parent_uuid: null
                  user_uuid: 4aeefb9f-30c3-41fb-886a-10245923dc31
                  status: success
                  started_at: '2026-10-25T03:21:36.000Z'
                  finished_at: '2026-10-25T03:21:40.000Z'
                  query: best espresso machine
                  sources: web
                  country: null
                  include_domains: null
                  exclude_domains: null
                  scrape_content_enabled: 0
                  scrape_max_results: null
                  result_limit: 3
                  page: 1
                  time_range: null
                  filetype: null
                  result_data:
                    web:
                      - title: >-
                          The 16 Best Espresso Machines of 2026, Tested &
                          Reviewed
                        url: >-
                          https://www.seriouseats.com/best-espresso-machines-5185482
                        description: >-
                          We tested 41 home espresso machines to find which 16
                          pulled the best shots ...
                        position: 1
                      - title: Best Espresso Machines 2026 | Tested - Forbes Vetted
                        url: >-
                          https://www.forbes.com/sites/forbes-personal-shopper/article/best-espresso-machine/
                        description: >-
                          For devotees of handcrafted café beverages, investing
                          in an espresso machine can save both time and money
                          ...
                        position: 2
                      - title: >-
                          The 10 Best Espresso Machines of 2026, Tested &
                          Reviewed
                        url: >-
                          https://www.foodandwine.com/lifestyle/kitchen/best-espresso-machines
                        description: >-
                          The 10 Best Espresso Machines for Every Type of Coffee
                          Drinker, According to Our Tests ...
                        position: 3
                  error_message: null
                  latency_ms: 3428
                  credits_used: 1
                  scraping_channel: api
                  created_at: '2026-10-25T03:21:36.000Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: There's no search log with this ID on your account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                status: error
                message: Search log not found
        '500':
          description: The log couldn't be loaded. Try again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                status: error
                message: Something went wrong loading this. Try again.
components:
  schemas:
    SearchLogDetail:
      description: One past search with every stored field.
      allOf:
        - $ref: '#/components/schemas/SearchLogSummary'
        - type: object
          properties:
            id:
              type: integer
              description: The log's row number.
            parent_uuid:
              type:
                - string
                - 'null'
              format: uuid
              description: >-
                For a further page loaded with `pageTokens`, the `uuid` of the
                first page's log. `null` for a first page.
            user_uuid:
              type: string
              format: uuid
              description: Your account's ID.
            created_at:
              type: string
              format: date-time
              description: When the log was created.
    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.
    SearchLogSummary:
      type: object
      description: One past search. Logs use snake_case field names.
      properties:
        uuid:
          type: string
          format: uuid
          description: >-
            The log's ID. Not the same as the search's `jobId`. Use it with `GET
            /search-logs/{uuid}`.
        status:
          type: string
          enum:
            - success
            - error
            - in_progress
            - cancelled
          description: >-
            `success` (finished), `error` (failed, `error_message` says why),
            `in_progress` (still running) or `cancelled`.
        started_at:
          type: string
          format: date-time
          description: When the search started.
        finished_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When it finished. `null` while it runs.
        query:
          type: string
          description: What was searched for.
        sources:
          type:
            - string
            - 'null'
          description: >-
            The sources searched, as one comma-separated string such as
            `news,research,developer`.
        country:
          type:
            - string
            - 'null'
          description: The `country` sent, if any.
        include_domains:
          type:
            - string
            - 'null'
          description: The `includeDomains` sent, as one comma-separated string, if any.
        exclude_domains:
          type:
            - string
            - 'null'
          description: The `excludeDomains` sent, as one comma-separated string, if any.
        scrape_content_enabled:
          type: integer
          enum:
            - 0
            - 1
          description: '`1` when the search was sent with `scrapeOptions`, `0` otherwise.'
        scrape_max_results:
          type:
            - integer
            - 'null'
          description: The `scrapeOptions.maxResults` sent, if any.
        result_limit:
          type:
            - integer
            - 'null'
          description: The `limit` sent.
        page:
          type:
            - integer
            - 'null'
          description: The `page` sent.
        time_range:
          type:
            - string
            - 'null'
          description: The `timeRange` sent, if any.
        filetype:
          type:
            - string
            - 'null'
          description: The `filetype` sent, if any.
        result_data:
          type:
            - object
            - 'null'
          description: >-
            The results, shaped like `result.data` from [Get a
            search](/api-reference/search/search-status). When you loaded
            further pages with `pageTokens`, their results are added here.
        error_message:
          type:
            - string
            - 'null'
          description: Why the search failed. `null` otherwise.
        latency_ms:
          type:
            - integer
            - 'null'
          description: How long the search took, in milliseconds.
        credits_used:
          type: integer
          description: Credits the search cost, including any further pages.
        scraping_channel:
          type:
            - string
            - 'null'
          enum:
            - api
            - playground
            - null
          description: >-
            `api` when sent with an API key, `playground` when run from the
            dashboard.
  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
  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.