Microsoft Azure Servicestats API

The Servicestats API from Microsoft Azure, for servicestats.

GitHub OpenAPI

Operations 1

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /servicestats Get search service usage statistics · Microsoft Azure Get Servicestats #
Ask an LLM
“How close is my search service to its index and storage limits?”
“Where can I see document counts and quotas for my Cognitive Search service?”
Tell an agent
Show the service-level statistics for my search service.
Get search service counters and quotas with API version {apiVersion}.

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-azure:microsoft-azure-servicestats-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-azure-servicestats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure SearchServiceClient Servicestats API
  description: Client that can be used to manage and query indexes and documents, as well as manage other resources, on a search service.
  version: 2019-05-06-Preview
  x-ms-code-generation-settings:
    useDateTimeOffset: true
tags:
- name: Servicestats
paths:
  /servicestats:
    get:
      tags:
      - Servicestats
      operationId: microsoftAzureGetservicestatistics
      x-ms-examples:
        SearchServiceGetServiceStatistics:
          $ref: ./examples/SearchServiceGetServiceStatistics.json
      description: Gets service level statistics for a search service.
      parameters:
      - $ref: '#/components/parameters/ClientRequestIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      x-ms-request-id: request-id
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceStatistics'
        default:
          description: Error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchError'
      summary: Microsoft Azure Get Servicestats
components:
  schemas:
    SearchError:
      properties:
        code:
          type: string
          readOnly: true
          description: One of a server-defined set of error codes.
        message:
          type: string
          readOnly: true
          description: A human-readable representation of the error.
        details:
          type: array
          items:
            $ref: '#/components/schemas/SearchError'
          readOnly: true
          description: An array of details about specific errors that led to this reported error.
      required:
      - message
      description: Describes an error condition for the Azure Cognitive Search API.
    ServiceLimits:
      properties:
        maxFieldsPerIndex:
          type:
          - integer
          - 'null'
          format: int32
          description: The maximum allowed fields per index.
        maxFieldNestingDepthPerIndex:
          type:
          - integer
          - 'null'
          format: int32
          description: The maximum depth which you can nest sub-fields in an index, including the top-level complex field. For example, a/b/c has a nesting depth of 3.
        maxComplexCollectionFieldsPerIndex:
          type:
          - integer
          - 'null'
          format: int32
          description: The maximum number of fields of type Collection(Edm.ComplexType) allowed in an index.
        maxComplexObjectsInCollectionsPerDocument:
          type:
          - integer
          - 'null'
          format: int32
          description: The maximum number of objects in complex collections allowed per document.
      description: Represents various service level limits.
    ResourceCounter:
      properties:
        usage:
          type: integer
          format: int64
          description: The resource usage amount.
        quota:
          type:
          - integer
          - 'null'
          format: int64
          description: The resource amount quota.
      required:
      - usage
      description: Represents a resource's usage and quota.
    ServiceCounters:
      properties:
        documentCount:
          x-ms-client-name: documentCounter
          $ref: '#/components/schemas/ResourceCounter'
          description: Total number of documents across all indexes in the service.
        indexesCount:
          x-ms-client-name: indexCounter
          $ref: '#/components/schemas/ResourceCounter'
          description: Total number of indexes.
        indexersCount:
          x-ms-client-name: indexerCounter
          $ref: '#/components/schemas/ResourceCounter'
          description: Total number of indexers.
        dataSourcesCount:
          x-ms-client-name: dataSourceCounter
          $ref: '#/components/schemas/ResourceCounter'
          description: Total number of data sources.
        storageSize:
          x-ms-client-name: storageSizeCounter
          $ref: '#/components/schemas/ResourceCounter'
          description: Total size of used storage in bytes.
        synonymMaps:
          x-ms-client-name: synonymMapCounter
          $ref: '#/components/schemas/ResourceCounter'
          description: Total number of synonym maps.
        skillsetCount:
          x-ms-client-name: skillsetCounter
          $ref: '#/components/schemas/ResourceCounter'
          description: Total number of skillsets.
      required:
      - documentCount
      - indexesCount
      - indexersCount
      - dataSourcesCount
      - storageSize
      - synonymMaps
      description: Represents service-level resource counters and quotas.
    ServiceStatistics:
      properties:
        counters:
          $ref: '#/components/schemas/ServiceCounters'
          description: Service level resource counters.
        limits:
          $ref: '#/components/schemas/ServiceLimits'
          description: Service level general limits.
      required:
      - counters
      - limits
      description: Response from a get service statistics request. If successful, it includes service level counters and limits.
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      description: Client Api Version.
      schema:
        type: string
    ClientRequestIdParameter:
      name: x-ms-client-request-id
      in: header
      required: false
      description: The tracking ID sent with the request to help with debugging.
      x-ms-client-request-id: true
      x-ms-parameter-grouping:
        name: request-options
      x-ms-parameter-location: method
      schema:
        type: string
        format: uuid
x-ms-parameterized-host:
  hostTemplate: '{endpoint}'
  useSchemePrefix: false
  parameters:
  - $ref: '#/components/parameters/EndpointParameter'
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/searchservice.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)