100 free credits. No credit card required.Start building
Logo
Spotify logo
100 free credits. No credit card required

Spotify Search API

Returns Spotify playlists matching a search query, and playlists only: tracks, artists, albums, and podcasts do not come back as results today.

GET /v1/spotify/search

Last updated November 2026Maintained by the SocialCrawl team

When to use the Spotify Search API

Use it to find playlists by keyword, and to look up a known track, album, artist, or podcast, call those endpoints with an id or URL instead.

From the API reference

Searches Spotify playlists matching a query. Note (DR-MS-09): the upstream currently returns Playlist results only, not the full track/artist/album/episode/podcast/audiobook mix: treat non-playlist result types as unavailable until this is expanded.

Searching 69 platforms in parallel

·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
Spotify API

What can you do with the Search API?

The Search endpoint gives you structured Spotify data with computed fields in a single request. No scraping infrastructure to build or maintain.

Example Request

# GET /v1/spotify/search: 1 credit per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
# --max-time 60: the API's own time limit for this endpoint.
# --retry 3: retries timeouts, 429 and 5xx, honoring Retry-After.
# -o response.json keeps only the final attempt's body.
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
IDEMPOTENCY_KEY=$(od -An -N16 -tx1 /dev/urandom | tr -d ' \n')
curl -sS --max-time 60 --retry 3 -o response.json \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  "https://www.socialcrawl.dev/v1/spotify/search?query=my+first+million" && cat response.json
# GET /v1/spotify/search: 1 credit per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
import os
import random
import time
import uuid

import requests

API_KEY = os.environ.get("SOCIALCRAWL_API_KEY", "YOUR_API_KEY")
TIMEOUT_S = 60  # the API's own time limit for this endpoint.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/spotify/search"


def backoff(attempt):
    # Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
    return 2 ** attempt * (0.5 + random.random() / 2)


def socialcrawl(params):
    # One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
    idempotency_key = str(uuid.uuid4())
    for attempt in range(MAX_RETRIES + 1):
        try:
            res = requests.get(
                URL,
                params=params,
                headers={"x-api-key": API_KEY, "Idempotency-Key": idempotency_key},
                timeout=TIMEOUT_S,
            )
            body = res.json()
        except (requests.RequestException, ValueError):
            # A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
            if attempt == MAX_RETRIES:
                raise
            time.sleep(backoff(attempt))
            continue
        if body["success"]:
            return body
        error = body["error"]
        # Branch on error["type"], never on the message text.
        if error["type"] == "RESOURCE_NOT_FOUND":
            return None  # refunded: nothing to read
        retry_after = res.headers.get("Retry-After")
        # SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
        permanent = error["type"] == "SERVICE_UNAVAILABLE" and retry_after is None
        if not error.get("retryable") or permanent or attempt == MAX_RETRIES:
            raise RuntimeError(f"{error['type']}: {error['message']} (request_id {body['request_id']})")
        # Retry-After (seconds) wins; otherwise back off.
        time.sleep(float(retry_after) if retry_after else backoff(attempt))


params = {
    "query": "my first million",
}
body = socialcrawl(params)
if body is not None:
    print(body["data"])
// GET /v1/spotify/search: 1 credit per call. Cache hits are free and failed calls are refunded.
// Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
const API_KEY = process.env.SOCIALCRAWL_API_KEY ?? "YOUR_API_KEY";
const TIMEOUT_MS = 60_000; // the API's own time limit for this endpoint.
const MAX_RETRIES = 3;

type Page = { next_cursor: string | null; has_more: boolean };
type SocialCrawlResponse =
  | { success: true; data: any; pagination?: Page; credits_used: number; request_id: string }
  | { success: false; error: { type: string; message: string; retryable: boolean }; request_id: string };

const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
// Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
const backoffMs = (attempt: number) => 2 ** attempt * 1000 * (0.5 + Math.random() / 2);

