{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/soldgraph-com/json-schema/soldgraph-com-vinted-listings-job-schema.json",
  "title": "VintedListingsJob",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/soldgraph-com-vinted-api-openapi.yml#/components/schemas/VintedListingsJob",
  "type": "object",
  "required": [
    "request_id",
    "status",
    "credits",
    "cached"
  ],
  "properties": {
    "request_id": {
      "type": "string",
      "description": "ID of this request. Poll it at /v1/jobs/{request_id}."
    },
    "status": {
      "type": "string",
      "description": "pending, complete or failed. Always check it, even on HTTP 200.",
      "enum": [
        "pending",
        "complete",
        "failed"
      ]
    },
    "credits": {
      "type": "integer",
      "description": "Requests charged: 1 when complete, 0 for a page past the last one, while pending, or when failed."
    },
    "cached": {
      "type": "boolean",
      "description": "True when the result came from the 15-minute cache."
    },
    "poll_url": {
      "type": "string",
      "description": "Only while pending. A path like /v1/jobs/{id}: join it to https://api.soldgraph.com, not to the /v1 base URL."
    },
    "result": {
      "$ref": "#/$defs/VintedListingsPage"
    },
    "error": {
      "type": "object",
      "required": [
        "code"
      ],
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "page_mismatch",
            "schema",
            "network",
            "upstream",
            "throttled",
            "blocked",
            "rejected",
            "not_found",
            "filter_not_supported",
            "filter_not_applied",
            "location_not_served",
            "auth",
            "daily_limit",
            "deadline_exceeded",
            "credential_storage"
          ],
          "description": "Failed job code."
        },
        "message": {
          "type": "string",
          "description": "What the code means, in plain words."
        }
      }
    }
  },
  "$defs": {
    "Money": {
      "type": "object",
      "required": [
        "amount",
        "currency"
      ],
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string",
          "description": "ISO 4217 code, like USD."
        }
      }
    },
    "VintedListingsPage": {
      "type": "object",
      "required": [
        "provider",
        "country",
        "query",
        "page",
        "count",
        "reported_total",
        "next_page",
        "collected_at",
        "schema_version",
        "completeness",
        "field_notes",
        "page_size",
        "summary",
        "count",
        "next_page",
        "reported_total",
        "data"
      ],
      "properties": {
        "provider": {
          "type": "string",
          "description": "Marketplace ID, like ebay or poshmark."
        },
        "country": {
          "type": "string",
          "description": "The country searched: us, or on eBay the country you sent."
        },
        "query": {
          "type": "string",
          "description": "The q you sent, with extra spaces removed."
        },
        "page": {
          "type": "integer",
          "description": "The page you asked for."
        },
        "count": {
          "type": "integer",
          "description": "Rows returned. Every row on the source page is returned."
        },
        "reported_total": {
          "type": "integer",
          "description": "Matches as Vinted reports them. Vinted stops counting at 960, so 960 means \"960 or more\"."
        },
        "next_page": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The next page number, or null on the last page. Never more than 10."
        },
        "collected_at": {
          "type": "string",
          "description": "When we collected the page, as an ISO 8601 timestamp."
        },
        "schema_version": {
          "type": "integer",
          "description": "Version of the result's shape for that marketplace: 1 or 2. It only rises when a field changes meaning."
        },
        "completeness": {
          "type": "string",
          "description": "provider_page_only: one page as the marketplace served it, not a full history. TCGplayer recent sales say recent_sample_only."
        },
        "field_notes": {
          "type": "string",
          "description": "Plain-text notes on how to read this page's fields."
        },
        "page_size": {
          "type": "integer",
          "description": "Listing rows on the source page, up to 96."
        },
        "summary": {
          "type": "object",
          "properties": {
            "priced_count": {
              "type": "integer",
              "description": "Rows on this page that show one price."
            },
            "currency": {
              "type": "string",
              "description": "Currency of the amounts below."
            },
            "median": {
              "type": [
                "number",
                "null"
              ],
              "description": "Middle displayed price of those rows."
            },
            "low": {
              "type": [
                "number",
                "null"
              ],
              "description": "Lowest displayed price."
            },
            "high": {
              "type": [
                "number",
                "null"
              ],
              "description": "Highest displayed price."
            },
            "p25": {
              "type": [
                "number",
                "null"
              ],
              "description": "First-quartile displayed price: a quarter of priced rows are at or below it."
            },
            "p75": {
              "type": [
                "number",
                "null"
              ],
              "description": "Third-quartile displayed price. With `p25`, a range that ignores a stray accessory or parts listing."
            }
          },
          "required": [
            "priced_count",
            "currency",
            "median",
            "low",
            "high",
            "p25",
            "p75"
          ],
          "description": "Price maths over the rows on this page: priced_count, currency, median, low, high. No row is removed from data. Rows with no single readable price are left out of the maths."
        },
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/VintedListingsRow"
          }
        }
      }
    },
    "VintedListingsRow": {
      "type": "object",
      "required": [
        "id",
        "title",
        "link",
        "promoted",
        "displayed_price",
        "displayed_price_text",
        "original_price",
        "buyer_protection_fee",
        "total_price",
        "condition",
        "brand",
        "size",
        "like_count",
        "business_seller",
        "image"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Vinted item ID. Pass it to /v1/vinted/item for full details."
        },
        "title": {
          "type": "string",
          "description": "Seller title, up to 2,000 characters."
        },
        "link": {
          "type": "string",
          "description": "Public listing URL on the Vinted site you searched."
        },
        "promoted": {
          "type": "boolean",
          "description": "True for a paid placement. Vinted mixes these into best_match results."
        },
        "displayed_price": {
          "$ref": "#/$defs/Money",
          "description": "Item asking price as { amount, currency }, in the site's currency. Before the buyer protection fee and shipping. Never a sale price."
        },
        "displayed_price_text": {
          "type": "string",
          "description": "Formatted item price, like $14.00, £42.54, €25.00 or PLN 45.00."
        },
        "original_price": {
          "oneOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "description": "Earlier item price when Vinted shows a discounted one, else null."
        },
        "buyer_protection_fee": {
          "oneOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "description": "Vinted's buyer protection fee for this item."
        },
        "total_price": {
          "oneOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "description": "Item price plus the buyer protection fee: what a buyer pays before shipping."
        },
        "condition": {
          "type": [
            "string",
            "null"
          ],
          "description": "new_with_tags, new_without_tags, very_good, good or satisfactory, as the seller chose, in the same codes on every site. Null if Vinted shows another value."
        },
        "brand": {
          "type": [
            "string",
            "null"
          ],
          "description": "Brand name as shown on the listing card."
        },
        "size": {
          "type": [
            "string",
            "null"
          ],
          "description": "Size as shown, like M / US 8-10 or 10. Null for items without sizes."
        },
        "like_count": {
          "type": [
            "integer",
            "null"
          ],
          "description": "How many members have favourited the listing."
        },
        "business_seller": {
          "type": "boolean",
          "description": "True when the seller is a registered business (Vinted Pro)."
        },
        "image": {
          "type": [
            "string",
            "null"
          ],
          "description": "Main photo on Vinted's CDN. The link is signed and expires."
        }
      }
    }
  }
}