{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-analytics-response-schema.json",
  "title": "AnalyticsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-analytics-api-openapi.yml#/components/schemas/AnalyticsResponse",
  "type": "object",
  "properties": {
    "api_key": {
      "type": "string"
    },
    "account_creation_date": {
      "type": "string",
      "format": "date"
    },
    "subscription_tier": {
      "type": "string"
    },
    "subscription_period": {
      "type": "string",
      "enum": [
        "month",
        "year"
      ]
    },
    "api_reset_date": {
      "type": "string",
      "format": "date"
    },
    "current_month_usage": {
      "type": "integer"
    },
    "api_call_history": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {
          "type": "integer"
        }
      }
    },
    "endpoint_call_history": {
      "type": "object",
      "description": "Daily API calls broken down by endpoint. Each key is a date (YYYY-MM-DD), and the value maps endpoints (such as /v1/cars) to call counts for that day, newest day first.",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {
          "type": "integer"
        }
      }
    }
  }
}