async function socialcrawl(url: URL) {
  // One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
  const idempotencyKey = crypto.randomUUID();
  for (let attempt = 0; ; attempt++) {
    let res: Response;
    let body: SocialCrawlResponse;
    try {
      res = await fetch(url, {
        headers: {
          "x-api-key": API_KEY,
          "Idempotency-Key": idempotencyKey,
        },
        signal: AbortSignal.timeout(TIMEOUT_MS),
      });
      body = (await res.json()) as SocialCrawlResponse;
    } catch (error) {
      // A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
      if (attempt >= MAX_RETRIES) throw error;
      await sleep(backoffMs(attempt));
      continue;
    }
    if (body.success) return body;
    // Branch on error.type, never on the message text.
    if (body.error.type === "RESOURCE_NOT_FOUND") return null; // refunded: nothing to read
    const retryAfter = res.headers.get("Retry-After");
    // SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
    const permanent = body.error.type === "SERVICE_UNAVAILABLE" && retryAfter === null;
    if (!body.error.retryable || permanent || attempt >= MAX_RETRIES) {
      throw new Error(`${body.error.type}: ${body.error.message} (request_id ${body.request_id})`);
    }
    // Retry-After (seconds) wins; otherwise back off.
    await sleep(retryAfter ? Number(retryAfter) * 1000 : backoffMs(attempt));
  }
}

const url = new URL("https://www.socialcrawl.dev/v1/spotify/search");
url.searchParams.set("query", "my first million");

const body = await socialcrawl(url);
if (body) console.log(body.data);

Parameters

ParameterRequiredDescription
queryYesSearch query.
Example Response

What does the Spotify Search API return?

Every response follows one unified schema. Here is a real, unmodified response body, so you can see the exact fields you get back before spending a credit.

