> ## 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.

# List search logs

> Lists your past searches, newest first, with their settings, results and credits. Logs are kept after the search job itself expires, so this is where to find older results.

Further pages you loaded with `pageTokens` are folded into the first page's log, so each search appears once. Logs use snake_case field names, and a log's `uuid` isn't the search's `jobId`.




## OpenAPI

````yaml GET /search-logs
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:
    get:
      tags:
        - Search
      summary: List search logs
      description: >
        Lists your past searches, newest first, with their settings, results and
        credits. Logs are kept after the search job itself expires, so this is
        where to find older results.


        Further pages you loaded with `pageTokens` are folded into the first
        page's log, so each search appears once. Logs use snake_case field
        names, and a log's `uuid` isn't the search's `jobId`.
      parameters:
        - name: page
          in: query
          description: The page to return, starting at 1.
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: limit
          in: query
          description: Logs per page, from 1 to 100. Higher values are capped at 100.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
          example: 20
        - name: status
          in: query
          description: Only return logs with this status. `all` returns every status.
          schema:
            type: string
            enum:
              - all
              - success
              - error
              - in_progress
              - cancelled
        - name: searchTerm
          in: query
          description: Only return searches whose query contains this text.
          schema:
            type: string
          example: espresso
        - name: dateStart
          in: query
          description: >-
            Only return searches started at or after this date, such as
            `2026-10-01`.
          schema:
            type: string
        - name: dateEnd
          in: query
          description: >-
            Only return searches started at or before this date, such as
            `2026-10-31`.
          schema:
            type: string
      responses:
        '200':
          description: One page of search logs and the total that match.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  data:
                    type: object
                    properties:
                      logs:
                        type: array
                        items:
                          $ref: '#/components/schemas/SearchLogSummary'
                        description: The logs on this page.
                      total:
                        type: integer
                        description: How many logs match the filters in all.
              example:
                status: success
                data:
                  logs:
                    - uuid: e6e7bea9-99ab-49a5-968a-6895f1ed0af8
                      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
                          - ...
                      error_message: null
                      latency_ms: 3428
                      credits_used: 1
                      scraping_channel: api
                  total: 244
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          description: The logs 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:
    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.
    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.
  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.