Spotify API endpoint
Use Crawlora's Spotify featured charts by country API to extract supported public Spotify data as structured JSON. This page includes request parameters, cURL examples, response schema, error behavior, credit cost, and a Playground link for testing before integration.
/spotify/featured-charts-by-countryReturns normalized Spotify country hub content from Spotify's countryHubContent Pathfinder response. Defaults to the CHARTS content shelf for the requested country. Developers commonly use this endpoint for data enrichment, monitoring, research dashboards, internal automation, and AI-agent workflows that need repeatable structured public web data. Authentication uses the documented Crawlora headers, and usage is metered with the credit cost shown on this page.
Request parameters are generated from the active endpoint catalog. Required values must be sent before Crawlora can call the upstream public web data source.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| country_code | string | No | Two-letter Spotify popular-in country code | id | |
| content_id | string | No | Country hub content ID. Allowed: CHARTS, POPULAR_ALBUMS, POPULAR_ARTISTS, TRENDING_SONGS | CHARTS | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/spotify/featured-charts-by-country?country_code=id&content_id=CHARTS" \ -H "x-api-key: $CRAWLORA_API_KEY"
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
| Plan | Price | Included credits | Daily cap | Rate limit | Overage |
|---|---|---|---|---|---|
| Free | $0/mo | 2,000 | 500 daily credits | 5/min | No overage |
| Starter | $9/mo | 20,000 | 5,000 daily credits | 15/min | $0.75/1,000 overage credits when enabled |
| Growth | $29/mo | 100,000 | 25,000 daily credits | 45/min | $0.45/1,000 overage credits when enabled |
| Pro | $79/mo | 400,000 | No daily cap | 120/min | $0.30/1,000 overage credits |
| Business | $199/mo | 1,200,000 | No daily cap | 300/min | $0.20/1,000 overage credits |
| Enterprise | $499/mo | 5,000,000 | No daily cap | 1,000/min | $0.12/1,000 overage credits |
This endpoint is executed through Crawlora's managed scraping infrastructure.
- `items` contains the selected country hub content, such as featured chart playlists for `CHARTS`. - Playlist rows preserve Spotify attributes such as `rank_type`, `last_updated`, `new_entries_count`, and `chart_entity_type` when present. - The response includes `supportedCountries` and `supportedContentIds` enums for clients that need selectable filters.
Crawlora does not silently return bad data when the upstream page cannot be used.
| Status | Common failure case |
|---|---|
| 400 | Invalid input or missing required parameter |
| 429 | Plan or endpoint rate limit exceeded |
| 500 | Internal execution error |
| 502 | Upstream 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.
| Status | Description | Schema |
|---|---|---|
| 400 | Missing or invalid parameters | #/definitions/app.Response |
| 429 | Rate limit exceeded | #/definitions/app.Response |
| 503 | Spotify upstream request failed | #/definitions/app.Response |
{
"countryCode": "ID",
"countryName": "Indonesia",
"hexColor": "#F037A5",
"contentId": "CHARTS",
"title": "Featured Charts",
"items": [
{
"uri": "spotify:playlist:37i9dQZEVXbObFQZ3JLcXt",
"type": "Playlist",
"title": "Top 50 - Indonesia",
"subtitle": "Spotify",
"description": "Your daily update of the most played tracks right now - Indonesia.",
"externalUrl": "https://open.spotify.com/playlist/37i9dQZEVXbObFQZ3JLcXt",
"attributes": {
"rank_type": "plays",
"chart_entity_type": "track"
}
}
],
"meta": {
"operationName": "countryHubContent",
"itemCount": 1,
"fetchedAt": "2026-05-13T20:03:43Z"
}
}Request schema
No body schema
Response schema
#/definitions/spotify.countryHubContentResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | Code is the HTTP status code or a custom code used to indicate the result of the request @example 200 | |||
| data | spotify.CountryHubContentResponse | No | ||||
| data.contentId | string | No | CHARTS | |||
| data.countryCode | string | No | US | |||
| data.countryName | string | No | United States | |||
| data.hexColor | string | No | #1DB954 | |||
| data.items | array | No | ||||
| data.items[].album | spotify.SearchResultSummary | No | ||||
| data.items[].album.description | string | No | The official podcast of comedian Joe Rogan. | |||
| data.items[].album.externalUrl | string | No | https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk | |||
| data.items[].album.imageUrl | string | No | https://i.scdn.co/image/ab67656300005f1f54e6837957803d762a3f4d2b | |||
| data.items[].album.images | array | No | ||||
| data.items[].album.images[].height | integer | No | 640 | |||
| data.items[].album.images[].url | string | No | https://i.scdn.co/image/ab6765630000ba8ab0484f8ee2933eceab32bac0 | |||
| data.items[].album.images[].width | integer | No | 640 | |||
| data.items[].album.publisher | string | No | Joe Rogan | |||
| data.items[].album.subtitle | string | No | Joe Rogan | |||
| data.items[].album.title | string | No | The Joe Rogan Experience | |||
| data.items[].album.type | string | No | Podcast | |||
| data.items[].album.uri | string | No | spotify:show:4rOoJ6Egrf8K2IrywzwOMk | |||
| data.items[].artists | array | No | ||||
| data.items[].artists[].description | string | No | The official podcast of comedian Joe Rogan. | |||
| data.items[].artists[].externalUrl | string | No | https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk | |||
| data.items[].artists[].imageUrl | string | No | https://i.scdn.co/image/ab67656300005f1f54e6837957803d762a3f4d2b | |||
| data.items[].artists[].images | array | No | ||||
| data.items[].artists[].images[].height | integer | No | 640 | |||
| data.items[].artists[].images[].url | string | No | https://i.scdn.co/image/ab6765630000ba8ab0484f8ee2933eceab32bac0 | |||
| data.items[].artists[].images[].width | integer | No | 640 | |||
| data.items[].artists[].publisher | string | No | Joe Rogan | |||
| data.items[].artists[].subtitle | string | No | Joe Rogan | |||
| data.items[].artists[].title | string | No | The Joe Rogan Experience | |||
| data.items[].artists[].type | string | No | Podcast | |||
| data.items[].artists[].uri | string | No | spotify:show:4rOoJ6Egrf8K2IrywzwOMk | |||
| data.items[].attributes | object | No | [object Object] | |||
| data.items[].description | string | No | Your daily update of the most played tracks right now. | |||
| data.items[].externalUrl | string | No | https://open.spotify.com/playlist/37i9dQZEVXbLRQDuF5jeBpM | |||
| data.items[].imageUrl | string | No | https://charts-images.scdn.co/assets/locale_en/regional/daily/region_us_default.jpg | |||
| data.items[].images | array | No | ||||
| data.items[].images[].height | integer | No | 640 | |||
| data.items[].images[].url | string | No | https://i.scdn.co/image/ab6765630000ba8ab0484f8ee2933eceab32bac0 | |||
| data.items[].images[].width | integer | No | 640 | |||
| data.items[].owner | spotify.SearchResultSummary | No | ||||
| data.items[].owner.description | string | No | The official podcast of comedian Joe Rogan. | |||
| data.items[].owner.externalUrl | string | No | https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk | |||
| data.items[].owner.imageUrl | string | No | https://i.scdn.co/image/ab67656300005f1f54e6837957803d762a3f4d2b | |||
| data.items[].owner.images | array | No | ||||
| data.items[].owner.images[].height | integer | No | 640 | |||
| data.items[].owner.images[].url | string | No | https://i.scdn.co/image/ab6765630000ba8ab0484f8ee2933eceab32bac0 | |||
| data.items[].owner.images[].width | integer | No | 640 | |||
| data.items[].owner.publisher | string | No | Joe Rogan | |||
| data.items[].owner.subtitle | string | No | Joe Rogan | |||
| data.items[].owner.title | string | No | The Joe Rogan Experience | |||
| data.items[].owner.type | string | No | Podcast | |||
| data.items[].owner.uri | string | No | spotify:show:4rOoJ6Egrf8K2IrywzwOMk | |||
| data.items[].subtitle | string | No | Spotify | |||
| data.items[].title | string | No | Top 50 - USA | |||
| data.items[].type | string | No | Playlist | |||
| data.items[].uri | string | No | spotify:playlist:37i9dQZEVXbLRQDuF5jeBpM | |||
| data.meta | spotify.CountryHubContentMeta | No | ||||
| data.meta.appVersion | string | No | 1.2.90.403.gf901f20f | |||
| data.meta.fetchedAt | string | No | 2026-05-13T20:41:13Z | |||
| data.meta.itemCount | integer | No | 20 | |||
| data.meta.operationName | string | No | countryHubContent | |||
| data.supportedContentIds | array | No | ||||
| data.supportedContentIds[].id | string | No | CHARTS | |||
| data.supportedContentIds[].title | string | No | Featured Charts | |||
| data.supportedCountries | array | No | ||||
| data.supportedCountries[].code | string | No | us | |||
| data.supportedCountries[].name | string | No | United States | |||
| data.title | string | No | Featured Charts | |||
| msg | unknown | No | Msg is the message that describes the result of the request @example "Request successful" |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/spotify/featured-charts-by-country?country_code=id&content_id=CHARTS" \
-H "x-api-key: $CRAWLORA_API_KEY"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