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

# List jobs (v1)

> Legacy v1 of `GET /api/v2/jobs`. Identical to the v2 operation. Existing integrations keep working; build new ones against v2.



## OpenAPI

````yaml /price-data/openapi.json get /api/jobs
openapi: 3.1.0
info:
  title: Price Data API
  version: 1.0.0
  description: >-
    The PricePirate Price Data API: asynchronous price and offer lookups across
    idealo, klarna, pricerunner, amazon, google-shopping, bol. Create a job,
    poll it, read the results, and check your credits, usage and billing.
    Authenticated with your enterprise API key via the x-api-key header.


    This document describes API v2, under `/api/v2`. The host name
    `api-v2.pricepirate.com` is not the API version. v2 answers `202 Accepted`
    with a `Location` header while a job is running, so HTTP clients that follow
    that pattern poll on their own. The legacy v1 paths under `/api` keep
    working unchanged and are listed under **Legacy (v1)**; they answer `200`
    instead of `202`.
servers:
  - url: https://api-v2.pricepirate.com
    description: Production
security: []
tags:
  - name: Jobs
    description: Create jobs, poll them and read their results.
  - name: Account
    description: Your balance, limits, usage and billing.
  - name: Meta
    description: This document.
  - name: Observability
    description: Service health.
  - name: Legacy (v1)
    description: >-
      API v1 under `/api`. Kept for existing integrations; use the `/api/v2`
      paths for new ones.
paths:
  /api/jobs:
    get:
      tags:
        - Legacy (v1)
      summary: List jobs (v1)
      description: >-
        Legacy v1 of `GET /api/v2/jobs`. Identical to the v2 operation. Existing
        integrations keep working; build new ones against v2.
      parameters:
        - name: from
          in: query
          required: false
          description: Created at or after (ISO 8601).
          schema:
            type: string
            format: date-time
        - name: to
          in: query
          required: false
          description: Created before (ISO 8601).
          schema:
            type: string
            format: date-time
        - name: source
          in: query
          required: false
          schema:
            type: string
        - name: operation
          in: query
          required: false
          schema:
            type: string
        - name: country
          in: query
          required: false
          schema:
            type: string
        - name: settled
          in: query
          required: false
          schema:
            type: boolean
        - name: limit
          in: query
          required: false
          description: Page size, 1–200.
          schema:
            type: integer
            default: 50
            minimum: 1
            maximum: 200
        - name: cursor
          in: query
          required: false
          description: '`next_cursor` from the previous page.'
          schema:
            type: string
      responses:
        '200':
          description: A page of jobs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobList'
        '400':
          description: Invalid filter or cursor
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '403':
          description: >-
            Account suspended, or the API key does not belong to an enterprise
            account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    JobList:
      type: object
      properties:
        jobs:
          type: array
          items:
            $ref: '#/components/schemas/JobListItem'
        next_cursor:
          type:
            - string
            - 'null'
          description: Pass as `cursor` for the next page; `null` on the last page.
      required:
        - jobs
        - next_cursor
    ErrorBody:
      type: object
      properties:
        error:
          type: boolean
          enum:
            - true
        message:
          type: string
      required:
        - error
        - message
    JobListItem:
      type: object
      properties:
        job_id:
          type: string
        source:
          type: string
        operation:
          type: string
        country:
          type: string
        query_count:
          type: integer
        credits:
          $ref: '#/components/schemas/JobCredits'
        settled:
          type: boolean
          description: >-
            True once the job was polled in a terminal status (or after it
            expired), which is when refunds are applied.
        created_at:
          type: string
          format: date-time
        settled_at:
          type:
            - string
            - 'null'
          format: date-time
        results:
          type:
            - object
            - 'null'
          description: >-
            Query outcome counts. `null` when the job was never polled to
            completion, or was polled only after its results expired.
          properties:
            found:
              type: integer
            not_found:
              type: integer
            error:
              type: integer
          required:
            - found
            - not_found
            - error
      required:
        - job_id
        - source
        - operation
        - country
        - query_count
        - credits
        - settled
        - created_at
        - settled_at
        - results
    JobCredits:
      type: object
      description: >-
        Credits this job was billed at creation, and credits refunded for failed
        queries.
      properties:
        billed:
          type: integer
        refunded:
          type: integer
      required:
        - billed
        - refunded
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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