Spotify search and lookup

Search Spotify for tracks, albums, artists and podcasts.

SampleRecorded public data, shortened. Run the tool for a live result.

Songs

Free, no signup. A limited number of lookups per visitor each hour. Public data only.

How it works

The tool searches Spotify's public catalogue and lists what it finds, with the cover, the artists, the length and a link to open it on Spotify. It does not play anything and needs no Spotify login.

Use this in your app

This tool calls GET /v1/spotify/search. See the reference, or get early access for a key.

curl
curl -G "https://api.socialscrape.io/v1/spotify/search" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "query=taylor swift"
Python
import os
import requests

params = {
    "query": "taylor swift",
}
res = requests.get(
    "https://api.socialscrape.io/v1/spotify/search",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/spotify/search");
url.search = new URLSearchParams({
  "query": "taylor swift"
}).toString();
const res = await fetch(url, {
  headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();

if (body.ok) {
  console.log(body.data);
} else {
  console.error(body.error.code, body.error.message);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape Spotify search",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/spotify/search",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "query",
              "value": "taylor swift"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Questions

Does it show play counts?

Not here. The play count is not part of what Spotify shows publicly for most search results.

Why do results depend on my country?

Spotify's catalogue differs by market. In the API you can set the region.

Is this tool free?

Yes. No account and no card. Each visitor gets a limited number of lookups an hour, so it stays free for everyone.

How do I get this data in my own app?

Send GET /v1/spotify/search with your key in the x-api-key header. A request costs 1 credit. A repeat of something fetched recently costs 0 credits, and failed requests are free. See the reference.