# Search a TikTok user's following

Returns accounts followed by the user with numeric `user_id` whose names match `keyword`, in `results`. Get `user_id` from the username resolve endpoint.

- Platform: TikTok V2
- Request: `GET https://api.toolzerhub.com/v2/tiktok/app/user/following/search`
- Auth: `x-api-key` header
- Cost: 2 credits per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/tiktok-v2/user/search-tik-tok-user-following

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `user_id` | query | yes | string | Numeric user id, from the username resolve endpoint. |
| `keyword` | query | yes | string | Text to match within the accounts this user follows. |

## Example request

```bash
curl "https://api.toolzerhub.com/v2/tiktok/app/user/following/search?user_id=<user_id>&keyword=<keyword>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
