# Monitor Query Metrics API

> Monitor Query Metrics API on Apizie: 1 endpoint (Lists the metric values for multiple resources.) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/cloud:azure-monitor-insights/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `cloud:azure-monitor-insights`
- Category: Cloud
- Status: byok
- Source: https://learn.microsoft.com/rest/api/azure/
- Page: https://apizie.tech/api/cloud/azure-monitor-insights
- OpenAPI: https://apizie.tech/api/cloud/azure-monitor-insights/openapi.json



## Endpoints

### Lists the metric values for multiple resources.
`POST https://apizie.tech/v1/cloud:azure-monitor-insights/batch` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | The regional endpoint to use, for example https://eastus.metrics.monitor.azure.com. The region should match the region of the requested… |
| api-version | string | no | The API version to use for this operation. |
| subscriptionId | string | yes | The subscription identifier for the resources in this batch. |
| starttime | string | no | The start time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. If you have specified the endtime parameter, then… |
| endtime | string | no | The end time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. |
| interval | string | no | The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special case for 'FULL' value that returns… |
| metricnamespace | string | yes | Metric namespace that contains the requested metric names. |
| metricnames | array | yes | The names of the metrics (comma separated) to retrieve. |
| aggregation | string | no | The list of aggregation types (comma separated) to retrieve. *Examples: average, minimum, maximum* |
| top | integer | no | The maximum number of records to retrieve per resource ID in the request. Valid only if filter is specified. Defaults to 10. |
| orderby | string | no | The aggregation to use for sorting results and the direction of the sort. Only one order can be specified. *Examples: sum asc* |
| filter | string | no | The filter is used to reduce the set of metric data returned. Example: Metric contains metadata A, B and C. - Return all time series of C… |
| rollupby | string | no | Dimension name(s) to rollup results by. For example if you only want to see metric values with a filter like 'City eq Seattle or City eq… |
| body | object | yes | JSON request body |

## Example
```
curl "https://apizie.tech/v1/cloud:azure-monitor-insights/batch" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Monitor Query Metrics API?
Create a free Apizie key, then send POST https://apizie.tech/v1/cloud:azure-monitor-insights/batch with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Monitor Query Metrics API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Monitor Query Metrics itself also needs your own key from azure.com.

### Can AI agents use the Monitor Query Metrics API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key cloud:azure-monitor-insights.

### What is the status of the Monitor Query Metrics API?
Needs your own provider key (bring your own key)
