{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bidprowl-com/json-schema/bidprowl-com-usage-schema.json",
  "title": "Usage",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bidprowl-com-openapi.json#/components/schemas/Usage",
  "type": "object",
  "properties": {
    "key_id": {
      "type": "string"
    },
    "plan": {
      "type": "string",
      "enum": [
        "free",
        "pro",
        "pro_plus"
      ]
    },
    "period": {
      "type": "string",
      "description": "Quota month, YYYY-MM (UTC)"
    },
    "limit": {
      "type": "integer"
    },
    "used": {
      "type": "integer"
    },
    "remaining": {
      "type": "integer"
    },
    "resets_at": {
      "type": "string",
      "format": "date-time",
      "description": "First of next month, 00:00 UTC"
    },
    "resets_at_epoch": {
      "type": "integer"
    },
    "batch_comps_max": {
      "type": "integer",
      "description": "Max queries per POST /api/v1/comps/batch"
    },
    "features": {
      "type": "object",
      "properties": {
        "item_comps": {
          "type": "boolean"
        },
        "sold_history_item_level": {
          "type": "boolean"
        },
        "csv_export": {
          "type": "boolean"
        },
        "webhooks": {
          "type": "boolean"
        }
      }
    }
  }
}