{
  "data": {
    "id": "LfbJKmZTKDstjG86G",
    "actId": "slC0QCmcco4k9YZMT",
    "userId": "4BicJNfmk8uEe3GtT",
    "startedAt": "2026-12-01T20:26:22.517Z",
    "finishedAt": "2026-12-01T20:26:26.360Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CI"
    },
    "inputSchema": "{\n  \"title\": \"Spotify Podcast Charts Input\",\n  \"description\": \"Collect Spotify's public podcast charts by country and chart category, with optional Spotify metadata enrichment and daily rank history.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"charts\": {\n      \"title\": \"Charts\",\n      \"type\": \"array\",\n      \"description\": \"One or more Spotify charts. Top Podcasts, Top Episodes and Trending work in all 26 markets; genre charts are offered by Spotify in US, AU, BR, DE, MX, SE and GB only.\",\n      \"editor\": \"select\",\n      \"sectionCaption\": \"Charts and markets\",\n      \"sectionDescription\": \"Choose the chart types and Spotify markets to collect. Every chart is combined with every market; unsupported genre/market pairs are skipped with a note.\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"top-podcasts\",\n          \"top-episodes\",\n          \"trending\",\n          \"arts\",\n          \"business\",\n          \"comedy\",\n          \"education\",\n          \"fiction\",\n          \"health-fitness\",\n          \"history\",\n          \"leisure\",\n          \"music\",\n          \"news\",\n          \"religion-spirituality\",\n          \"science\",\n          \"society-culture\",\n          \"sports\",\n          \"technology\",\n          \"true-crime\",\n          \"tv-film\"\n        ],\n        \"enumTitles\": [\n          \"Top Podcasts\",\n          \"Top Episodes\",\n          \"Trending Podcasts\",\n          \"Arts\",\n          \"Business\",\n          \"Comedy\",\n          \"Education\",\n          \"Fiction\",\n          \"Health & Fitness\",\n          \"History\",\n          \"Leisure\",\n          \"Music\",\n          \"News\",\n          \"Religion & Spirituality\",\n          \"Science\",\n          \"Society & Culture\",\n          \"Sports\",\n          \"Technology\",\n          \"True Crime\",\n          \"TV & Film\"\n        ]\n      },\n      \"uniqueItems\": true,\n      \"default\": [\n        \"top-podcasts\"\n      ],\n      \"prefill\": [\n        \"top-podcasts\"\n      ]\n    },\n    \"regions\": {\n      \"title\": \"Markets\",\n      \"type\": \"array\",\n      \"description\": \"Spotify market codes. Top Podcasts, Top Episodes and Trending support all 26; genre charts support US, AU, BR, DE, MX, SE and GB.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"us\",\n          \"ar\",\n          \"au\",\n          \"at\",\n          \"br\",\n          \"ca\",\n          \"cl\",\n          \"co\",\n          \"dk\",\n          \"fi\",\n          \"fr\",\n          \"de\",\n          \"in\",\n          \"id\",\n          \"ie\",\n          \"it\",\n          \"jp\",\n          \"mx\",\n          \"nz\",\n          \"no\",\n          \"ph\",\n          \"pl\",\n          \"es\",\n          \"se\",\n          \"nl\",\n          \"gb\"\n        ],\n        \"enumTitles\": [\n          \"United States\",\n          \"Argentina\",\n          \"Australia\",\n          \"Austria\",\n          \"Brazil\",\n          \"Canada\",\n          \"Chile\",\n          \"Colombia\",\n          \"Denmark\",\n          \"Finland\",\n          \"France\",\n          \"Germany\",\n          \"India\",\n          \"Indonesia\",\n          \"Ireland\",\n          \"Italy\",\n          \"Japan\",\n          \"Mexico\",\n          \"New Zealand\",\n          \"Norway\",\n          \"Philippines\",\n          \"Poland\",\n          \"Spain\",\n          \"Sweden\",\n          \"Netherlands\",\n          \"United Kingdom\"\n        ]\n      },\n      \"uniqueItems\": true,\n      \"default\": [\n        \"us\"\n      ],\n      \"prefill\": [\n        \"us\"\n      ]\n    },\n    \"maxItems\": {\n      \"title\": \"Maximum rows\",\n      \"type\": \"integer\",\n      \"description\": \"Maximum chart rows to save across all selected charts and markets.\",\n      \"minimum\": 1,\n      \"maximum\": 5000,\n      \"default\": 200,\n      \"prefill\": 3\n    },\n    \"maxItemsPerChart\": {\n      \"title\": \"Maximum rows per chart and market\",\n      \"type\": \"integer\",\n      \"description\": \"Maximum rows to save for each chart and market pair. Spotify returns up to 200 rows for Top Podcasts, Top Episodes and Trending, and up to 50 for genre charts.\",\n      \"minimum\": 1,\n      \"maximum\": 200,\n      \"default\": 200,\n      \"prefill\": 3\n    },\n    \"includeDetails\": {\n      \"title\": \"Add Spotify show and episode details\",\n      \"type\": \"boolean\",\n      \"description\": \"Add show rating, rating count and total episodes, plus episode release date, duration and explicit flag from Spotify's public web player. Details are omitted when Spotify does not serve them; chart rows are always saved.\",\n      \"sectionCaption\": \"Optional enrichment and history\",\n      \"sectionDescription\": \"These options never change the chart rank data. Enrichment is fail-soft, and history needs prior runs of this actor.\",\n      \"default\": true,\n      \"prefill\": false\n    },\n    \"history\": {\n      \"title\": \"Track daily rank history\",\n      \"type\": \"boolean\",\n      \"description\": \"Store a daily snapshot per chart and market in this actor's key-value store, then add previous rank, numeric rank change, days on chart, peak rank and first/last seen dates. The first run only records the snapshot.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"historyRetentionDays\": {\n      \"title\": \"History retention (days)\",\n      \"type\": \"integer\",\n      \"description\": \"How many days of daily snapshots to keep when history is enabled.\",\n      \"minimum\": 7,\n      \"maximum\": 3650,\n      \"default\": 400,\n      \"prefill\": 400\n    }\n  }\n}",
    "readme": "# Spotify Podcast Charts Tracker by Country & Genre\n\nExport Spotify's public podcast charts as clean, ranked rows. Choose the chart types and countries you care about, and get one record per chart placement with the show or episode identity, rank, movement, publisher, artwork, description and Spotify links. Add Spotify ratings, episode counts, release dates and a daily rank history when you need deeper tracking.\n\nThe actor reads the same anonymous chart data that powers `podcastcharts.byspotify.com`. It needs no Spotify account, cookie, client ID, API key or proxy configuration.\n\n## Chart coverage\n\n| Chart group | IDs | Markets | Rows per market |\n|---|---|---|---|\n| Universal | `top-podcasts`, `top-episodes`, `trending` | 26 | up to 200 |\n| Genre | `arts`, `business`, `comedy`, `education`, `fiction`, `health-fitness`, `history`, `leisure`, `music`, `news`, `religion-spirituality`, `science`, `society-culture`, `sports`, `technology`, `true-crime`, `tv-film` | US, AU, BR, DE, MX, SE, GB | up to 50 |\n\nMarkets: United States, Argentina, Australia, Austria, Brazil, Canada, Chile, Colombia, Denmark, Finland, France, Germany, India, Indonesia, Ireland, Italy, Japan, Mexico, New Zealand, Norway, Philippines, Poland, Spain, Sweden, Netherlands and the United Kingdom. That is 3 universal charts and 17 genre charts across 26 Spotify markets.\n\nEvery selected chart is combined with every selected market. A genre chart paired with a market where Spotify does not publish it is skipped with a status note instead of returning an empty page. Duplicate chart or market values are removed.\n\n## Input\n\n| Field | Type | Default | Notes |\n|---|---|---|---|\n| `charts` | multi-select | `[\"top-podcasts\"]` | Any of the 20 chart IDs above |\n| `regions` | multi-select | `[\"us\"]` | Any of the 26 market codes |\n| `maxItems` | integer | 200 | Total rows across all pairs (1-5,000) |\n| `maxItemsPerChart` | integer | 200 | Rows per chart and market pair (1-200) |\n| `includeDetails` | boolean | true | Add Spotify show rating/count, total episodes, episode release date, duration and explicit flag |\n| `history` | boolean | false | Save a daily snapshot and compute rank change, days on chart and peak rank |\n| `historyRetentionDays` | integer | 400 | Daily snapshots kept when history is on (7-3,650) |\n\nA small first run:\n\n```json\n{\n  \"charts\": [\"top-podcasts\"],\n  \"regions\": [\"us\"],\n  \"maxItems\": 3,\n  \"maxItemsPerChart\": 3,\n  \"includeDetails\": false,\n  \"history\": false\n}\n```\n\nA multi-market episode and genre run with history:\n\n```json\n{\n  \"charts\": [\"top-episodes\", \"comedy\"],\n  \"regions\": [\"us\", \"gb\"],\n  \"maxItems\": 300,\n  \"maxItemsPerChart\": 100,\n  \"includeDetails\": true,\n  \"history\": true\n}\n```\n\n## Output\n\nEach dataset row is one ranked chart placement.\n\nCommon fields: `recordType` (`show` or `episode`), `chart`, `chartName`, `chartGroup` (`universal` or `genre`), `region`, `regionName`, `rank`, `chartRankMove`, `movement` (`up`, `down`, `new`, `unchanged`), `chartDate`, `observedAt`, `sourceUrl`.\n\nShow rows: `showUri`, `showId`, `showUrl`, `showName`, `publisher`, `description`, `imageUrl`.\n\nEpisode rows include all show fields plus `episodeUri`, `episodeId`, `episodeUrl`, `episodeName`, `episodeDescription` and `episodeImageUrl`.\n\nWith `includeDetails`: show rows can add `ratingAverage`, `ratingCount` and `totalEpisodes`; episode rows can add `releaseDate`, `releaseDateTime`, `durationMs` and `explicit`.\n\nWith `history`: rows can add `previousRank`, `rankChange` (positive means the item moved up), `daysOnChart`, `peakRank`, `firstSeenDate` and `lastSeenDate`.\n\nExample show row:\n\n```json\n{\n  \"recordType\": \"show\",\n  \"chart\": \"top-podcasts\",\n  \"chartName\": \"Top Podcasts\",\n  \"chartGroup\": \"universal\",\n  \"region\": \"us\",\n  \"regionName\": \"United States\",\n  \"rank\": 1,\n  \"chartRankMove\": \"UNCHANGED\",\n  \"movement\": \"unchanged\",\n  \"chartDate\": \"2026-11-25\",\n  \"observedAt\": \"2026-11-25T10:31:00+00:00\",\n  \"sourceUrl\": \"https://podcastcharts.byspotify.com/us/top-podcasts\",\n  \"showUri\": \"spotify:show:4rOoJ6Egrf8K2IrywzwOMk\",\n  \"showId\": \"4rOoJ6Egrf8K2IrywzwOMk\",\n  \"showUrl\": \"https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk\",\n  \"showName\": \"The Joe Rogan Experience\",\n  \"publisher\": \"Joe Rogan\",\n  \"description\": \"The official podcast of comedian Joe Rogan.\",\n  \"imageUrl\": \"https://i.scdn.co/image/ab67656300005f1fec18968da7ced643abdd582c\"\n}\n```\n\nEmpty fields are omitted at every depth. The actor never writes `null`, empty strings, empty arrays or sentinels.\n\n## Daily rank history\n\nSpotify publishes a current daily chart, not a historical API. When `history` is on, the actor stores one snapshot per chart and market in its named key-value store, then computes the day-over-day movement itself:\n\n- `previousRank` and `rankChange` need at least two daily runs of the same chart and market.\n- `daysOnChart`, `peakRank`, `firstSeenDate` and `lastSeenDate` are computed from the retained snapshots.\n- The first history run records the snapshot and can only report today's peak and first-seen date.\n- `historyRetentionDays` trims old snapshots so the store stays small.\n- Keep the actor's key-value store between runs (normal scheduled runs do this automatically). A run with a purged store starts history from scratch.\n\nUse `(chart, region, showId)` or `(chart, region, episodeId)` as the stable key when merging rows into your own warehouse.\n\n## How it works\n\nThe actor calls Spotify's public chart JSON endpoint for each chart and market, preserves the upstream order as a one-based rank, and keeps the label Spotify supplies for movement. It reads no private data and downloads no audio or images.\n\nOptional details come from the same public web-player data Spotify serves to logged-out visitors. They are best-effort: when Spotify withholds an entity or is unavailable, the detail fields are omitted and the chart row is still saved.\n\n## FAQ\n\n**Do I need a Spotify login or API key?** No. The source data is public and anonymous.\n\n**Does it download audio or artwork?** No. It saves metadata and public image URLs only.\n\n**Can I get listener counts, downloads or revenue?** No. Spotify does not publish those numbers for podcasts, and this actor does not invent them.\n\n**Why does a genre chart return fewer rows?** Spotify publishes up to 50 rows for genre charts and up to 200 for Top Podcasts, Trending and Top Episodes.\n\n**Why is a chart and market combination missing?** Spotify only offers genre charts in the seven markets listed above. The actor reports skipped combinations in the run status.\n\n**Why are some enrichment fields missing?** Spotify serves ratings, episode counts and release dates from its public web player on a best-effort basis. Fields the source does not return are omitted rather than filled with fake values.\n\n**Are the Spotify links and image URLs usable?** Yes. Spotify page links open in a normal browser, and artwork URLs return JPEG images. Spotify may answer a bare HTTP `HEAD` request from a script with 403 because of its bot protection; a normal browser `GET` works.\n\n**Is this an official Spotify product?** No. It is an independent tool that reads publicly available chart data.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "spotify-podcast-charts",
      "title": "Spotify Podcast Charts Tracker by Country & Genre",
      "description": "Collect Spotify podcast charts by country and category: Top Podcasts, Trending, Top Episodes and genre charts. Rows include rank, movement, show or episode metadata, optional ratings, episode counts, release dates and daily rank history.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# Spotify Podcast Charts Tracker by Country & Genre\n\nExport Spotify's public podcast charts as clean, ranked rows. Choose the chart types and countries you care about, and get one record per chart placement with the show or episode identity, rank, movement, publisher, artwork, description and Spotify links. Add Spotify ratings, episode counts, release dates and a daily rank history when you need deeper tracking.\n\nThe actor reads the same anonymous chart data that powers `podcastcharts.byspotify.com`. It needs no Spotify account, cookie, client ID, API key or proxy configuration.\n\n## Chart coverage\n\n| Chart group | IDs | Markets | Rows per market |\n|---|---|---|---|\n| Universal | `top-podcasts`, `top-episodes`, `trending` | 26 | up to 200 |\n| Genre | `arts`, `business`, `comedy`, `education`, `fiction`, `health-fitness`, `history`, `leisure`, `music`, `news`, `religion-spirituality`, `science`, `society-culture`, `sports`, `technology`, `true-crime`, `tv-film` | US, AU, BR, DE, MX, SE, GB | up to 50 |\n\nMarkets: United States, Argentina, Australia, Austria, Brazil, Canada, Chile, Colombia, Denmark, Finland, France, Germany, India, Indonesia, Ireland, Italy, Japan, Mexico, New Zealand, Norway, Philippines, Poland, Spain, Sweden, Netherlands and the United Kingdom. That is 3 universal charts and 17 genre charts across 26 Spotify markets.\n\nEvery selected chart is combined with every selected market. A genre chart paired with a market where Spotify does not publish it is skipped with a status note instead of returning an empty page. Duplicate chart or market values are removed.\n\n## Input\n\n| Field | Type | Default | Notes |\n|---|---|---|---|\n| `charts` | multi-select | `[\"top-podcasts\"]` | Any of the 20 chart IDs above |\n| `regions` | multi-select | `[\"us\"]` | Any of the 26 market codes |\n| `maxItems` | integer | 200 | Total rows across all pairs (1-5,000) |\n| `maxItemsPerChart` | integer | 200 | Rows per chart and market pair (1-200) |\n| `includeDetails` | boolean | true | Add Spotify show rating/count, total episodes, episode release date, duration and explicit flag |\n| `history` | boolean | false | Save a daily snapshot and compute rank change, days on chart and peak rank |\n| `historyRetentionDays` | integer | 400 | Daily snapshots kept when history is on (7-3,650) |\n\nA small first run:\n\n```json\n{\n  \"charts\": [\"top-podcasts\"],\n  \"regions\": [\"us\"],\n  \"maxItems\": 3,\n  \"maxItemsPerChart\": 3,\n  \"includeDetails\": false,\n  \"history\": false\n}\n```\n\nA multi-market episode and genre run with history:\n\n```json\n{\n  \"charts\": [\"top-episodes\", \"comedy\"],\n  \"regions\": [\"us\", \"gb\"],\n  \"maxItems\": 300,\n  \"maxItemsPerChart\": 100,\n  \"includeDetails\": true,\n  \"history\": true\n}\n```\n\n## Output\n\nEach dataset row is one ranked chart placement.\n\nCommon fields: `recordType` (`show` or `episode`), `chart`, `chartName`, `chartGroup` (`universal` or `genre`), `region`, `regionName`, `rank`, `chartRankMove`, `movement` (`up`, `down`, `new`, `unchanged`), `chartDate`, `observedAt`, `sourceUrl`.\n\nShow rows: `showUri`, `showId`, `showUrl`, `showName`, `publisher`, `description`, `imageUrl`.\n\nEpisode rows include all show fields plus `episodeUri`, `episodeId`, `episodeUrl`, `episodeName`, `episodeDescription` and `episodeImageUrl`.\n\nWith `includeDetails`: show rows can add `ratingAverage`, `ratingCount` and `totalEpisodes`; episode rows can add `releaseDate`, `releaseDateTime`, `durationMs` and `explicit`.\n\nWith `history`: rows can add `previousRank`, `rankChange` (positive means the item moved up), `daysOnChart`, `peakRank`, `firstSeenDate` and `lastSeenDate`.\n\nExample show row:\n\n```json\n{\n  \"recordType\": \"show\",\n  \"chart\": \"top-podcasts\",\n  \"chartName\": \"Top Podcasts\",\n  \"chartGroup\": \"universal\",\n  \"region\": \"us\",\n  \"regionName\": \"United States\",\n  \"rank\": 1,\n  \"chartRankMove\": \"UNCHANGED\",\n  \"movement\": \"unchanged\",\n  \"chartDate\": \"2026-11-25\",\n  \"observedAt\": \"2026-11-25T10:31:00+00:00\",\n  \"sourceUrl\": \"https://podcastcharts.byspotify.com/us/top-podcasts\",\n  \"showUri\": \"spotify:show:4rOoJ6Egrf8K2IrywzwOMk\",\n  \"showId\": \"4rOoJ6Egrf8K2IrywzwOMk\",\n  \"showUrl\": \"https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk\",\n  \"showName\": \"The Joe Rogan Experience\",\n  \"publisher\": \"Joe Rogan\",\n  \"description\": \"The official podcast of comedian Joe Rogan.\",\n  \"imageUrl\": \"https://i.scdn.co/image/ab67656300005f1fec18968da7ced643abdd582c\"\n}\n```\n\nEmpty fields are omitted at every depth. The actor never writes `null`, empty strings, empty arrays or sentinels.\n\n## Daily rank history\n\nSpotify publishes a current daily chart, not a historical API. When `history` is on, the actor stores one snapshot per chart and market in its named key-value store, then computes the day-over-day movement itself:\n\n- `previousRank` and `rankChange` need at least two daily runs of the same chart and market.\n- `daysOnChart`, `peakRank`, `firstSeenDate` and `lastSeenDate` are computed from the retained snapshots.\n- The first history run records the snapshot and can only report today's peak and first-seen date.\n- `historyRetentionDays` trims old snapshots so the store stays small.\n- Keep the actor's key-value store between runs (normal scheduled runs do this automatically). A run with a purged store starts history from scratch.\n\nUse `(chart, region, showId)` or `(chart, region, episodeId)` as the stable key when merging rows into your own warehouse.\n\n## How it works\n\nThe actor calls Spotify's public chart JSON endpoint for each chart and market, preserves the upstream order as a one-based rank, and keeps the label Spotify supplies for movement. It reads no private data and downloads no audio or images.\n\nOptional details come from the same public web-player data Spotify serves to logged-out visitors. They are best-effort: when Spotify withholds an entity or is unavailable, the detail fields are omitted and the chart row is still saved.\n\n## FAQ\n\n**Do I need a Spotify login or API key?** No. The source data is public and anonymous.\n\n**Does it download audio or artwork?** No. It saves metadata and public image URLs only.\n\n**Can I get listener counts, downloads or revenue?** No. Spotify does not publish those numbers for podcasts, and this actor does not invent them.\n\n**Why does a genre chart return fewer rows?** Spotify publishes up to 50 rows for genre charts and up to 200 for Top Podcasts, Trending and Top Episodes.\n\n**Why is a chart and market combination missing?** Spotify only offers genre charts in the seven markets listed above. The actor reports skipped combinations in the run status.\n\n**Why are some enrichment fields missing?** Spotify serves ratings, episode counts and release dates from its public web player on a best-effort basis. Fields the source does not return are omitted rather than filled with fake values.\n\n**Are the Spotify links and image URLs usable?** Yes. Spotify page links open in a normal browser, and artwork URLs return JPEG images. Spotify may answer a bare HTTP `HEAD` request from a script with 403 because of its bot protection; a normal browser `GET` works.\n\n**Is this an official Spotify product?** No. It is an independent tool that reads publicly available chart data.\n",
      "input": {
        "title": "Spotify Podcast Charts Input",
        "description": "Collect Spotify's public podcast charts by country and chart category, with optional Spotify metadata enrichment and daily rank history.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "charts": {
            "title": "Charts",
            "type": "array",
            "description": "One or more Spotify charts. Top Podcasts, Top Episodes and Trending work in all 26 markets; genre charts are offered by Spotify in US, AU, BR, DE, MX, SE and GB only.",
            "editor": "select",
            "sectionCaption": "Charts and markets",
            "sectionDescription": "Choose the chart types and Spotify markets to collect. Every chart is combined with every market; unsupported genre/market pairs are skipped with a note.",
            "items": {
              "type": "string",
              "enum": [
                "top-podcasts",
                "top-episodes",
                "trending",
                "arts",
                "business",
                "comedy",
                "education",
                "fiction",
                "health-fitness",
                "history",
                "leisure",
                "music",
                "news",
                "religion-spirituality",
                "science",
                "society-culture",
                "sports",
                "technology",
                "true-crime",
                "tv-film"
              ],
              "enumTitles": [
                "Top Podcasts",
                "Top Episodes",
                "Trending Podcasts",
                "Arts",
                "Business",
                "Comedy",
                "Education",
                "Fiction",
                "Health & Fitness",
                "History",
                "Leisure",
                "Music",
                "News",
                "Religion & Spirituality",
                "Science",
                "Society & Culture",
                "Sports",
                "Technology",
                "True Crime",
                "TV & Film"
              ]
            },
            "uniqueItems": true,
            "default": [
              "top-podcasts"
            ],
            "prefill": [
              "top-podcasts"
            ]
          },
          "regions": {
            "title": "Markets",
            "type": "array",
            "description": "Spotify market codes. Top Podcasts, Top Episodes and Trending support all 26; genre charts support US, AU, BR, DE, MX, SE and GB.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "us",
                "ar",
                "au",
                "at",
                "br",
                "ca",
                "cl",
                "co",
                "dk",
                "fi",
                "fr",
                "de",
                "in",
                "id",
                "ie",
                "it",
                "jp",
                "mx",
                "nz",
                "no",
                "ph",
                "pl",
                "es",
                "se",
                "nl",
                "gb"
              ],
              "enumTitles": [
                "United States",
                "Argentina",
                "Australia",
                "Austria",
                "Brazil",
                "Canada",
                "Chile",
                "Colombia",
                "Denmark",
                "Finland",
                "France",
                "Germany",
                "India",
                "Indonesia",
                "Ireland",
                "Italy",
                "Japan",
                "Mexico",
                "New Zealand",
                "Norway",
                "Philippines",
                "Poland",
                "Spain",
                "Sweden",
                "Netherlands",
                "United Kingdom"
              ]
            },
            "uniqueItems": true,
            "default": [
              "us"
            ],
            "prefill": [
              "us"
            ]
          },
          "maxItems": {
            "title": "Maximum rows",
            "type": "integer",
            "description": "Maximum chart rows to save across all selected charts and markets.",
            "minimum": 1,
            "maximum": 5000,
            "default": 200,
            "prefill": 3
          },
          "maxItemsPerChart": {
            "title": "Maximum rows per chart and market",
            "type": "integer",
            "description": "Maximum rows to save for each chart and market pair. Spotify returns up to 200 rows for Top Podcasts, Top Episodes and Trending, and up to 50 for genre charts.",
            "minimum": 1,
            "maximum": 200,
            "default": 200,
            "prefill": 3
          },
          "includeDetails": {
            "title": "Add Spotify show and episode details",
            "type": "boolean",
            "description": "Add show rating, rating count and total episodes, plus episode release date, duration and explicit flag from Spotify's public web player. Details are omitted when Spotify does not serve them; chart rows are always saved.",
            "sectionCaption": "Optional enrichment and history",
            "sectionDescription": "These options never change the chart rank data. Enrichment is fail-soft, and history needs prior runs of this actor.",
            "default": true,
            "prefill": false
          },
          "history": {
            "title": "Track daily rank history",
            "type": "boolean",
            "description": "Store a daily snapshot per chart and market in this actor's key-value store, then add previous rank, numeric rank change, days on chart, peak rank and first/last seen dates. The first run only records the snapshot.",
            "default": false,
            "prefill": false
          },
          "historyRetentionDays": {
            "title": "History retention (days)",
            "type": "integer",
            "description": "How many days of daily snapshots to keep when history is enabled.",
            "minimum": 7,
            "maximum": 3650,
            "default": 400,
            "prefill": 400
          }
        }
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Spotify Podcast Charts Output",
        "description": "One row per Spotify podcast chart placement, with show or episode identity, rank and movement, optional Spotify details and optional daily rank history.",
        "properties": {
          "charts": {
            "type": "string",
            "title": "Podcast chart rows",
            "description": "Dataset with Top Podcasts, Trending, Top Episodes and genre chart rows.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Podcast chart rows",
              "transformation": {
                "fields": [
                  "chartName",
                  "regionName",
                  "rank",
                  "movement",
                  "recordType",
                  "showName",
                  "publisher",
                  "episodeName"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.2",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    }
  }
}