# TikTok / Playlists

Fetch public playlists for a username.

```
GET /api/v1/tiktok/playlists
```

Auth: `Authorization: Bearer <SOCIFY_KEY>`  
Credits: 1 credit per request

## Parameters

| Name | Required | Description | Example |
|------|----------|-------------|---------|
| `username` | yes | TikTok username without @. | `ibaillanos` |
| `cursor` | no | Pagination cursor from a previous response. |  |

## Example

```bash
curl -s 'https://trysocify.com/api/v1/tiktok/playlists?username=ibaillanos' \
  -H "Authorization: Bearer $SOCIFY_KEY"
```

## Response fields

| Field | Type | Description |
|-------|------|-------------|
| `playlists` | array | Playlists for this page. |
| `playlists[].id` | string | Playlist id. |
| `playlists[].name` | string | Playlist name. |
| `playlists[].videos` | number | Video count, when available. |
| `cursor` | string | Pass as cursor for the next page. |
## Sample response

Successful lookups wrap the payload in `{ ok, platform, resource, params, data, meta }`. `data` is shown below.

```json
{
  "ok": true,
  "platform": "tiktok",
  "resource": "playlists",
  "params": {
    "username": "ibaillanos"
  },
  "data": {
    "cursor": "",
    "playlists": [
      {
        "cover": "https://p16-sign-va.tiktokcdn.com/example.jpeg",
        "id": "7500000000000000001",
        "name": "Favorites",
        "videos": 24
      }
    ]
  },
  "meta": {
    "credits_charged": 1,
    "latency_ms": 420,
    "platform": "tiktok",
    "resource": "playlists",
    "path": "/api/v1/tiktok/playlists"
  }
}
```

## Links

- HTML docs: https://trysocify.com/docs/api/tiktok/playlists
- SEO page: https://trysocify.com/tiktok/playlists
- OpenAPI: https://trysocify.com/openapi.json
- Catalog: https://trysocify.com/catalog.json
