> For the complete documentation index, see [llms.txt](https://docs.podigee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/analytics-semantics.md). Agents can also search and read this documentation through its [MCP server](https://docs.podigee.com/~gitbook/mcp).

# Analytics semantics

What the MCP analytics tools count, with sources, units, delays, states, buckets, and ranges.

This page is the one place for the rules behind the MCP analytics tools. The tools are in [Analytics tools](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-tools/analytics.md), and the task steps are in [Analyze podcast performance](https://docs.podigee.com/documentation/start-here/ai-agents/content-analytics-and-distribution/analyze-podcast-performance.md).

The tools form two groups:

* **Download tools:** `get_podcast_analytics`, `get_episode_analytics`, and `analytics_summary` read Podigee audio downloads.
* **Source tools:** `list_analytics_sources`, `get_source_analytics`, `list_source_episode_analytics`, and `get_source_overview` read each analytics source in its own unit. They return the same JSON as the REST API routes `/analytics/sources`.

## Never add sources together

Each source counts something different, in a different unit, and one person can appear in several sources. Report each source with its name and its unit. Never add two sources, and never add a source to the downloads.

## Sources and units

| `source`        | Metrics                                                                                  | Unit                                                                               | Breakdowns                                                                        | Hours                   |
| --------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | ----------------------- |
| `podigee_audio` | `downloads`                                                                              | Complete downloads, counted to the IAB (Interactive Advertising Bureau) guidelines | `platforms`, `clients`, `clients_on_platforms`, `sources`, `countries`, `formats` | Yes                     |
| `podigee_video` | `plays`, `plays_with_picture`, `plays_without_picture`                                   | Video sessions that loaded at least ten segments                                   | `countries`                                                                       | Yes, without breakdowns |
| `spotify`       | `plays`, `streams`                                                                       | Plays of at least 30 seconds; streams of more than 60 seconds                      | `countries`, `media_types`                                                        | No                      |
| `youtube`       | `views`, `engaged_views`, `watch_time_minutes`, `subscribers_gained`, `subscribers_lost` | YouTube's own figures; watch time is a decimal number of minutes                   | `countries`                                                                       | No                      |

`get_source_overview` gives the unique audience. It exists only for `podigee_audio` (`unique_listeners`, `unique_subscribers`, `downloads`) and `podigee_video` (`unique_viewers`, `plays`), and for a range of 40 days or less.

Downloads are not listeners. Never call a download figure "listeners".

## Spotify and YouTube

Spotify and YouTube figures appear only where Podigee has switched them on. When a switch is off:

* The source is not in the answer of `list_analytics_sources`.
* A source tool call for that source returns `unknown_source`. The message lists the sources that exist.
* The `sources` field of `analytics_summary` does not list it.

The plan does not decide whether delivered figures are shown. For a plain-language explanation of each source, read [Understand video, Spotify, and YouTube figures](https://docs.podigee.com/documentation/grow-and-monetize/analytics/understand-video-spotify-and-youtube-figures.md).

## Delays and coverage

`coverage.available_from` and `coverage.available_to` give the first and the last day with data.

* For `podigee_audio` and `podigee_video`, `available_to` is today. Today is still counting.
* For `spotify`, the figures start on 2026-06-11 at the earliest. `available_to` is the newest day that Spotify delivered, normally about one day late.
* For `youtube`, `available_to` is the newest day that YouTube delivered, normally two to five days late. YouTube days are Pacific time days.
* Spotify and YouTube can change the figures of the last 14 days.
* A Spotify or YouTube day that was not delivered is not in `objects`. It is not `0`. Their objects carry `reported_days` and `days_in_bucket`, so a period with missing days is visible.

## Source states

`meta.state` is always present. Only `available` has figures. Every other state returns an empty `objects` list. Say what the state means. Never report it as `0`.

| `state`             | Meaning                                                                                              |
| ------------------- | ---------------------------------------------------------------------------------------------------- |
| `available`         | Figures exist for the range.                                                                         |
| `not_connected`     | The podcast is not connected to the platform. For `podigee_video`, the podcast has no video episode. |
| `not_ingested`      | The source is set up, but no data arrived for the range yet.                                         |
| `before_data_floor` | The range ends before the first day with data.                                                       |
| `not_reported`      | The platform reported nothing for this episode.                                                      |
| `withheld`          | The plan of the podcast does not include these figures.                                              |
| `degraded`          | Podigee could not read the source now. The answer has no figures. Try again later.                   |

`list_analytics_sources` gives the state for the exact days of the range. A `spotify` or `youtube` series by week or month from `get_source_analytics` can still be `available`, because its periods can hold delivered days outside the range.

`meta.withheld_fields` names the breakdowns or figures that the plan does not include. Tell the person that the plan withholds them.

## Ranges

Every analytics tool takes one range form: `from` and `to` together, or `days_offset`, or (for an episode only) `days_since_published`. Do not combine them. A range covers 366 days at most.

| Range form                        | Download tools                                                                                                                                                                                                                                                                    | Source tools                                                                                       |
| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| No range                          | The last 30 days, up to yesterday                                                                                                                                                                                                                                                 | The last 30 days, today included                                                                   |
| `from` and `to`                   | ISO 8601 date or date-time. The download tools always read whole UTC (Coordinated Universal Time) days: a date-time selects the UTC day that it falls in. For hours, read a one-day range; with a plan that has hourly figures, the answer has hourly buckets for that whole day. | Dates as `YYYY-MM-DD` only, as whole UTC days. `from` must not be in the future.                   |
| `days_offset` (1 to 366)          | The last N days, up to yesterday                                                                                                                                                                                                                                                  | The last N days, today included                                                                    |
| `days_since_published` (1 to 366) | Starts at the beginning of the publication day and ends N days later. An episode without a publication date uses its creation date, so do not describe that result as performance after publication.                                                                              | N days from the publication day (UTC). An episode without a publication date gets `invalid_range`. |

To match the Podigee analytics pages for "the last N days", send `from` as today minus N-1 days and `to` as today. Use the time zone of the person (`time_zone` from `doctor`).

## Buckets

The length of the range decides the bucket size:

| Range         | Bucket |
| ------------- | ------ |
| Up to 1 day   | Hours  |
| Up to 32 days | Days   |
| Up to 94 days | Weeks  |
| Longer        | Months |

* The download tools read whole buckets. The window that they read can therefore start earlier and end later than the requested range. `meta` returns the window that was read. Report the figures of that window and name it. To get a total as the person sees it in Podigee, do not split the range.
* This rule replaces the values "weeks from 90 days" and "months from 180 days" that some tool descriptions give.
* A plan without hourly figures gets days instead of hours.
* The source tools take `granularity`. `day` works for every range up to 366 days. A coarser bucket than the rule gives is allowed. A finer bucket (other than `day`) is held at the rule. `hour` works only for `podigee_audio` and for `podigee_video` without breakdowns. For `spotify` and `youtube`, a request for `hour` gets days.

Read `aggregation_granularity` before you chart or average the figures. The `timerange` uses epoch seconds aligned to that bucket.

## History that the plan shows

The plan of the podcast decides how much history is visible. The download tools return `history_window` with `requested_range`, `effective_range`, `retention_days`, `history_unlimited`, `history_limited`, `history_clamped`, `history_available_from`, and `upgrade_url`.

* Report the effective range. Do not suggest access outside it.
* A short range is not missing data. Say that a longer range needs a higher plan.
* In the source tools, a range that ends before the first day that the plan keeps gets `invalid_range`. The message names that day.

## Download figures

* Quote `downloads.complete`. It is the download count that Podigee reports, counted to the IAB guidelines.
* `raw` and `total` are larger, because they can include partial and repeated fetches. Do not quote them as downloads.
* `streaming` counts stream starts.
* For ranges with days, weeks, or months, the download tools fill dates without traffic with zeros and sort them by date. A zero is a real period without downloads.
* A missing breakdown can come from the permission level of the person or from a source that is not available.

## The analytics\_summary tool

`analytics_summary` takes exactly one of `podcast_id`, `episode_id`, or `all_podcasts: true`.

For one podcast or one episode, it adds `sources` beside the downloads:

* `sources` lists `podigee_video`, `spotify`, and `youtube` (the last two only where they are switched on), each with its `state`. It does not list `podigee_audio`, because the downloads are the main result.
* `totals` is present only when the state is `available`. The totals cover exactly the requested days, in the unit of each source.
* If reading the sources takes too long, every source has the state `degraded`.
* If the sources cannot answer the range, `sources` is not in the answer. An example is a range that ends before the first day that the plan keeps.

With `all_podcasts: true`, it gives the downloads of every podcast together and ranks the podcasts. This needs a plan that includes analytics across all shows. Otherwise the call returns `forbidden`. When `coverage.complete` is `false`, call again with the same arguments before you report an account figure.

There is no comparison of periods. To compare periods, make one call for each period and align the results.


---

# 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://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/analytics-semantics.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.
