편집

다음을 통해 공유


Overview of metered APIs and services in Microsoft Graph

Microsoft Graph includes APIs that are available at no additional cost with user subscription licenses and APIs and services that are metered. Metered APIs and services in Microsoft Graph incur costs based on usage. The costs might be incurred per API call made, per object returned in an API call, or through other measures.

Whether metered or not, APIs in Microsoft Graph follow these two principles:

Metering some APIs helps to ensure the health of the current and future Microsoft Graph ecosystem by balancing platform access and cost. In the event that a Microsoft Graph API that is included with user subscription licenses becomes metered, that would be a non-backward compatible change and the versioning, support, and breaking change policies for Microsoft Graph would apply.

For the list of metered APIs and services, see Metered APIs and services.

API categories and metering

Microsoft Graph APIs fall into three categories, and metering may apply based on the category of the API.

Standard APIs

Most Microsoft Graph APIs are standard APIs. These APIs perform standard operations (create, read, update, delete) on customer content and administrative endpoints. Reasonable access limits for these APIs are defined based on documented usage thresholds. This helps to ensure a positive customer experience and encourages efficient API usage patterns. Access to standard APIs within the defined usage thresholds is available as part of the user license without additional costs.

High-capacity APIs

High-capacity APIs ensure that customers and developers have access to data at scale. This category includes purpose-built, bulk export or import endpoints and Microsoft Graph services. These APIs may be metered and incur additional costs beyond user subscription licenses.

Advanced APIs

Advanced APIs provide access to enriched or aggregated data, or advanced functionality that extends from Microsoft 365. The assignSensitivityLabel API is an example of an advanced API. These APIs may be metered and incur additional costs beyond user subscription licenses.

Accessing metered APIs

To access metered APIs and services in Microsoft Graph, an application must be associated with an active Microsoft Azure subscription. For details about how to associate an app to a subscription, see Enable metered APIs and services in Microsoft Graph.

Considerations for using metered APIs

Keep the following considerations in mind when you use metered APIs and services in Microsoft Graph:

  • Metered APIs can return errors related to your subscription status in addition to other common errors. For details about Microsoft Graph errors, see Microsoft Graph errors and resource types.
  • Metered APIs are billed according to API usage. Be sure to understand the metering unit so that you can estimate the costs associated with a particular API.

Known limitations

The following limitations apply to metered APIs:

  • Metered APIs and services in Microsoft Graph are currently available only in the Microsoft global environment and not in national cloud deployments, including Microsoft 365 GCC deployments accessed through the worldwide Microsoft Graph endpoint. For details about national clouds, see National cloud deployments.
  • The target application must be a confidential client application (for example, web application, web API, or daemon/service). Public client applications (desktop and mobile applications) aren't supported.
  • Azure managed identities aren't supported to call metered APIs. For more information, see Azure services that support managed identities.