# Douyin Web User Following List API

> Returns a list of accounts followed by a Douyin user. Filter by target user security ID and navigate paginated results using timestamps.

Source: https://www.sandbase.ai/apis/douyin/web/user-following-list
API reference: https://www.sandbase.ai/apis/douyin/web/user-following-list/docs

## Facts

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

## Call it

`POST https://api.sandbase.ai/v1/api/douyin/web/user-following-list` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `count` | integer | no |  |
| `max_time` | string | no |  |
| `sec_user_id` | string | no |  |
| `source_type` | integer | no |  |

## FAQ

### How do I use the Douyin Web User Following List API?

Send a POST request to https://api.sandbase.ai/v1/api/douyin/web/user-following-list 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 Douyin Web User Following List 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 Douyin Web User Following List API accept?

No parameters are required. Optional: count (integer), max_time (string), sec_user_id (string) and source_type (integer). The Parameters table and the Playground on this page list every field.

### What does the Douyin Web User Following List 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 Douyin developer account or API key?

No. Douyin Web User Following List 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 Douyin API access separately.

## README

### Douyin Web User Following List API

Fetch the accounts followed by a user using `sec_user_id`. Pagination is supported through `max_time` alongside `source_type` adjustments.

#### Use cases

- Inspect the list of profiles followed by a specific user.
- Map user interest graphs by tracking followed creator profiles.
- Audit account connections and relationship networks across audiences.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-following-list" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `count` | integer | No | Number, default is 20, it is recommended to keep it unchanged. |
| `max_time` | string | No | Maximum timestamp, default is 0, get from the returned data later, used for paging. |
| `sec_user_id` | string | No | User sec_user_id |
| `source_type` | integer | No | Source type, default is `1`, use `2` as the source type for the first request, and then use `1` as the source type for the subsequent request. |

#### Example response

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

```json
{
  "followings": [
    {
      "account_cert_info": "{}",
      "apple_account": 0,
      "authority_status": 0,
      "aweme_count": 222,
      "comment_filter_status": 0,
      "create_time": 1591592883,
      "favoriting_count": 690,
      "fb_expire_time": 0,
      "follow_status": 0,
      "follower_count": 143488,
      "original_musician": {
        "digg_count": 0,
        "music_count": 0,
        "music_used_count": 0
      },
      "search_impr": {
        "entity_id": "1257480849466808"
      }
    }
  ]
}
```

#### Notes

- Use `2` for `source_type` on the initial call, then use `1` for subsequent calls.
- Pass the returned timestamp value to `max_time` to paginate through results.
- The `count` parameter defaults to 20 items per page.

#### Related APIs

- [Douyin Batch Video ID Extraction](/model/douyin/web/all-aweme-id): Extracts video IDs from a list of Douyin video URLs.
- [Douyin sec_user_ids from URLs (Batch)](/model/douyin/web/all-sec-user-id): Extracts Douyin sec_user_id values in bulk from a list of user homepage URLs.
- [Douyin Webcast ID Extraction](/model/douyin/web/all-webcast-id): Extracts webcast IDs from a submitted list of Douyin live room links.
