# TikTok / Replies

Fetch replies to a comment. Provide media_id (video id) and id (comment id).

```
GET /api/v1/tiktok/replies
```

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

## Parameters

| Name | Required | Description | Example |
|------|----------|-------------|---------|
| `media_id` | yes | Video id the parent comment belongs to (not a hashtag or comment id). | `7165262254722534698` |
| `id` | yes | Parent comment id (not the video id). | `7165265882552828718` |
| `cursor` | no | Pagination cursor from a previous response. |  |

## Example

```bash
curl -s 'https://trysocify.com/api/v1/tiktok/replies?media_id=7165262254722534698&id=7165265882552828718' \
  -H "Authorization: Bearer $SOCIFY_KEY"
```

## Response fields

| Field | Type | Description |
|-------|------|-------------|
| `comments` | array | Replies for this page. |
| `comments[].id` | string | Reply id. |
| `comments[].text` | string | Reply text. |
| `comments[].likes` | number | Like count. |
| `comments[].created_at` | number | Unix timestamp, when available. |
| `comments[].author` | object | Author username and id. |
| `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": "replies",
  "params": {
    "media_id": "7165262254722534698",
    "id": "7165265882552828718"
  },
  "data": {
    "comments": [
      {
        "author": {
          "id": "555",
          "username": "reply_user"
        },
        "created_at": 1667844100,
        "id": "7123456789012345699",
        "likes": 12,
        "text": "agreed"
      }
    ],
    "cursor": ""
  },
  "meta": {
    "credits_charged": 1,
    "latency_ms": 420,
    "platform": "tiktok",
    "resource": "replies",
    "path": "/api/v1/tiktok/replies"
  }
}
```

## Links

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