How can we use Dynatrace API to group based on management area (mzId) and corresponding license consumption?

Our company wants to obtain statistics on license usage grouped by management zones (mzId).
How can we achieve this via Dynatrace APIs?
Please provide steps and official documentation references.

我们是否要跟踪每个管理区域的许可证使用情况?Dynatrace 本身是否支持此功能?如果不是,可以调用哪些 API 来实现该功能?

[Google Translate:
Do we want to track license usage per admin zone? Does Dynatrace natively support this? If not, what APIs can be called to achieve this? Do we want to track license usage per admin zone? Does Dynatrace natively support this? If not, what APIs can be called to achieve this?]

Product idea has been raised → https://community.dynatrace.com/t5/Product-ideas/API-for-license-info-by-management-zone/idi-p/271821

也是我

[Google Translate: Me too]