api-ninjas-com Analytics API

The Analytics API provides detailed usage analytics and API call history for your account. Track your API consumption, monitor usage patterns, and analyze which APIs you're calling most frequently. Calling this API does NOT consume any of your API quota.

Operations 1

GET /v1/analytics Get account analytics #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/api-ninjas-com:api-ninjas-com-analytics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

api-ninjas-com-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ninjas Analytics API
  description: 'Combined OpenAPI specification for every API Ninjas endpoint. Requests go to https://api.api-ninjas.com with an `X-Api-Key` header; get a free key at https://api-ninjas.com/register. Human-readable docs: https://api-ninjas.com/api. Index for LLMs: https://api-ninjas.com/llms.txt.'
  version: 1.0.0
  contact:
    name: API Ninjas
    url: https://api-ninjas.com
  license:
    name: Proprietary
servers:
- url: https://api.api-ninjas.com
  description: API Ninjas Production
security:
- ApiKeyAuth: []
tags:
- name: Analytics
  description: The Analytics API provides detailed usage analytics and API call history for your account. Track your API consumption, monitor usage patterns, and analyze which APIs you're calling most frequently. Calling this API does NOT consume any of your API quota.
paths:
  /v1/analytics:
    get:
      summary: Get account analytics
      description: Returns usage analytics and API call history for your own account, including which APIs you call most. Pass your API key in the `X-Api-Key` header or as the `api_key` query parameter. Calls here do not consume quota.
      operationId: getAnalytics
      tags:
      - Analytics
      parameters:
      - name: api_key
        in: query
        description: Your API key, as an alternative to the X-Api-Key header. One of the two is required.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsOpenapi_Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsOpenapi_Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsOpenapi_Error'
components:
  schemas:
    AnalyticsResponse:
      type: object
      properties:
        api_key:
          type: string
          example: YOUR_API_KEY
        account_creation_date:
          type: string
          format: date
          example: '2024-01-15'
        subscription_tier:
          type: string
          example: Professional
        subscription_period:
          type: string
          enum:
          - month
          - year
          example: month
        api_reset_date:
          type: string
          format: date
          example: '2024-12-01'
        current_month_usage:
          type: integer
          example: 45230
        api_call_history:
          type: object
          additionalProperties:
            type: object
            additionalProperties:
              type: integer
          example:
            '2024-11-15':
              Cars: 125
              Quotes: 89
              Weather: 234
            '2024-11-14':
              Celebrity: 45
              Nutrition: 156
              Quotes: 78
        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
          example:
            '2024-11-15':
              /v1/cars: 125
              /v1/quotes: 89
              /v1/weather: 234
            '2024-11-14':
              /v1/celebrity: 45
              /v1/nutrition: 120
              /v1/nutritionitem: 36
              /v1/quotes: 78
    AnalyticsOpenapi_Error:
      type: object
      properties:
        message:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
externalDocs:
  description: API Ninjas documentation
  url: https://api-ninjas.com/api