Azure AI Search Servicestats API

The Servicestats API from Azure AI Search — 1 operation(s) 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 service-level statistics · Get service statistics #
Ask an LLM
“What are the service-level statistics for my search service?”
“Can I see how much my search service has been used?”
Tell an agent
Get service statistics for API version {apiVersion}.
Show service usage statistics.

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/azure-ai-search:azure-ai-search-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

azure-ai-search-servicestats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure AI Search Servicestats API
  version: '2026-10-01'
  description: Client that can be used to manage and query indexes and documents, as well as manage other resources, on a search service.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
security:
- ApiKeyAuth: []
- OAuth2Auth:
  - https://search.azure.com/.default
tags:
- name: Servicestats
paths:
  /servicestats:
    get:
      operationId: GetServiceStatistics
      description: Gets service level statistics for a search service.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - $ref: '#/components/parameters/Azure.Core.ClientRequestIdHeader'
      - name: Accept
        in: header
        description: The Accept header.
        required: false
        x-ms-enum:
          modelAsString: false
        x-ms-client-name: accept
        schema:
          type: string
          enum:
          - application/json;odata.metadata=minimal
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchServiceStatistics'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Servicestats
      summary: Get service statistics
      x-summary-source: derived
components:
  schemas:
    ServiceIndexersRuntime:
      type: object
      description: Represents service-level indexer runtime counters.
      properties:
        usedSeconds:
          type: integer
          format: int64
          description: Cumulative runtime of all indexers in the service from the beginningTime to endingTime, in seconds.
        remainingSeconds:
          type:
          - integer
          - 'null'
          format: int64
          description: Cumulative runtime remaining for all indexers in the service from the beginningTime to endingTime, in seconds.
        beginningTime:
          type: string
          format: date-time
          description: Beginning UTC time of the 24-hour period considered for indexer runtime usage (inclusive).
        endingTime:
          type: string
          format: date-time
          description: End UTC time of the 24-hour period considered for indexer runtime usage (inclusive).
      required:
      - usedSeconds
      - beginningTime
      - endingTime
    ErrorDetail:
      type: object
      description: The error detail.
      properties:
        code:
          type: string
          description: The error code.
          readOnly: true
        message:
          type: string
          description: The error message.
          readOnly: true
        target:
          type: string
          description: The error target.
          readOnly: true
        details:
          type: array
          description: The error details.
          items:
            $ref: '#/components/schemas/ErrorDetail'
          readOnly: true
        additionalInfo:
          type: array
          description: The error additional info.
          items:
            $ref: '#/components/schemas/ErrorAdditionalInfo'
          readOnly: true
    ResourceCounter:
      type: object
      description: Represents a resource's usage and quota.
      properties:
        usage:
          type: integer
          format: int64
          description: The resource usage amount.
        quota:
          type:
          - integer
          - 'null'
          format: int64
          description: The resource amount quota.
      required:
      - usage
    SearchServiceStatistics:
      type: object
      description: Response from a get service statistics request. If successful, it includes service level counters and limits.
      properties:
        counters:
          $ref: '#/components/schemas/SearchServiceCounters'
          description: Service level resource counters.
        limits:
          $ref: '#/components/schemas/SearchServiceLimits'
          description: Service level general limits.
        indexersRuntime:
          $ref: '#/components/schemas/ServiceIndexersRuntime'
          description: Service level indexer runtime consumption.
      required:
      - counters
      - limits
    ErrorResponse:
      type: object
      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.
    SearchServiceCounters:
      type: object
      description: Represents service-level resource counters and quotas.
      properties:
        aliasesCount:
          $ref: '#/components/schemas/ResourceCounter'
          description: Total number of aliases.
        documentCount:
          $ref: '#/components/schemas/ResourceCounter'
          description: Total number of documents across all indexes in the service.
        indexesCount:
          $ref: '#/components/schemas/ResourceCounter'
          description: Total number of indexes.
        indexersCount:
          $ref: '#/components/schemas/ResourceCounter'
          description: Total number of indexers.
        dataSourcesCount:
          $ref: '#/components/schemas/ResourceCounter'
          description: Total number of data sources.
        storageSize:
          $ref: '#/components/schemas/ResourceCounter'
          description: Total size of used storage in bytes.
        synonymMaps:
          $ref: '#/components/schemas/ResourceCounter'
          description: Total number of synonym maps.
        skillsetCount:
          $ref: '#/components/schemas/ResourceCounter'
          description: Total number of skillsets.
        vectorIndexSize:
          $ref: '#/components/schemas/ResourceCounter'
          description: Total memory consumption of all vector indexes within the service, in bytes.
      required:
      - aliasesCount
      - documentCount
      - indexesCount
      - indexersCount
      - dataSourcesCount
      - storageSize
      - synonymMaps
      - skillsetCount
      - vectorIndexSize
    ErrorAdditionalInfo:
      type: object
      description: The resource management error additional info.
      properties:
        type:
          type: string
          description: The additional info type.
          readOnly: true
        info:
          type: object
          description: The additional info.
          additionalProperties: {}
          readOnly: true
    SearchServiceLimits:
      type: object
      description: Represents various service level limits.
      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.
        maxStoragePerIndex:
          type:
          - integer
          - 'null'
          format: int64
          description: The maximum amount of storage in bytes allowed per index.
        maxCumulativeIndexerRuntimeSeconds:
          type:
          - integer
          - 'null'
          format: int64
          description: The maximum cumulative indexer runtime in seconds allowed for the service.
  parameters:
    Azure.Core.ClientRequestIdHeader:
      name: x-ms-client-request-id
      in: header
      description: An opaque, globally-unique, client-generated string identifier for the request.
      required: false
      x-ms-parameter-location: method
      x-ms-client-name: clientRequestId
      schema:
        type: string
        format: uuid
    Azure.Core.Foundations.ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      x-ms-parameter-location: method
      x-ms-client-name: apiVersion
      schema:
        type: string
        minLength: 1
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: api-key
      in: header
    OAuth2Auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            https://search.azure.com/.default: ''
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/v2.0/authorize
x-ms-parameterized-host:
  hostTemplate: '{endpoint}'
  useSchemePrefix: false
  parameters:
  - name: endpoint
    in: path
    description: The endpoint URL of the search service.
    required: true
    type: string
    format: uri
    x-ms-skip-url-encoding: true
