{
  "openapi": "3.1.0",
  "info": {
    "title": "UK Tech Deals API",
    "version": "1.0.0",
    "description": "The UK's best deals on tech, gadgets, gaming and more — read-only access to live UK retailer prices, active deals, product specs and price history from the same query layer as uktechdeals.com.\n\nMoney is integer pence in GBP, VAT included (12999 = £129.99). Every price carries `checkedAt`, the time it was last confirmed.\n\nReference (\"was\") prices come from our own recorded history and come with `referenceBasis`. `retailerWasPence` is the retailer's own figure; label it as theirs.\n\n`goUrl` / `bestGoUrl` values redirect through `/go/{offerId}`. Only items with `tracked: true` are affiliate links. Some links to retailers are affiliate links (marked \"Affiliate link\"). We may earn a commission if you buy, at no extra cost to you.\n\nNo key is needed. Requests are rate-limited per IP. Responses may be cached for up to a minute.\n\nAn MCP server with the same data is at https://uktechdeals.com/api/mcp."
  },
  "servers": [
    {
      "url": "https://uktechdeals.com/api/v1"
    }
  ],
  "paths": {
    "/deals": {
      "get": {
        "operationId": "searchDeals",
        "summary": "Search deals",
        "description": "Active deals (and optionally expired ones), paged.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug (see /categories). Includes sub-categories.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "retailer",
            "in": "query",
            "required": false,
            "description": "Retailer slug (see /retailers).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "maxPricePence",
            "in": "query",
            "required": false,
            "description": "Maximum price in pence, VAT included.",
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          },
          {
            "name": "minDiscountPct",
            "in": "query",
            "required": false,
            "description": "Minimum saving against our reference price, in percent.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "condition",
            "in": "query",
            "required": false,
            "description": "Filter by item condition: new, refurbished, or open_box.",
            "schema": {
              "type": "string",
              "enum": [
                "new",
                "refurbished",
                "open_box"
              ]
            }
          },
          {
            "name": "includeExpired",
            "in": "query",
            "required": false,
            "description": "Also return expired deals: true or false.",
            "schema": {
              "type": [
                "boolean",
                "string"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort order.",
            "schema": {
              "default": "hot",
              "type": "string",
              "enum": [
                "hot",
                "new",
                "discount",
                "price"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size, 1-50.",
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Number of results to skip. Use meta.nextOffset to page.",
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of deals",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "generatedAt"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Deal"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/PageMeta"
                    },
                    "disclosure": {
                      "type": "string",
                      "const": "Some links to retailers are affiliate links (marked \"Affiliate link\"). We may earn a commission if you buy, at no extra cost to you.",
                      "description": "Affiliate disclosure. Show it with any goUrl."
                    },
                    "generatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (per IP)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/deals/{slugOrId}": {
      "get": {
        "operationId": "getDeal",
        "summary": "Get one deal",
        "parameters": [
          {
            "name": "slugOrId",
            "in": "path",
            "required": true,
            "description": "Deal slug or numeric id.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9-]{1,120}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The deal",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "generatedAt"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Deal"
                    },
                    "disclosure": {
                      "type": "string",
                      "const": "Some links to retailers are affiliate links (marked \"Affiliate link\"). We may earn a commission if you buy, at no extra cost to you.",
                      "description": "Affiliate disclosure. Show it with any goUrl."
                    },
                    "generatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (per IP)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/products": {
      "get": {
        "operationId": "searchProducts",
        "summary": "Search products",
        "description": "Products with at least one current price, paged. Spec filters are passed as `spec.<key>=<value>` (e.g. `spec.ram_gb=16`); keys and types are listed in each category's specFilters. Values are typed by the declared spec filter, otherwise numbers and true/false are detected.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug (see /categories). Includes sub-categories.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "brand",
            "in": "query",
            "required": false,
            "description": "Brand slug.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "minPricePence",
            "in": "query",
            "required": false,
            "description": "Minimum price in pence, VAT included.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          {
            "name": "maxPricePence",
            "in": "query",
            "required": false,
            "description": "Maximum price in pence, VAT included.",
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort order.",
            "schema": {
              "default": "relevance",
              "type": "string",
              "enum": [
                "relevance",
                "price_asc",
                "price_desc",
                "new"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size, 1-50.",
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Number of results to skip. Use meta.nextOffset to page.",
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          {
            "name": "spec",
            "in": "query",
            "required": false,
            "style": "deepObject",
            "explode": true,
            "description": "Exact-match spec filters, sent as `spec.<key>=<value>`.",
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": [
                  "string",
                  "number",
                  "boolean"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of products",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "generatedAt"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProductSummary"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/PageMeta"
                    },
                    "disclosure": {
                      "type": "string",
                      "const": "Some links to retailers are affiliate links (marked \"Affiliate link\"). We may earn a commission if you buy, at no extra cost to you.",
                      "description": "Affiliate disclosure. Show it with any goUrl."
                    },
                    "generatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (per IP)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/products/{slug}": {
      "get": {
        "operationId": "getProduct",
        "summary": "Get a product with every retailer offer and price stats",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Product slug.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9-]{1,120}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The product",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "generatedAt"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ProductDetail"
                    },
                    "disclosure": {
                      "type": "string",
                      "const": "Some links to retailers are affiliate links (marked \"Affiliate link\"). We may earn a commission if you buy, at no extra cost to you.",
                      "description": "Affiliate disclosure. Show it with any goUrl."
                    },
                    "generatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (per IP)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/products/{slug}/price-history": {
      "get": {
        "operationId": "getPriceHistory",
        "summary": "Price history per retailer offer",
        "description": "Points are stored only when a price changes: each price holds until the next point, and the last one until now.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Product slug.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9-]{1,120}$"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "How many days back.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 365,
              "default": 90
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Price history",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "generatedAt"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PriceHistory"
                    },
                    "generatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (per IP)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/categories": {
      "get": {
        "operationId": "listCategories",
        "summary": "List categories and their spec filters",
        "responses": {
          "200": {
            "description": "Categories",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "generatedAt"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Category"
                      }
                    },
                    "generatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (per IP)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/retailers": {
      "get": {
        "operationId": "listRetailers",
        "summary": "List retailers",
        "responses": {
          "200": {
            "description": "Retailers",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "generatedAt"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Retailer"
                      }
                    },
                    "generatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (per IP)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Deal": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "offerId": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          },
          "pricePence": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "deliveryPence": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "referencePence": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "referenceBasis": {
            "type": [
              "string",
              "null"
            ]
          },
          "discountPct": {
            "type": [
              "number",
              "null"
            ]
          },
          "voucherCode": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "auto",
              "editor",
              "user"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "active",
              "expired",
              "rejected"
            ]
          },
          "heat": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "inStock": {
            "type": "boolean"
          },
          "condition": {
            "default": "new",
            "type": "string",
            "enum": [
              "new",
              "refurbished",
              "open_box"
            ]
          },
          "priceSource": {
            "default": "feed",
            "type": "string",
            "enum": [
              "feed",
              "api",
              "verify",
              "editor",
              "user"
            ]
          },
          "startsAt": {
            "type": "string"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "checkedAt": {
            "type": "string"
          },
          "retailer": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "slug",
              "name"
            ],
            "additionalProperties": false
          },
          "category": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "slug",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "product": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  }
                },
                "required": [
                  "slug",
                  "title",
                  "url"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string"
          },
          "goUrl": {
            "type": "string"
          },
          "tracked": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "offerId",
          "slug",
          "title",
          "summary",
          "pricePence",
          "deliveryPence",
          "referencePence",
          "referenceBasis",
          "discountPct",
          "voucherCode",
          "source",
          "status",
          "heat",
          "inStock",
          "condition",
          "priceSource",
          "startsAt",
          "expiresAt",
          "checkedAt",
          "retailer",
          "category",
          "product",
          "imageUrl",
          "url",
          "goUrl"
        ],
        "additionalProperties": false
      },
      "ProductSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "brand": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "slug",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "bestPricePence": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "bestRetailer": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "slug",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "bestOfferId": {
            "default": null,
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "bestGoUrl": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "bestCondition": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "new",
                  "refurbished",
                  "open_box"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "tracked": {
            "type": "boolean"
          },
          "offerCount": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "checkedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "slug",
          "title",
          "brand",
          "category",
          "imageUrl",
          "bestPricePence",
          "bestRetailer",
          "bestOfferId",
          "bestGoUrl",
          "bestCondition",
          "offerCount",
          "checkedAt",
          "url"
        ],
        "additionalProperties": false
      },
      "ProductDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "brand": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "slug",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "bestPricePence": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "bestRetailer": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "slug",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "bestOfferId": {
            "default": null,
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "bestGoUrl": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "bestCondition": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "new",
                  "refurbished",
                  "open_box"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "tracked": {
            "type": "boolean"
          },
          "offerCount": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "checkedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string"
          },
          "gtin": {
            "type": [
              "string",
              "null"
            ]
          },
          "mpn": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "specs": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean"
              ]
            }
          },
          "stats": {
            "type": "object",
            "properties": {
              "bestPricePence": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "offerCount": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "low30dPence": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "low90dPence": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "median90dPence": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "allTimeLowPence": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "historyDays": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "bestPricePence",
              "offerCount",
              "low30dPence",
              "low90dPence",
              "median90dPence",
              "allTimeLowPence",
              "historyDays"
            ],
            "additionalProperties": false
          },
          "offers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "retailer": {
                  "type": "object",
                  "properties": {
                    "slug": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "name"
                  ],
                  "additionalProperties": false
                },
                "title": {
                  "type": "string"
                },
                "pricePence": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "deliveryPence": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "retailerWasPence": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "inStock": {
                  "type": "boolean"
                },
                "condition": {
                  "default": "new",
                  "type": "string",
                  "enum": [
                    "new",
                    "refurbished",
                    "open_box"
                  ]
                },
                "priceSource": {
                  "type": "string",
                  "enum": [
                    "feed",
                    "api",
                    "verify",
                    "editor",
                    "user"
                  ]
                },
                "checkedAt": {
                  "type": "string"
                },
                "goUrl": {
                  "type": "string"
                },
                "tracked": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "retailer",
                "title",
                "pricePence",
                "deliveryPence",
                "retailerWasPence",
                "inStock",
                "condition",
                "priceSource",
                "checkedAt",
                "goUrl"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "slug",
          "title",
          "brand",
          "category",
          "imageUrl",
          "bestPricePence",
          "bestRetailer",
          "bestOfferId",
          "bestGoUrl",
          "bestCondition",
          "offerCount",
          "checkedAt",
          "url",
          "gtin",
          "mpn",
          "description",
          "specs",
          "stats",
          "offers"
        ],
        "additionalProperties": false
      },
      "PriceHistory": {
        "type": "object",
        "properties": {
          "productSlug": {
            "type": "string"
          },
          "days": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "historyDays": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "series": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "offerId": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "retailer": {
                  "type": "object",
                  "properties": {
                    "slug": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "name"
                  ],
                  "additionalProperties": false
                },
                "points": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "t": {
                        "type": "string"
                      },
                      "pricePence": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "t",
                      "pricePence"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "offerId",
                "retailer",
                "points"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "productSlug",
          "days",
          "historyDays",
          "series"
        ],
        "additionalProperties": false
      },
      "Category": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "parentSlug": {
            "type": [
              "string",
              "null"
            ]
          },
          "specFilters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "unit": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "number",
                    "text",
                    "boolean"
                  ]
                }
              },
              "required": [
                "key",
                "label",
                "type"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "slug",
          "name",
          "description",
          "parentSlug",
          "specFilters"
        ],
        "additionalProperties": false
      },
      "Retailer": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "slug",
          "name"
        ],
        "additionalProperties": false
      },
      "PageMeta": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer"
          },
          "limit": {
            "type": "integer"
          },
          "offset": {
            "type": "integer"
          },
          "nextOffset": {
            "type": [
              "integer",
              "null"
            ]
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of the next page, or null."
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "status": {
                "type": "integer"
              },
              "code": {
                "type": "string",
                "enum": [
                  "bad_request",
                  "not_found",
                  "rate_limited",
                  "internal_error"
                ]
              },
              "message": {
                "type": "string"
              }
            }
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  }
}