Douyin Fetch User Following List
## Purpose Retrieve accounts that a specified Douyin user follows, with timestamp-based pagination. This returns the user's following list, not their followers. ## Inputs - `sec_user_id` (string): The target user's sec_user_id; supply the identifier of the user you want to query. - `max_time` (string, default `"0"`): Pagination timestamp. Use `"0"` for initialization, then the value returned by the preceding request. - `count` (integer, default `20`): Requested number of entries. Keeping the default is recommended. - `source_type` (integer, default `1`): Use `2` for initialization and `1` for subsequent requests. ## Request sequence and results 1. Initialize with `max_time="0"` and `source_type=2`. This returns an empty list and a `max_time` value; the empty initialization list does not establish that the user follows no accounts. 2. Request list data with the returned `max_time` and `source_type=1`. For later pages, continue passing the preceding response's `max_time`. Results contain following-list data and pagination information. Individual account fields are not specified in the available response schema. Skipping the initialization sequence may produce duplicate entries.
Pricing
| Condition | Charge |
|---|---|
| Each call | 2.07 credits/call |
Each call has a fixed charge of 2.07 credits. Charges are per query. A successful query is billed even if it returns no results.
The initialization request and each subsequent pagination request are charged separately per call. Initialization returns an empty list and the pagination timestamp needed for the next request; this does not indicate that the user follows no accounts.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
count | integer | No | 数量/Number | 20 |
max_time | string | No | 最大时间戳/Maximum timestamp | 0 |
sec_user_id | string | No | 用户sec_user_id/User sec_user_id | MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70 |
source_type | integer | No | 来源类型/Source type | 1 |
Invocation example
Parameter templateGenerated from the parameter configuration. Replace the sample values before use.
/agent-api/v1/tool/executeX-Api-Keycurl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_douyin_fetch_user_following_list' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {}
}'No response example available yet.