Example response
{
  "success": true,
  "platform": "spotify",
  "endpoint": "/v1/spotify/search",
  "data": {
    "items": [
      {
        "id": "2GEFdJC5hCdUFpU1xxFUug",
        "__typename": "Playlist",
        "attributes": [],
        "description": "",
        "format": "",
        "images": [
          {
            "extractedColors": {
              "colorDark": {
                "hex": "#767676",
                "isFallback": false
              }
            },
            "sources": [
              {
                "height": null,
                "url": "https://image-cdn-fa.spotifycdn.com/image/ab67706c0000d72c24c483f6c267f53f8625404d",
                "width": null
              }
            ]
          }
        ],
        "name": "Start Here | My First Million",
        "ownerV2": {
          "__typename": "UserResponseWrapper",
          "data": {
            "__typename": "User",
            "avatar": {
              "sources": [
                {
                  "height": 64,
                  "url": "https://example.com/user_4644ad",
                  "width": 64
                },
                {
                  "height": 300,
                  "url": "https://example.com/user_746b5e",
                  "width": 300
                }
              ]
            },
            "name": "user_63524b",
            "uri": "spotify:user:31i2jq7ljcu7ob5pk6w2flztsoo4",
            "username": "user_8845b5"
          }
        },
        "uri": "spotify:playlist:2GEFdJC5hCdUFpU1xxFUug",
        "visualIdentity": {
          "squareCoverImage": {
            "__typename": "VisualIdentityImage",
            "extractedColorSet": {
              "encoreBaseSetTextColor": {
                "alpha": 255,
                "blue": 192,
                "green": 192,
                "red": 192
              },
              "highContrast": {
                "backgroundBase": {
                  "alpha": 255,
                  "blue": 83,
                  "green": 83,
                  "red": 83
                },
                "backgroundTintedBase": {
                  "alpha": 255,
                  "blue": 51,
                  "green": 51,
                  "red": 51
                },
                "textBase": {
                  "alpha": 255,
                  "blue": 255,
                  "green": 255,
                  "red": 255
                },
                "textBrightAccent": {
                  "alpha": 255,
                  "blue": 255,
                  "green": 255,
                  "red": 255
                },
                "textSubdued": {
                  "alpha": 255,
                  "blue": 205,
                  "green": 205,
                  "red": 205
                }
              },
              "higherContrast": {
                "backgroundBase": {
                  "alpha": 255,
                  "blue": 53,
                  "green": 53,
                  "red": 53
                },
                "backgroundTintedBase": {
                  "alpha": 255,
                  "blue": 86,
                  "green": 86,
                  "red": 86
                },
                "textBase": {
                  "alpha": 255,
                  "blue": 255,
                  "green": 255,
                  "red": 255
                },
                "textBrightAccent": {
                  "alpha": 255,
                  "blue": 96,
                  "green": 215,
                  "red": 30
                },
                "textSubdued": {
                  "alpha": 255,
                  "blue": 205,
                  "green": 205,
                  "red": 205
                }
              },
              "minContrast": {
                "backgroundBase": {
                  "alpha": 255,
                  "blue": 153,
                  "green": 153,
                  "red": 153
                },
                "backgroundTintedBase": {
                  "alpha": 255,
                  "blue": 128,
                  "green": 128,
                  "red": 128
                },
                "textBase": {
                  "alpha": 255,
                  "blue": 255,
                  "green": 255,
                  "red": 255
                },
                "textBrightAccent": {
                  "alpha": 255,
                  "blue": 255,
                  "green": 255,
                  "red": 255
                },
                "textSubdued": {
                  "alpha": 255,
                  "blue": 255,
                  "green": 255,
                  "red": 255
                }
              }
            }
          }
        }
      },
      {
        "id": "5P4yFLP0CAtkHOA4e6vdXg",
        "__typename": "Playlist",
        "attributes": [],
        "description": "",
        "format": "",
        "images": [
          {
            "extractedColors": {
              "colorDark": {
                "hex": "#B02020",
                "isFallback": false
              }
            },
            "sources": [
              {
                "height": 640,
                "url": "https://mosaic.scdn.co/640/ab67616d00001e020a825fea8b9095572e5130efab67616d00001e020b2ac553094996786771b49cab67616d00001e022fc0df818ae0a3be16cc3074ab67616d00001e02b5ccb2d17d79155dbb408dab",
                "width": 640
              },
              {
                "height": 300,
                "url": "https://mosaic.scdn.co/300/ab67616d00001e020a825fea8b9095572e5130efab67616d00001e020b2ac553094996786771b49cab67616d00001e022fc0df818ae0a3be16cc3074ab67616d00001e02b5ccb2d17d79155dbb408dab",
                "width": 300
              }
            ]
          }
        ],
        "name": "My first million ",
        "ownerV2": {
          "__typename": "UserResponseWrapper",
          "data": {
            "__typename": "User",
            "avatar": {
              "sources": [
                {
                  "height": 64,
                  "url": "https://example.com/user_ff4256",
                  "width": 64
                },
                {
                  "height": 300,
                  "url": "https://example.com/user_1a2ea0",
                  "width": 300
                }
              ]
            },
            "name": "user_6b7ee8",
            "uri": "spotify:user:31w7zovqu52kqoounxxbp4uyrsga",
            "username": "user_086a7b"
          }
        },
        "uri": "spotify:playlist:5P4yFLP0CAtkHOA4e6vdXg",
        "visualIdentity": {
          "squareCoverImage": {
            "__typename": "VisualIdentityImage",
            "extractedColorSet": {
              "encoreBaseSetTextColor": {
                "alpha": 255,
                "blue": 150,
                "green": 162,
                "red": 255
              },
              "highContrast": {
                "backgroundBase": {
                  "alpha": 255,
                  "blue": 14,
                  "green": 1,
                  "red": 159
                },
                "backgroundTintedBase": {
                  "alpha": 255,
                  "blue": 0,
                  "green": 0,
                  "red": 97
                },
                "textBase": {
                  "alpha": 255,
                  "blue": 255,
                  "green": 255,
                  "red": 255
                },
                "textBrightAccent": {
                  "alpha": 255,
                  "blue": 255,
                  "green": 255,
                  "red": 255
                },
                "textSubdued": {
                  "alpha": 255,
                  "blue": 180,
                  "green": 189,
                  "red": 255
                }
              },
              "higherContrast": {
                "backgroundBase": {
                  "alpha": 255,
                  "blue": 0,
                  "green": 0,
                  "red": 101
                },
                "backgroundTintedBase": {
                  "alpha": 255,
                  "blue": 41,
                  "green": 52,
                  "red": 147
                },
                "textBase": {
                  "alpha": 255,
                  "blue": 255,
                  "green": 255,
                  "red": 255
                },
                "textBrightAccent": {
                  "alpha": 255,
                  "blue": 96,
                  "green": 215,
                  "red": 30
                },
                "textSubdued": {
                  "alpha": 255,
                  "blue": 180,
                  "green": 189,
                  "red": 255
                }
              },
              "minContrast": {
                "backgroundBase": {
                  "alpha": 255,
                  "blue": 32,
                  "green": 32,
                  "red": 176
                },
                "backgroundTintedBase": {
                  "alpha": 255,
                  "blue": 0,
                  "green": 0,
                  "red": 123
                },
                "textBase": {
                  "alpha": 255,
                  "blue": 255,
                  "green": 255,
                  "red": 255
                },
                "textBrightAccent": {
                  "alpha": 255,
                  "blue": 255,
                  "green": 255,
                  "red": 255
                },
                "textSubdued": {
                  "alpha": 255,
                  "blue": 255,
                  "green": 255,
                  "red": 255
                }
              }
            }
          }
        }
      }
    ],
    "dropped": 0
  },
  "credits_used": 1,
  "request_id": "req_example000000",
  "cached": false,
  "pagination": {
    "next_cursor": null,
    "has_more": false,
    "page_size": 20
  },
  "credits_remaining": 9999,
  "source": "captured",
  "captured_at": "2026-10-02T12:55:47.667Z",
  "redacted": true
}

