> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search

> Searches Apple Music and returns public result sections for artists, albums, songs, playlists, stations, and music videos. Use type=song, album, artist, playlist, or all.

### Query Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `query` | `string` | Yes | Search query |
| `type` | `string` | No | Result type to return. Use all, song, album, artist, playlist, station, music\_video, or radio\_episode. |

### Response Example

```json theme={null}
{
  "success": true,
  "data": {
  "success": true,
  "data": {
    "query": "taylor swift",
    "type": "song",
    "results": [
      {
        "id": "1833328840",
        "kind": "song",
        "title": "The Fate of Ophelia",
        "artist_name": "Taylor Swift",
        "url": "https://music.apple.com/us/album/the-fate-of-ophelia/1833328839?i=1833328840",
        "duration_ms": 226000
      }
    ]
  }
}
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.