Sonatype Nexus Repository Usage History API

The Usage History API from Sonatype Nexus Repository — 1 operation(s) for usage history.

Operations 1

GET /v1/usage-history Get usage history for sparklines #

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/nexus:nexus-usage-history-api"
All apis
curl "https://apis.io/api/v1/apis?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. See our Privacy Policy and Terms.

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

OpenAPI Specification

nexus-usage-history-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nexus Repository Manager REST Usage History API
  version: 3.97.2-02
servers:
- url: /service/rest
tags:
- name: Usage History
paths:
  /v1/usage-history:
    get:
      tags:
      - Usage History
      summary: Get usage history for sparklines
      description: Returns historical usage metrics for the specified metric type and period. Used for rendering sparkline charts in the dashboard.
      operationId: listUsageHistory
      parameters:
      - name: metric
        in: query
        description: 'Metric type: ''requests'' or ''components'''
        required: true
        schema:
          type: string
      - name: period
        in: query
        description: 'Period: ''daily'' (last 7 days) or ''monthly'' (last 12 months)'
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Usage history retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageHistoryXO'
        '400':
          description: Invalid metric or period specified
        '403':
          description: Insufficient permissions
components:
  schemas:
    UsageHistoryXO:
      type: object
      properties:
        metric:
          type: string
          description: Metric type requested
          example: requests
          enum:
          - requests
          - components
        period:
          type: string
          description: Period requested
          example: daily
          enum:
          - daily
          - monthly
        data:
          type: array
          description: Data points ordered oldest to newest
          items:
            $ref: '#/components/schemas/UsageHistoryPointXO'
      description: Historical usage metrics for a single metric type and period
    UsageHistoryPointXO:
      type: object
      properties:
        date:
          type: string
          description: 'Period covered: yyyy-MM-dd for daily series, yyyy-MM for monthly'
          example: '2026-08-01'
        value:
          type: integer
          description: Metric value recorded for the period
          format: int64
          example: 150
      description: A single data point in a usage history series