# Monitor Query Logs API

> Monitor Query Logs API on Apizie: 7 endpoints (Execute an Analytics query using resource URI, Execute an Analytics query using resource ID, Execute a batch of Analytics queries, Gets metadata information, …) 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-operational-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-operational-insights`
- Category: Cloud
- Status: byok
- Source: https://learn.microsoft.com/rest/api/azure/
- Page: https://apizie.tech/api/cloud/azure-monitor-operational-insights
- OpenAPI: https://apizie.tech/api/cloud/azure-monitor-operational-insights/openapi.json



## Endpoints

### Execute an Analytics query using resource URI
`GET https://apizie.tech/v1/cloud:azure-monitor-operational-insights/query-get-with-resource-id` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | The Log Analytics service endpoint. |
| apiVersion | string | yes | The service API version. |
| resourceId | string | yes | The identifier of the resource. |
| query | string | yes | The Analytics query. Learn more about the [Analytics query… |
| timespan | string | no | Optional. The timespan over which to query data. This is an ISO8601 time period value. This timespan is applied in addition to any that… |

### Execute an Analytics query using resource ID
`POST https://apizie.tech/v1/cloud:azure-monitor-operational-insights/query-execute-with-resource-id` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | The Log Analytics service endpoint. |
| apiVersion | string | yes | The service API version. |
| resourceId | string | yes | The identifier of the resource. |
| Prefer | string | no | Optional. The prefer header to set server timeout, query statistics and visualization information. |
| body | object | yes | JSON request body |

### Execute a batch of Analytics queries
`POST https://apizie.tech/v1/cloud:azure-monitor-operational-insights/query-batch` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | The Log Analytics service endpoint. |
| apiVersion | string | yes | The service API version. |
| body | object | yes | JSON request body |

### Gets metadata information
`GET https://apizie.tech/v1/cloud:azure-monitor-operational-insights/metadata-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | The Log Analytics service endpoint. |
| apiVersion | string | yes | The service API version. |
| workspaceId | string | yes | Primary Workspace ID of the query. This is the Workspace ID from the Properties blade in the Azure portal. |

### Gets metadata information
`POST https://apizie.tech/v1/cloud:azure-monitor-operational-insights/metadata-post` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | The Log Analytics service endpoint. |
| apiVersion | string | yes | The service API version. |
| workspaceId | string | yes | Primary Workspace ID of the query. This is the Workspace ID from the Properties blade in the Azure portal. |

### Execute an Analytics query
`GET https://apizie.tech/v1/cloud:azure-monitor-operational-insights/query-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | The Log Analytics service endpoint. |
| apiVersion | string | yes | The service API version. |
| workspaceId | string | yes | Primary Workspace ID of the query. This is the Workspace ID from the Properties blade in the Azure portal. |
| query | string | yes | The Analytics query. Learn more about the [Analytics query… |
| timespan | string | no | Optional. The timespan over which to query data. This is an ISO8601 time period value. This timespan is applied in addition to any that… |

### Execute an Analytics query
`POST https://apizie.tech/v1/cloud:azure-monitor-operational-insights/query-execute` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | The Log Analytics service endpoint. |
| apiVersion | string | yes | The service API version. |
| workspaceId | string | yes | Primary Workspace ID of the query. This is the Workspace ID from the Properties blade in the Azure portal. |
| Prefer | string | no | Optional. The prefer header to set server timeout, query statistics and visualization information. |
| body | object | yes | JSON request body |

## Example
```
curl "https://apizie.tech/v1/cloud:azure-monitor-operational-insights/query-get-with-resource-id" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

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

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

### Can AI agents use the Monitor Query Logs 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-operational-insights.

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