{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sellerassistant-app/json-schema/sellerassistant-app-product-stats-schema.json",
  "title": "ProductStats",
  "description": "Product statistics. If the value is `null`, it means that there is insufficient data.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sellerassistant-app-openapi.json#/components/schemas/ProductStats",
  "required": [
    "currency",
    "amazonPrice",
    "marketplaceNewPrice",
    "buyBoxPrice",
    "fbmPrice",
    "fbaPrice",
    "bsr",
    "offersCount",
    "reviewsCount",
    "bsrDropsCount",
    "monthlySold"
  ],
  "properties": {
    "currency": {
      "$ref": "#/$defs/Currency",
      "description": "Currency information for the prices"
    },
    "amazonPrice": {
      "description": "Amazon price statistics (price set by Amazon itself)",
      "required": [
        "current",
        "avg30",
        "avg90",
        "avg180",
        "avg365"
      ],
      "properties": {
        "current": {
          "description": "Current Amazon price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg30": {
          "description": "30-day average Amazon price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg90": {
          "description": "90-day average Amazon price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg180": {
          "description": "180-day average Amazon price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg365": {
          "description": "365-day average Amazon price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        }
      },
      "type": "object"
    },
    "marketplaceNewPrice": {
      "description": "Marketplace new price statistics (typically the lowest price set by third-party sellers for new products)",
      "required": [
        "current",
        "avg30",
        "avg90",
        "avg180",
        "avg365"
      ],
      "properties": {
        "current": {
          "description": "Current marketplace new price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg30": {
          "description": "30-day average marketplace new price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg90": {
          "description": "90-day average marketplace new price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg180": {
          "description": "180-day average marketplace new price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg365": {
          "description": "365-day average marketplace new price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        }
      },
      "type": "object"
    },
    "buyBoxPrice": {
      "description": "Buy Box price statistics (price of the product that appears in the Buy Box)",
      "required": [
        "current",
        "avg30",
        "avg90",
        "avg180",
        "avg365"
      ],
      "properties": {
        "current": {
          "description": "Current Buy Box price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg30": {
          "description": "30-day average Buy Box price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg90": {
          "description": "90-day average Buy Box price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg180": {
          "description": "180-day average Buy Box price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg365": {
          "description": "365-day average Buy Box price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        }
      },
      "type": "object"
    },
    "fbmPrice": {
      "description": "FBM price statistics",
      "required": [
        "current",
        "avg30",
        "avg90",
        "avg180",
        "avg365"
      ],
      "properties": {
        "current": {
          "description": "Current FBM price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg30": {
          "description": "30-day average FBM price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg90": {
          "description": "90-day average FBM price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg180": {
          "description": "180-day average FBM price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg365": {
          "description": "365-day average FBM price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        }
      },
      "type": "object"
    },
    "fbaPrice": {
      "description": "FBA price statistics",
      "required": [
        "current",
        "avg30",
        "avg90",
        "avg180",
        "avg365"
      ],
      "properties": {
        "current": {
          "description": "Current FBA price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg30": {
          "description": "30-day average FBA price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg90": {
          "description": "90-day average FBA price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg180": {
          "description": "180-day average FBA price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        },
        "avg365": {
          "description": "365-day average FBA price in the standard unit of the currency",
          "type": [
            "string",
            "null"
          ],
          "format": "decimal"
        }
      },
      "type": "object"
    },
    "bsr": {
      "description": "Best Sellers Rank (BSR) statistics",
      "required": [
        "current",
        "avg30",
        "avg90",
        "avg180",
        "avg365"
      ],
      "properties": {
        "current": {
          "description": "Current Best Sellers Rank (BSR)",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg30": {
          "description": "30-day average BSR",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg90": {
          "description": "90-day average BSR",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg180": {
          "description": "180-day average BSR",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg365": {
          "description": "365-day average BSR",
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "offersCount": {
      "description": "Offers count statistics",
      "required": [
        "current",
        "avg30",
        "avg90",
        "avg180",
        "avg365"
      ],
      "properties": {
        "current": {
          "description": "Current number of offers",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg30": {
          "description": "30-day average number of offers",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg90": {
          "description": "90-day average number of offers",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg180": {
          "description": "180-day average number of offers",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg365": {
          "description": "365-day average number of offers",
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "reviewsCount": {
      "description": "Reviews count statistics",
      "required": [
        "current",
        "avg30",
        "avg90",
        "avg180",
        "avg365"
      ],
      "properties": {
        "current": {
          "description": "Current number of reviews",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg30": {
          "description": "30-day average number of reviews",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg90": {
          "description": "90-day average number of reviews",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg180": {
          "description": "180-day average number of reviews",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg365": {
          "description": "365-day average number of reviews",
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "bsrDropsCount": {
      "description": "BSR drops count statistics. Indicates the number of times the Best Sellers Rank (BSR) has dropped within the specified period, which can be an indicator of sales spikes.",
      "required": [
        "avg30",
        "avg90",
        "avg180",
        "avg365"
      ],
      "properties": {
        "avg30": {
          "description": "30-day average BSR drops count",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg90": {
          "description": "90-day average BSR drops count",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg180": {
          "description": "180-day average BSR drops count",
          "type": [
            "integer",
            "null"
          ]
        },
        "avg365": {
          "description": "365-day average BSR drops count",
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "monthlySold": {
      "description": "Monthly units sold",
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "type": "object",
  "$defs": {
    "Currency": {
      "required": [
        "code",
        "symbol"
      ],
      "properties": {
        "code": {
          "description": "Currency code (e.g., USD, EUR)",
          "type": "string"
        },
        "symbol": {
          "description": "Currency symbol (e.g., $, €)",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}