Live sample illustrating the unified response shape. Field values reflect the record you query.

API Details

How does the Spotify Search API work?

Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.

Method

GET

Response

JSON

Why SocialCrawl

Why use SocialCrawl for Spotify Search data?

We handle the complexity of Spotify data extraction so you can focus on building. Unified schema, AI enrichment, and zero platform logic in your code.

Developer First

How do you scrape social media data in seconds?

The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 69 platforms covering 10B+ monthly active users.

One schema, every platform

Query 69 platforms with identical response structures. Write your integration once.

Computed fields, not just scraped

When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language. Ready to use.

See your data before you code

Visual Data Explorer. Paste any URL, get rich result cards, sortable tables, CSV export.

import requests

response = requests.get(
    'https://www.socialcrawl.dev/v1/tiktok/profile',
    params={'handle': 'charlidamelio'},
    headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json()
[ .JSON ]
{
  "success": true,
  "platform": "tiktok",
  "data": {
    "author": {
      "username": "charlidamelio",
      "followers": 152400000
    },
    "engagement": {
      "likes": 12400000000,
      "engagement_rate": 0.087
    },
    "metadata": {
      "language": "en",
      "content_category": "lifestyle"
    }
  }
}
+ 69 platforms
FAQ

Have a question? We got answers

Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.

Contact us
How do I search Spotify with an API?
Send a GET request to /v1/spotify/search with a query parameter. SocialCrawl returns matching tracks, artists, albums, episodes, podcasts, and audiobooks in one unified SearchResult response.
What content types does the Spotify Search API cover?
Six content types: tracks, artists, albums, podcasts (shows), episodes, and audiobooks. One query searches all of them, so you don't need separate calls per type.
Do I need OAuth to use Spotify search?
No. The official Web API requires an access token even for search. SocialCrawl needs only your x-api-key header, the same key that covers 68 other platforms.
How much does the Spotify Search API cost?
Each search costs 1 credit on the standard tier. New accounts get 100 free credits with no credit card required, about 100 searches before paying anything.
Can I build a music search feature with this endpoint?
Yes. The endpoint is built for production search workloads: send the user's keyword, render the unified JSON results, and link out to Spotify with the returned URLs.

Ask AI about SocialCrawl

Ready to scrape Spotify Search data?

Get your API key and start pulling Spotify data in under 60 seconds.

Start for free

🤖 AI agent or LLM? Read this page as markdown