# SoundCloud Search

SoundCloud search across tracks, users, albums and non-album playlists. The type parameter selects the object kind; mixed searches everything at once.

- **Documentation:** [https://scrappa.co/docs/soundcloud-api/soundcloud_search](https://scrappa.co/docs/soundcloud-api/soundcloud_search)
- **API group:** SoundCloud API
- **Endpoint:** `GET https://scrappa.co/api/soundcloud/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Search term (q is accepted as an alias). |
| `type` | string | No | Object kind: mixed, tracks, users, albums or playlists_without_albums. Defaults to mixed. |
| `limit` | integer | No | Maximum number of results. Defaults to 20. |
| `offset` | integer | No | Result offset for paging. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/soundcloud/search?query=night+drive&type=tracks&limit=20&offset=0"
```

## Example response

```json
{
    "search_parameters": {
        "engine": "soundcloud_search",
        "query": "night drive",
        "type": "tracks",
        "limit": 20,
        "offset": 0
    },
    "search_results": [
        {
            "id": 1000000000,
            "title": "Night Drive",
            "username": "artist",
            "playback_count": 48000,
            "permalink_url": "https://soundcloud.com/artist/night-drive"
        }
    ],
    "pagination": {
        "offset": 0,
        "limit": 20,
        "total": null,
        "next_offset": 20
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter is missing or a parameter failed validation. |
| 404 | SoundCloud Not Found | The requested SoundCloud object does not exist. |
| 503 | SoundCloud Upstream Unavailable | SoundCloud could not be reached within the full attempt budget. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