x-ms-paths:
  /indexes?_overload=listWithSelectedProperties:
    get:
      operationId: Indexes_ListWithSelectedProperties
      description: Lists all indexes available for a search service.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - $ref: '#/components/parameters/Azure.Core.ClientRequestIdHeader'
      - name: Accept
        in: header
        description: The Accept header.
        required: false
        type: string
        enum:
        - application/json;odata.metadata=minimal
        x-ms-enum:
          modelAsString: false
        x-ms-client-name: accept
      - name: $select
        in: query
        description: Selects which top-level properties to retrieve. Specified as a comma-separated list of JSON property names, or '*' for all properties. The default is all properties.
        required: false
        type: array
        items:
          type: string
        collectionFormat: csv
      - name: search
        in: query
        description: A string used to narrow down the listing so that fewer results need to be paged through. If omitted or an empty string is passed, no narrowing is applied.
        required: false
        type: string
      - name: pageSize
        in: query
        description: The maximum number of items to return in a single page. The server enforces a maximum; if omitted, the server determines a suitable default.
        required: false
        type: integer
        format: int32
        minimum: 1
        maximum: 3000
      - name: searchType
        in: query
        description: Specifies how the search parameter is interpreted. Currently only 'prefix' is supported.
        required: false
        type: string
        default: prefix
        enum:
        - prefix
        x-ms-enum:
          name: ListingSearchType
          modelAsString: true
          values:
          - name: Prefix
            value: prefix
            description: Matches items whose name starts with the value of the search parameter.
      responses:
        '200':
          description: The request has succeeded.
          schema:
            $ref: '#/components/schemas/ListIndexesSelectedResult'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
  /knowledgebases('{knowledgeBaseName}')/retrieve?_overload=retrieveStream:
    post:
      operationId: KnowledgeRetrieval_RetrieveStream
      description: 'Retrieves relevant data from backing stores and streams progress and results as server-sent

        events.


        Process the response incrementally using server-sent event framing. Each event contains an

        event name and a JSON-encoded data payload. The stream ends with either a `response.completed`

        event or an `error` event. OpenAPI 2.0 represents the response body as a string, so generated

        clients may expose the raw response without typed event parsing. Do not deserialize the

        complete response body as a single JSON document.'
      produces:
      - text/event-stream
      - application/json
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - name: Accept
        in: header
        description: The Accept header.
        required: true
        type: string
        enum:
        - text/event-stream
        x-ms-enum:
          modelAsString: false
        x-ms-client-name: accept
      - name: knowledgeBaseName
        in: path
        description: The name of the knowledge base.
        required: true
        type: string
      - name: x-ms-query-source-authorization
        in: header
        description: Token identifying the user for which the query is being executed. This token is used to enforce security restrictions on documents.
        required: false
        type: string
        format: password
        x-ms-client-name: querySourceAuthorization
        x-ms-secret: true
      - $ref: '#/components/parameters/Azure.Core.ClientRequestIdHeader'
      - name: retrievalRequest
        in: body
        description: The retrieval request to process.
        required: true
        schema:
          $ref: '#/components/schemas/KnowledgeBaseRetrievalRequest'
      responses:
        '200':
          description: The request has succeeded.
          schema:
            type: string
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/components/schemas/ErrorResponse'