SpendAnalyticsPaginatedResponse

CompanyCloudHostingVPSIndia

Properties

Name Type Description
results array
metadata object
View JSON Schema on GitHub

JSON Schema

bookmyhost-spend-analytics-paginated-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-spend-analytics-paginated-response-schema.json",
  "title": "SpendAnalyticsPaginatedResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-agent-management-api-openapi.yml#/components/schemas/SpendAnalyticsPaginatedResponse",
  "properties": {
    "results": {
      "items": {
        "$ref": "#/$defs/DailySpendData"
      },
      "type": "array",
      "title": "Results"
    },
    "metadata": {
      "$ref": "#/$defs/DailySpendMetadata"
    }
  },
  "type": "object",
  "required": [
    "results"
  ],
  "$defs": {
    "BreakdownMetrics": {
      "properties": {
        "mcp_servers": {
          "additionalProperties": {
            "$ref": "#/$defs/MetricWithMetadata"
          },
          "type": "object",
          "title": "Mcp Servers"
        },
        "models": {
          "additionalProperties": {
            "$ref": "#/$defs/MetricWithMetadata"
          },
          "type": "object",
          "title": "Models"
        },
        "model_groups": {
          "additionalProperties": {
            "$ref": "#/$defs/MetricWithMetadata"
          },
          "type": "object",
          "title": "Model Groups"
        },
        "providers": {
          "additionalProperties": {
            "$ref": "#/$defs/MetricWithMetadata"
          },
          "type": "object",
          "title": "Providers"
        },
        "endpoints": {
          "additionalProperties": {
            "$ref": "#/$defs/MetricWithMetadata"
          },
          "type": "object",
          "title": "Endpoints"
        },
        "api_keys": {
          "additionalProperties": {
            "$ref": "#/$defs/KeyMetricWithMetadata"
          },
          "type": "object",
          "title": "Api Keys"
        },
        "entities": {
          "additionalProperties": {
            "$ref": "#/$defs/MetricWithMetadata"
          },
          "type": "object",
          "title": "Entities"
        }
      },
      "type": "object",
      "title": "BreakdownMetrics",
      "description": "Breakdown of spend by different dimensions"
    },
    "DailySpendData": {
      "properties": {
        "date": {
          "type": "string",
          "format": "date",
          "title": "Date"
        },
        "metrics": {
          "$ref": "#/$defs/SpendMetrics"
        },
        "breakdown": {
          "$ref": "#/$defs/BreakdownMetrics"
        }
      },
      "type": "object",
      "required": [
        "date",
        "metrics"
      ],
      "title": "DailySpendData"
    },
    "DailySpendMetadata": {
      "properties": {
        "total_spend": {
          "type": "number",
          "title": "Total Spend",
          "default": 0.0
        },
        "total_prompt_tokens": {
          "type": "integer",
          "title": "Total Prompt Tokens",
          "default": 0
        },
        "total_completion_tokens": {
          "type": "integer",
          "title": "Total Completion Tokens",
          "default": 0
        },
        "total_tokens": {
          "type": "integer",
          "title": "Total Tokens",
          "default": 0
        },
        "total_api_requests": {
          "type": "integer",
          "title": "Total Api Requests",
          "default": 0
        },
        "total_successful_requests": {
          "type": "integer",
          "title": "Total Successful Requests",
          "default": 0
        },
        "total_failed_requests": {
          "type": "integer",
          "title": "Total Failed Requests",
          "default": 0
        },
        "total_cache_read_input_tokens": {
          "type": "integer",
          "title": "Total Cache Read Input Tokens",
          "default": 0
        },
        "total_cache_creation_input_tokens": {
          "type": "integer",
          "title": "Total Cache Creation Input Tokens",
          "default": 0
        },
        "page": {
          "type": "integer",
          "title": "Page",
          "default": 1
        },
        "total_pages": {
          "type": "integer",
          "title": "Total Pages",
          "default": 1
        },
        "has_more": {
          "type": "boolean",
          "title": "Has More",
          "default": false
        }
      },
      "type": "object",
      "title": "DailySpendMetadata"
    },
    "KeyMetadata": {
      "properties": {
        "key_alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Key Alias"
        },
        "team_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Team Id"
        }
      },
      "type": "object",
      "title": "KeyMetadata",
      "description": "Metadata for a key"
    },
    "KeyMetricWithMetadata": {
      "properties": {
        "metrics": {
          "$ref": "#/$defs/SpendMetrics"
        },
        "metadata": {
          "$ref": "#/$defs/KeyMetadata"
        }
      },
      "type": "object",
      "required": [
        "metrics"
      ],
      "title": "KeyMetricWithMetadata",
      "description": "Base class for metrics with additional metadata"
    },
    "MetricWithMetadata": {
      "properties": {
        "metrics": {
          "$ref": "#/$defs/SpendMetrics"
        },
        "metadata": {
          "additionalProperties": true,
          "type": "object",
          "title": "Metadata"
        },
        "api_key_breakdown": {
          "additionalProperties": {
            "$ref": "#/$defs/KeyMetricWithMetadata"
          },
          "type": "object",
          "title": "Api Key Breakdown"
        }
      },
      "type": "object",
      "required": [
        "metrics"
      ],
      "title": "MetricWithMetadata"
    },
    "SpendMetrics": {
      "properties": {
        "spend": {
          "type": "number",
          "title": "Spend",
          "default": 0.0
        },
        "prompt_tokens": {
          "type": "integer",
          "title": "Prompt Tokens",
          "default": 0
        },
        "completion_tokens": {
          "type": "integer",
          "title": "Completion Tokens",
          "default": 0
        },
        "cache_read_input_tokens": {
          "type": "integer",
          "title": "Cache Read Input Tokens",
          "default": 0
        },
        "cache_creation_input_tokens": {
          "type": "integer",
          "title": "Cache Creation Input Tokens",
          "default": 0
        },
        "total_tokens": {
          "type": "integer",
          "title": "Total Tokens",
          "default": 0
        },
        "successful_requests": {
          "type": "integer",
          "title": "Successful Requests",
          "default": 0
        },
        "failed_requests": {
          "type": "integer",
          "title": "Failed Requests",
          "default": 0
        },
        "api_requests": {
          "type": "integer",
          "title": "Api Requests",
          "default": 0
        }
      },
      "type": "object",
      "title": "SpendMetrics"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/bookmyhost-spend-analytics-paginated-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.