Docs menu

Spotify API endpoint

Retrieve Spotify popular by country

Returns normalized Spotify country hub shelves from Spotify's countryHubsPage Pathfinder response. The country_code parameter accepts Spotify popular-in country codes from open.spotify.com/popular-in/us.

GETapiKey3 credits/requestSpotifyspotify.countryHubResponseDoc/spotify/popular-by-country

Overview

Returns normalized Spotify country hub shelves from Spotify's countryHubsPage Pathfinder response. The country_code parameter accepts Spotify popular-in country codes from open.spotify.com/popular-in/us.

Request schema

NameInTypeRequiredEnumExampleDescription
country_codequerystringNousTwo-letter Spotify popular-in country code
x-api-keyheaderstringYesAPI key required

Authentication

Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.

Billing

Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.

Credit cost
3 credits/request
Charged response
Successful 2xx responses
PlanPriceIncluded creditsDaily capRate limitOverage
Free$0/mo2,000500 daily credits5/minNo overage
Starter$9/mo20,0005,000 daily credits15/min$0.75/1,000 overage credits when enabled
Growth$29/mo100,00025,000 daily credits45/min$0.45/1,000 overage credits when enabled
Pro$79/mo400,000No daily cap120/min$0.30/1,000 overage credits
Business$199/mo1,200,000No daily cap300/min$0.20/1,000 overage credits
Enterprise$499/mo5,000,000No daily cap1,000/min$0.12/1,000 overage credits

Infrastructure behavior

This endpoint is executed through Crawlora's managed scraping infrastructure.

  • Proxy strategy: managed automatically where needed
  • Browser rendering: enabled for supported targets that require rendered HTML or JavaScript execution
  • Browser cluster: supported dynamic workloads can be routed through distributed browser instances
  • Retry behavior: automatic retry/fallback may be used depending on endpoint type
  • Challenge handling: challenged pages or unusable upstream HTML are detected and surfaced clearly when they cannot be used
  • Billing: credits are charged only for successful 2xx responses
  • Observability: responses include request context where available

Response behavior

- `sections` contains country-hub shelves such as `CHARTS`, `POPULAR_ALBUMS`, `POPULAR_ARTISTS`, and `TRENDING_SONGS`. - Playlist chart rows preserve Spotify attributes such as `rank_type` and `last_updated` when present. - Track and album rows include normalized artist and album summaries when Spotify returns them.

Error behavior

Crawlora does not silently return bad data when the upstream page cannot be used.

StatusCommon failure case
400Invalid input or missing required parameter
429Plan or endpoint rate limit exceeded
500Internal execution error
502Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved

When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.

Failure responses

StatusDescriptionSchema
400Missing or invalid parameters#/definitions/app.Response
429Rate limit exceeded#/definitions/app.Response
502Spotify upstream request failed#/definitions/app.Response

Example response

{
  "countryCode": "US",
  "countryName": "United States",
  "hexColor": "#EB1E32",
  "sections": [
    {
      "contentId": "CHARTS",
      "title": "Charts",
      "totalCount": 1,
      "items": [
        {
          "uri": "spotify:playlist:37i9dQZEVXbLRQDuF5jeBp",
          "type": "Playlist",
          "title": "Top 50 - USA",
          "subtitle": "Spotify",
          "description": "Your daily update of the most played tracks right now - USA.",
          "externalUrl": "https://open.spotify.com/playlist/37i9dQZEVXbLRQDuF5jeBp"
        }
      ]
    }
  ],
  "supportedCountries": [
    {
      "code": "us",
      "name": "United States"
    }
  ],
  "meta": {
    "operationName": "countryHubsPage",
    "sectionCount": 1,
    "itemCount": 1,
    "fetchedAt": "2026-05-13T19:45:00Z"
  }
}

Request schema

No body schema

Response schema

#/definitions/spotify.countryHubResponseDoc

