> For the complete documentation index, see [llms.txt](https://clients.medianova.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clients.medianova.com/api-documentation/analytics/resource-analytics.md).

# Resource Analytics

Retrieve resource-level CDN analytics, including historical metrics, traffic distribution, request patterns, cache performance, and HTTP response data.

Retrieve aggregated and time-series analytics data for CDN resources, including historical metrics, traffic and request distributions, cache performance, HTTP status codes, and real-time activity.

### Historical Metrics

Retrieve historical analytics data for CDN resources within a specified time range. Use the `type` parameter in the request body to select the metric.

Supported values: `hit`, `hit_ratio`, `traffic`, `gpu_transaction`, `bandwidth`, `requests`.

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/historical" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

### Traffic & Request Analytics

Retrieve time-series analytics for CDN traffic, requests, and bandwidth.

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/traffic\_report/graph" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/request\_report/graph" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/bandwidth\_report/graph" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

### Cache Analytics

Retrieve cached and non-cached traffic metrics for CDN resources.

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/cache\_report/graph" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/non\_cache\_report/graph" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/cache\_traffic\_report/graph" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/non\_cache\_traffic\_report/graph" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

### Status Code Analytics

Retrieve HTTP response metrics grouped by status code class.

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/status\_report/graph/2xx" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/status\_report/graph/3xx" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/status\_report/graph/4xx" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/status\_report/graph/5xx" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

### Additional Analytics

Retrieve resource-level error statistics, visitor country distributions, regional metrics, and status data.

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/errors" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/visitors\_countries" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/region" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/status" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

### Real-Time Metrics

Retrieve active traffic and cache-hit metrics for CDN resources.

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/active\_traffic" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/active\_hit" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

### Detailed Analytics

Retrieve detailed traffic and request analytics for CDN resources.

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/traffic\_detail" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}

{% openapi src="/files/qZEtdsLmpJaBANLyRgCF" path="/api/v2/analytics/resource/request\_detail" method="post" %}
[analytics-resource-api.json](https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-0ed31ca6e01def49945956110b856a369ae6cd14%2Fanalytics-resource-api.json?alt=media)
{% endopenapi %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://clients.medianova.com/api-documentation/analytics/resource-analytics.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
