Microsoft Cognitive Services Usages API

The Usages API from Microsoft Cognitive Services — 1 operation(s) for usages.

GitHub OpenAPI

Operations 1

GET /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/usages Usages list #

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/microsoft-cognitive-services:microsoft-cognitive-services-usages-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. 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.

OpenAPI Specification

microsoft-cognitive-services-usages-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CognitiveServicesManagementClient Usages API
  version: '2026-11-01'
  description: Cognitive Services Management Client
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Usages
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/usages:
    get:
      operationId: Usages_List
      tags:
      - Usages
      description: Get usages for the requested subscription
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: $filter
        in: query
        description: An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).
        required: false
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Usages list
      x-summary-source: derived
components:
  schemas:
    QuotaUsageStatus:
      type: string
      description: Cognitive Services account quota usage status.
      enum:
      - Included
      - Blocked
      - InOverage
      - Unknown
      x-ms-enum:
        name: QuotaUsageStatus
        modelAsString: true
        values:
        - name: Included
          value: Included
        - name: Blocked
          value: Blocked
        - name: InOverage
          value: InOverage
        - name: Unknown
          value: Unknown
    Usage:
      type: object
      description: The usage data for a usage request.
      properties:
        id:
          type: string
          format: arm-id
          description: Fully qualified resource ID for the usage. Ex - /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/usages/{usageName}
          readOnly: true
        type:
          type: string
          description: The type of the usage resource. E.g. "Microsoft.CognitiveServices/locations/usages"
          readOnly: true
        unit:
          $ref: '#/components/schemas/UnitType'
          description: The unit of the metric.
        name:
          $ref: '#/components/schemas/MetricName'
          description: The name information for the metric.
        quotaPeriod:
          type: string
          description: The quota period used to summarize the usage values.
        limit:
          type: number
          format: double
          description: Maximum value for this metric.
        currentValue:
          type: number
          format: double
          description: Current value for this metric.
        nextResetTime:
          type: string
          description: Next reset time for current quota.
        status:
          $ref: '#/components/schemas/QuotaUsageStatus'
          description: Cognitive Services account quota usage status.
        scopeType:
          $ref: '#/components/schemas/QuotaScopeType'
          description: The scope type of the quota usage.
        scopeId:
          type:
          - string
          - 'null'
          description: The scope identifier of the quota usage.
    QuotaScopeType:
      type: string
      description: The quota scope that determines the level at which the quota is applied.
      enum:
      - Regional
      - Global
      - DataZone
      - Classic
      x-ms-enum:
        name: QuotaScopeType
        modelAsString: true
        values:
        - name: Regional
          value: Regional
        - name: Global
          value: Global
        - name: DataZone
          value: DataZone
        - name: Classic
          value: Classic
    MetricName:
      type: object
      description: A metric name.
      properties:
        value:
          type: string
          description: The name of the metric.
        localizedValue:
          type: string
          description: The friendly name of the metric.
    UnitType:
      type: string
      description: The unit of the metric.
      enum:
      - Count
      - Bytes
      - Seconds
      - Percent
      - CountPerSecond
      - BytesPerSecond
      - Milliseconds
      x-ms-enum:
        name: UnitType
        modelAsString: true
        values:
        - name: Count
          value: Count
        - name: Bytes
          value: Bytes
        - name: Seconds
          value: Seconds
        - name: Percent
          value: Percent
        - name: CountPerSecond
          value: CountPerSecond
        - name: BytesPerSecond
          value: BytesPerSecond
        - name: Milliseconds
          value: Milliseconds
    UsageListResult:
      type: object
      description: The response to a list usage request.
      properties:
        nextLink:
          type: string
          description: The link used to get the next page of Usages.
        value:
          type: array
          description: The list of usages for Cognitive Service account.
          items:
            $ref: '#/components/schemas/Usage'
          x-ms-identifiers:
          - name
    ErrorResponse:
      type: object
      title: Error response
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: The error object.
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription.
      required: true
      schema:
        type: string
        minLength: 1
    LocationParameter:
      name: location
      in: path
      description: The name of Azure region.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        minLength: 1
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.