op3_top_countries
Sample download records to retrieve the top listener countries or regions for a show, ranked by download count and percentage share.
Instructions
Get the top listener countries (or regions) for a show. NOTE: OP3 has no native geography query, so this counts raw download records and aggregates by country client-side. It is a representative sample, not an exact lifetime total. OP3 returns raw records oldest-first, so to keep the sample recent this tool defaults to the last window_days days (90) when you do not pass an explicit start. Each result has a download count and percent share. Needs a show UUID. Keep max_records modest to stay fast and within rate limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Aggregate by country code or by region (state/province) name. | country |
| end | No | End of the window, ISO date or datetime. Defaults to now. | |
| limit | No | Max countries/regions to return, ranked (default 10). | |
| start | No | Start of the window, ISO date or datetime (e.g. 2026-05-01). If omitted, defaults to window_days ago. OP3 records are oldest-first, so without a start the sample would otherwise be the show's oldest records, not recent ones. | |
| show_uuid | Yes | OP3 show UUID (32 hex chars). | |
| max_records | No | How many download records to sample for the aggregation (default 5000, cap 20000). Higher is more accurate but slower. | |
| window_days | No | When start is omitted, sample this many days back from now (default 90). Ignored if start is set. |