Unisson usage API

The usage API from Unisson — 1 operation(s) for usage.

Operations 1

GET /api/v1/usage/stats Get Usage Stats #

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/unisson-usage-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

unisson-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Unisson agent-evals Usage API
  version: 1.0.0
servers:
- url: https://api.unisson.ai
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: usage
paths:
  /api/v1/usage/stats:
    get:
      tags:
      - usage
      summary: Get Usage Stats
      description: 'Get usage statistics for the current organization.


        Returns:

        - Run duration in seconds (sum of all non-sub runs) for the filtered period

        - Per-user breakdown of runs and duration for the filtered period

        - Daily usage breakdown for the filtered period (or hourly if day is specified)'
      operationId: get_usage_stats_api_v1_usage_stats_get
      security:
      - HTTPBearer: []
      parameters:
      - name: year
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          description: Filter by year
          title: Year
        description: Filter by year
      - name: month
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            maximum: 12
            minimum: 1
          - type: 'null'
          description: Filter by month (1-12)
          title: Month
        description: Filter by month (1-12)
      - name: day
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            maximum: 31
            minimum: 1
          - type: 'null'
          description: Filter by day (1-31) - returns hourly breakdown
          title: Day
        description: Filter by day (1-31) - returns hourly breakdown
      - name: timezone
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Timezone for hourly breakdown (e.g., 'America/Los_Angeles')
          default: UTC
          title: Timezone
        description: Timezone for hourly breakdown (e.g., 'America/Los_Angeles')
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageStatsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UserUsageStats:
      properties:
        user_id:
          type: string
          title: User Id
        user_name:
          type: string
          title: User Name
        email:
          type: string
          title: Email
        run_count:
          type: integer
          title: Run Count
        duration_seconds:
          type: integer
          title: Duration Seconds
      type: object
      required:
      - user_id
      - user_name
      - email
      - run_count
      - duration_seconds
      title: UserUsageStats
    UsageStatsResponse:
      properties:
        total_duration_seconds:
          type: integer
          title: Total Duration Seconds
        user_usage:
          items:
            $ref: '#/components/schemas/UserUsageStats'
          type: array
          title: User Usage
        daily_usage:
          items:
            $ref: '#/components/schemas/DailyUsage'
          type: array
          title: Daily Usage
      type: object
      required:
      - total_duration_seconds
      - user_usage
      - daily_usage
      title: UsageStatsResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    DailyUsage:
      properties:
        date:
          type: string
          title: Date
        duration_seconds:
          type: integer
          title: Duration Seconds
      type: object
      required:
      - date
      - duration_seconds
      title: DailyUsage
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer