# Mixcloud Search API Documentation

<p><strong>Mixcloud Search API</strong> returns cloudcast (show/mix) search results from Mixcloud as JSON. Each result carries the cloudcast key, name, username, public url, play count, favorite count, and created time. Results are paginated with offset-based paging. A valid empty result is a successful response. Play and favorite counts are omitted for cloudcasts whose owner hides stats.</p>

- **Documentation:** [https://scrappa.co/docs/mixcloud-api/mixcloud_search](https://scrappa.co/docs/mixcloud-api/mixcloud_search)
- **API group:** Mixcloud API
- **Endpoint:** `GET https://scrappa.co/api/mixcloud/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 |
| --- | --- | --- | --- |
| `q` | string | Yes | Search query. Example: techno. |
| `type` | string | No | Result type. Only cloudcast is supported; defaults to cloudcast. |
| `limit` | integer | No | Maximum number of results per page. Defaults to 20. |
| `offset` | integer | No | Result offset for paging. Defaults to 0. |

## Example response

```json
{
    "data": {
        "pagination": {
            "limit": 2,
            "offset": 2,
            "has_more": true,
            "next_cursor": "2"
        },
        "search_results": [
            {
                "key": "/TechnoClubNet/stacey-hotwaxx-hale-tony-humphries-20230422-020029/",
                "url": "https://www.mixcloud.com/TechnoClubNet/stacey-hotwaxx-hale-tony-humphries-20230422-020029/",
                "name": "Tony Humphries - April 21, 2023 - techno-club.net",
                "username": "TechnoClubNet",
                "created_time": "2023-04-22T23:20:45Z"
            },
            {
                "key": "/TechnoClubNet/pux-tec-troit-brian-g-brenda-d-tony-humphries-20230429-104733/",
                "url": "https://www.mixcloud.com/TechnoClubNet/pux-tec-troit-brian-g-brenda-d-tony-humphries-20230429-104733/",
                "name": "Tony Humphries - April 28, 2023 - techno-club.net",
                "username": "TechnoClubNet",
                "created_time": "2023-05-01T08:20:16Z"
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter is missing or a parameter failed validation. |
| 404 | Mixcloud Not Found | The requested Mixcloud object does not exist. |
| 503 | Mixcloud Upstream Unavailable | Mixcloud 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)
