Spotify API
Spotify Search API
Search Spotify for matching tracks, albums, artists, podcasts, and playlists by keyword.
POST/v1/run/spotify.search
Requests
-
30d
Try it
Make your first request
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
"data": {
"albums": [
{
"id": "a1b2c3d4",
"name": "Example title",
"uri": "example",
"year": 2024
}
],
"artists": [
{
"id": "a1b2c3d4",
"name": "Example title",
"uri": "example",
"verified": true
}
],
"podcasts": [
{
"id": "a1b2c3d4",
"name": "Example title",
"publisher": "example"
}
],
"tracks": [
{
"id": "a1b2c3d4",
"name": "Example title",
"uri": "example"
}
]
},
"found": true
}Response interface
interface SpotifySearchResponse {
data: {
albums: {
id: string;
name: string;
uri: string;
year: number;
}[];
artists: {
id: string;
name: string;
uri: string;
verified: boolean;
}[];
podcasts: {
id: string;
name: string;
publisher: string;
}[];
tracks: {
id: string;
name: string;
uri: string;
}[];
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dPOST /v1/run/spotify.search
curl -X POST https://api.getanyapi.com/v1/run/spotify.search \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"my first million"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| query | string | "my first million"Search term (e.g. "my first million"). |
| Response | ||
| data | object | |
| data.albums | object[] | Populated whenever the provider has data for the entity. |
| data.albums[].id | string | |
| data.albums[].name | string | |
| data.albums[].uri | string | |
| data.albums[].year | integer | |
| data.artists | object[] | Populated whenever the provider has data for the entity. |
| data.artists[].id | string | |
| data.artists[].name | string | |
| data.artists[].uri | string | |
| data.artists[].verified | boolean | |
| data.podcasts | object[] | Populated whenever the provider has data for the entity. |
| data.podcasts[].id | string | |
| data.podcasts[].name | string | |
| data.podcasts[].publisher | string | |
| data.tracks | object[] | Populated whenever the provider has data for the entity. |
| data.tracks[].id | string | Populated whenever the provider has data for the entity. |
| data.tracks[].name | string | Populated whenever the provider has data for the entity. |
| data.tracks[].uri | string | Populated whenever the provider has data for the entity. |
| found | boolean | |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $1.20 |
FAQ
About the Spotify Search API
The AnyAPI Spotify Search API returns Spotify search data as normalized JSON from one POST call to /v1/run/spotify.search. Search Spotify for matching tracks, albums, artists, podcasts, and playlists by keyword. AnyAPI returns one normalized schema whichever source serves it. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum.
It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.
Search Spotify for matching tracks, albums, artists, podcasts, and playlists by keyword. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.