FieldTypeRequiredEnumBoundsExampleDescription
codeintegerNoCode is the HTTP status code or a custom code used to indicate the result of the request @example 200
dataspotify.CountryHubResponseNo
data.countryCodestringNoUS
data.countryNamestringNoUnited States
data.hexColorstringNo#1DB954
data.metaspotify.CountryHubMetaNo
data.meta.appVersionstringNo1.2.90.403.gf901f20f
data.meta.fetchedAtstringNo2026-05-13T20:41:13Z
data.meta.itemCountintegerNo20
data.meta.operationNamestringNocountryHubsPage
data.meta.sectionCountintegerNo5
data.sectionsarrayNo
data.sections[].contentIdstringNoCHARTS
data.sections[].itemsarrayNo
data.sections[].items[].albumspotify.SearchResultSummaryNo
data.sections[].items[].album.descriptionstringNoThe official podcast of comedian Joe Rogan.
data.sections[].items[].album.externalUrlstringNohttps://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk
data.sections[].items[].album.imageUrlstringNohttps://i.scdn.co/image/ab67656300005f1f54e6837957803d762a3f4d2b
data.sections[].items[].album.imagesarrayNo
data.sections[].items[].album.images[].heightintegerNo640
data.sections[].items[].album.images[].urlstringNohttps://i.scdn.co/image/ab6765630000ba8ab0484f8ee2933eceab32bac0
data.sections[].items[].album.images[].widthintegerNo640
data.sections[].items[].album.publisherstringNoJoe Rogan
data.sections[].items[].album.subtitlestringNoJoe Rogan
data.sections[].items[].album.titlestringNoThe Joe Rogan Experience
data.sections[].items[].album.typestringNoPodcast
data.sections[].items[].album.uristringNospotify:show:4rOoJ6Egrf8K2IrywzwOMk
data.sections[].items[].artistsarrayNo
data.sections[].items[].artists[].descriptionstringNoThe official podcast of comedian Joe Rogan.
data.sections[].items[].artists[].externalUrlstringNohttps://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk
data.sections[].items[].artists[].imageUrlstringNohttps://i.scdn.co/image/ab67656300005f1f54e6837957803d762a3f4d2b
data.sections[].items[].artists[].imagesarrayNo
data.sections[].items[].artists[].images[].heightintegerNo640
data.sections[].items[].artists[].images[].urlstringNohttps://i.scdn.co/image/ab6765630000ba8ab0484f8ee2933eceab32bac0
data.sections[].items[].artists[].images[].widthintegerNo640
data.sections[].items[].artists[].publisherstringNoJoe Rogan
data.sections[].items[].artists[].subtitlestringNoJoe Rogan
data.sections[].items[].artists[].titlestringNoThe Joe Rogan Experience
data.sections[].items[].artists[].typestringNoPodcast
data.sections[].items[].artists[].uristringNospotify:show:4rOoJ6Egrf8K2IrywzwOMk
data.sections[].items[].attributesobjectNo[object Object]
data.sections[].items[].descriptionstringNoYour daily update of the most played tracks right now.
data.sections[].items[].externalUrlstringNohttps://open.spotify.com/playlist/37i9dQZEVXbLRQDuF5jeBpM
data.sections[].items[].imageUrlstringNohttps://charts-images.scdn.co/assets/locale_en/regional/daily/region_us_default.jpg
data.sections[].items[].imagesarrayNo
data.sections[].items[].images[].heightintegerNo640
data.sections[].items[].images[].urlstringNohttps://i.scdn.co/image/ab6765630000ba8ab0484f8ee2933eceab32bac0
data.sections[].items[].images[].widthintegerNo640
data.sections[].items[].ownerspotify.SearchResultSummaryNo
data.sections[].items[].owner.descriptionstringNoThe official podcast of comedian Joe Rogan.
data.sections[].items[].owner.externalUrlstringNohttps://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk
data.sections[].items[].owner.imageUrlstringNohttps://i.scdn.co/image/ab67656300005f1f54e6837957803d762a3f4d2b
data.sections[].items[].owner.imagesarrayNo
data.sections[].items[].owner.images[].heightintegerNo640
data.sections[].items[].owner.images[].urlstringNohttps://i.scdn.co/image/ab6765630000ba8ab0484f8ee2933eceab32bac0
data.sections[].items[].owner.images[].widthintegerNo640
data.sections[].items[].owner.publisherstringNoJoe Rogan
data.sections[].items[].owner.subtitlestringNoJoe Rogan
data.sections[].items[].owner.titlestringNoThe Joe Rogan Experience
data.sections[].items[].owner.typestringNoPodcast
data.sections[].items[].owner.uristringNospotify:show:4rOoJ6Egrf8K2IrywzwOMk
data.sections[].items[].subtitlestringNoSpotify
data.sections[].items[].titlestringNoTop 50 - USA
data.sections[].items[].typestringNoPlaylist
data.sections[].items[].uristringNospotify:playlist:37i9dQZEVXbLRQDuF5jeBpM
data.sections[].titlestringNoFeatured Charts
data.sections[].totalCountintegerNo20
data.supportedCountriesarrayNo
data.supportedCountries[].codestringNous
data.supportedCountries[].namestringNoUnited States
msgunknownNoMsg is the message that describes the result of the request @example "Request successful"

Code examples

Use environment variables for secrets and keep Crawlora API keys server-side.

curl -X GET "https://api.crawlora.net/api/v1/spotify/popular-by-country?country_code=us" \
  -H "x-api-key: $CRAWLORA_API_KEY"

Responsible public web data workflows

Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.

Read Crawlora terms

Related