# Toutiao Post Comments API

> Returns user comments and interaction metrics for a specific Toutiao post. Results can be paginated through comment batches using an offset index.

Source: https://www.sandbase.ai/model/toutiao/app/comments
API reference: https://www.sandbase.ai/model/toutiao/app/comments/docs

## Facts

- Provider: Toutiao
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/toutiao/app/comments`
- Price: $0.0015 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, toutiao
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/toutiao/app/comments` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `group_id` | string | yes |  |
| `offset` | string | yes |  |

## FAQ

### How do I use the Toutiao Post Comments API?

Send a POST request to https://api.sandbase.ai/v1/api/toutiao/app/comments with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Toutiao Post Comments API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Toutiao Post Comments API accept?

Required: group_id (string) and offset (string). The Parameters table and the Playground on this page list every field.

### What does the Toutiao Post Comments API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

### Do I need a Toutiao developer account or API key?

No. Toutiao Post Comments runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Toutiao API access separately.

## README

### Toutiao Post Comments API

Retrieve comments for a Toutiao post by passing the target post identifier in `group_id`. Paginate through sequential comment batches with `offset`.

#### Use cases

- Analyze user sentiment and feedback on Toutiao content.
- Monitor engagement metrics such as digg and forward counts across post comments.
- Collect comment threads for community management workflows.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/toutiao/app/comments" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"group_id": "7453372680222523931", "offset": "0"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `offset` | string | Yes | Offset, used for pagination, default is 0, then add 20 each time |
| `group_id` | string | Yes | Post ID, can be obtained from the link |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "data": [
    {
      "cell_type": 1,
      "id": 7453426669643629364,
      "comment": {
        "bury_count": 9,
        "content_rich_span": "{\"links\":[]}",
        "create_time": 1735386148,
        "digg_count": 557,
        "forward_count": 0,
        "id": 7453426669643629364
      }
    }
  ]
}
```

#### Notes

- Locate `group_id` directly in the Toutiao post URL.
- Set `offset` to 0 initially and increment by 20 for subsequent pages.

#### Related APIs

- [Toutiao Article Details (App)](/model/toutiao/app/article-info): Returns details and interface settings for a specified Toutiao post.
- [Toutiao Profile User ID](/model/toutiao/app/user-id): Resolves a Toutiao user profile URL into numeric and secure user identifiers.
- [Toutiao User Profile](/model/toutiao/app/user-info): Get a Toutiao (Jinri Toutiao) user profile by user ID: name, bio, avatar, follower, following and like counts, and content tabs.
