{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scrapeatlas/json-schema/scrapeatlas-depop-product-response-schema-schema.json",
  "title": "depopProductResponseSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scrapeatlas-depop-api-openapi.yml#/components/schemas/depopProductResponseSchema",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "accounting": {
          "type": "object",
          "properties": {
            "upstreamRequests": {
              "type": "integer",
              "minimum": 0
            },
            "responseBytes": {
              "type": "integer",
              "minimum": 0
            },
            "durationMs": {
              "type": "number",
              "minimum": 0
            }
          },
          "required": [
            "upstreamRequests",
            "responseBytes",
            "durationMs"
          ],
          "additionalProperties": false
        },
        "success": {
          "type": "boolean",
          "const": true
        },
        "status": {
          "type": "string",
          "enum": [
            "success",
            "partial"
          ]
        },
        "sourceUrl": {
          "type": "string",
          "format": "uri"
        },
        "fetchedAt": {
          "type": "string",
          "format": "date-time"
        },
        "coverage": {
          "type": "object",
          "properties": {
            "source": {
              "type": "string",
              "const": "public_api"
            },
            "complete": {
              "type": "boolean"
            },
            "warnings": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "malformed_items_omitted",
                  "items_truncated",
                  "review_offset_limit",
                  "inventory_unavailable",
                  "catalog_details_unavailable",
                  "extended_details_unavailable",
                  "total_count_unknown"
                ]
              }
            }
          },
          "required": [
            "source",
            "complete",
            "warnings"
          ],
          "additionalProperties": false
        },
        "product": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "minimum": 0
            },
            "slug": {
              "type": [
                "string",
                "null"
              ]
            },
            "url": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            },
            "description": {
              "type": "string"
            },
            "brand": {
              "type": "object",
              "properties": {
                "id": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "name"
              ],
              "additionalProperties": false
            },
            "category": {
              "type": [
                "string",
                "null"
              ]
            },
            "categoryPath": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ]
            },
            "status": {
              "type": "string"
            },
            "activeStatus": {
              "type": [
                "string",
                "null"
              ]
            },
            "isSold": {
              "type": "boolean"
            },
            "price": {
              "type": "object",
              "properties": {
                "current": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "minimum": 0
                },
                "original": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "minimum": 0
                },
                "currency": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "isReduced": {
                  "type": "boolean"
                }
              },
              "required": [
                "current",
                "original",
                "currency",
                "isReduced"
              ],
              "additionalProperties": false
            },
            "shipping": {
              "type": "object",
              "properties": {
                "cost": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "minimum": 0
                },
                "method": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "boundary": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "payer": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "parcelSize": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "cost",
                "method",
                "boundary",
                "payer",
                "parcelSize"
              ],
              "additionalProperties": false
            },
            "images": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uri"
              }
            },
            "imageDetails": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "originalWidth": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0
                  },
                  "originalHeight": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0
                  },
                  "isSquare": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "formats": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri"
                        },
                        "width": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "minimum": 0
                        },
                        "height": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "minimum": 0
                        }
                      },
                      "required": [
                        "url",
                        "width",
                        "height"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "id",
                  "originalWidth",
                  "originalHeight",
                  "isSquare",
                  "formats"
                ],
                "additionalProperties": false
              },
              "maxItems": 20
            },
            "priceBreakdown": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "item": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "minimum": 0
                    },
                    "buyerFee": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "minimum": 0
                    },
                    "tax": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "minimum": 0
                    },
                    "taxType": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "shipping": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "minimum": 0
                    },
                    "totalIncludes": {
                      "type": "object",
                      "properties": {
                        "buyerFee": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "shipping": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "tax": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "buyerFee",
                        "shipping",
                        "tax"
                      ],
                      "additionalProperties": false
                    },
                    "headlineIncludes": {
                      "type": "object",
                      "properties": {
                        "buyerFee": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "shipping": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "tax": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "buyerFee",
                        "shipping",
                        "tax"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "item",
                    "buyerFee",
                    "tax",
                    "taxType",
                    "shipping",
                    "totalIncludes",
                    "headlineIncludes"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "originalNationalShippingCost": {
              "type": [
                "number",
                "null"
              ],
              "minimum": 0
            },
            "shippingDiscounts": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "nationalShipping": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 0
                            },
                            "type": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "amount",
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "nationalShipping"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "brandSlug": {
              "type": [
                "string",
                "null"
              ]
            },
            "isKnownBrand": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "materials": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "condition": {
              "type": [
                "string",
                "null"
              ]
            },
            "colours": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "styles": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "group": {
              "type": [
                "string",
                "null"
              ]
            },
            "productType": {
              "type": [
                "string",
                "null"
              ]
            },
            "gender": {
              "type": [
                "string",
                "null"
              ]
            },
            "isKids": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "additionalAttributes": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "sizes": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "name": {
                    "type": "string"
                  },
                  "quantity": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0
                  },
                  "status": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "name",
                  "quantity",
                  "status"
                ],
                "additionalProperties": false
              }
            },
            "variantSetId": {
              "type": [
                "integer",
                "null"
              ]
            },
            "listedQuantity": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0
            },
            "location": {
              "type": [
                "string",
                "null"
              ]
            },
            "country": {
              "type": [
                "string",
                "null"
              ]
            },
            "sellerId": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0
            },
            "isBoosted": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "boostedAt": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "likeCount": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0
            },
            "createdAt": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "updatedAt": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "title": {
              "type": [
                "string",
                "null"
              ]
            },
            "seller": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "username": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "verified": {
                      "type": "boolean"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "initials": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "picture": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uri"
                    },
                    "country": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "username",
                    "url",
                    "verified",
                    "name",
                    "initials",
                    "picture",
                    "country"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "hasFreeShipping": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "shippingConfidence": {
              "type": [
                "string",
                "null"
              ]
            },
            "nationalShippingCost": {
              "type": [
                "number",
                "null"
              ],
              "minimum": 0
            },
            "internationalShippingCost": {
              "type": [
                "number",
                "null"
              ],
              "minimum": 0
            },
            "names": {
              "type": "object",
              "properties": {
                "brand": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "group": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "productType": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "colours": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "styles": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "materials": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "brand",
                "condition",
                "group",
                "productType",
                "colours",
                "styles",
                "materials"
              ],
              "additionalProperties": false
            },
            "sellerReviews": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "average": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "minimum": 0,
                      "maximum": 5
                    },
                    "count": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0
                    }
                  },
                  "required": [
                    "average",
                    "count"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "sellerActivity": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "lastSeen": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "itemsSold": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0
                    },
                    "averageShippingDays": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "minimum": 0
                    }
                  },
                  "required": [
                    "lastSeen",
                    "itemsSold",
                    "averageShippingDays"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "id",
            "slug",
            "url",
            "description",
            "brand",
            "category",
            "categoryPath",
            "status",
            "activeStatus",
            "isSold",
            "price",
            "shipping",
            "images",
            "imageDetails",
            "priceBreakdown",
            "originalNationalShippingCost",
            "shippingDiscounts",
            "brandSlug",
            "isKnownBrand",
            "materials",
            "condition",
            "colours",
            "styles",
            "group",
            "productType",
            "gender",
            "isKids",
            "additionalAttributes",
            "sizes",
            "variantSetId",
            "listedQuantity",
            "location",
            "country",
            "sellerId",
            "isBoosted",
            "boostedAt",
            "likeCount",
            "createdAt",
            "updatedAt",
            "title",
            "seller",
            "hasFreeShipping",
            "shippingConfidence",
            "nationalShippingCost",
            "internationalShippingCost",
            "names",
            "sellerReviews",
            "sellerActivity"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "requestId",
        "accounting",
        "success",
        "status",
        "sourceUrl",
        "fetchedAt",
        "coverage",
        "product"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "accounting": {
          "type": "object",
          "properties": {
            "upstreamRequests": {
              "type": "integer",
              "minimum": 0
            },
            "responseBytes": {
              "type": "integer",
              "minimum": 0
            },
            "durationMs": {
              "type": "number",
              "minimum": 0
            }
          },
          "required": [
            "upstreamRequests",
            "responseBytes",
            "durationMs"
          ],
          "additionalProperties": false
        },
        "success": {
          "type": "boolean",
          "const": false
        },
        "status": {
          "type": "string",
          "enum": [
            "failed",
            "challenged"
          ]
        },
        "failure": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string",
              "enum": [
                "invalid_request",
                "unauthorized",
                "not_found",
                "restricted",
                "upstream_challenged",
                "upstream_rate_limited",
                "upstream_error",
                "unsupported_page",
                "response_too_large",
                "request_limit",
                "timeout",
                "busy"
              ]
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "requestId",
        "accounting",
        "success",
        "status",
        "failure"
      ],
      "additionalProperties": false
    }
  ]
}