# user_profile

POST /v1/user_profile is the user profile action: one account: bio and counts. It is offered on 17 platforms (TikTok, Instagram, X, Reddit, YouTube, Facebook and 11 more), and the platform is a parameter of the request. One call costs 1 to 12 credits, depending on the platform; a call that fails costs nothing.

- Page: https://socialtoai.com/docs/api/user-profile/
- Last updated: 2026-10-17

- POST: `https://api.socialtoai.com/v1/user_profile`

## Request

A JSON body. These are the same for every action; the rest depends on the platform, below.

| Name | Type | Where | Required | What it is |
| --- | --- | --- | --- | --- |
| `platform` | string | body | Yes | The platform to read. One of the platforms this action is offered on. |
| `max_cost_credits` | integer | body | No | The most this call may cost. Over it, the call is refused for free and the answer carries the quote. |
| `Idempotency-Key` | string | header | No | 1 to 255 visible ASCII characters. The same key with the same parameters returns the first result again and is not charged twice. |

## Platforms and credits

Each platform takes its own parameters. Its own page has the full parameter and field tables and a request you can change.

| Platform | Price key | Credits | Required | Optional | Per page |
| --- | --- | --- | --- | --- | --- |
| [TikTok](https://socialtoai.com/tiktok-user-profile-api.md) | `tiktok.user_profile` | 2 | one of `id`, `username` | – | – |
| [Instagram](https://socialtoai.com/instagram-user-profile-api.md) | `instagram.user_profile` | 2 | `username` | – | – |
| [X](https://socialtoai.com/x-user-profile-api.md) | `x.user_profile` | 1 | one of `id`, `username` | – | – |
| [Reddit](https://socialtoai.com/reddit-user-profile-api.md) | `reddit.user_profile` | 2 | `username` | – | – |
| [YouTube](https://socialtoai.com/youtube-user-profile-api.md) | `youtube.user_profile` | 2 | one of `id`, `username` | – | – |
| [Facebook](https://socialtoai.com/facebook-user-profile-api.md) | `facebook.user_profile` | 2 | one of `id`, `username`, `url` | – | – |
| [LinkedIn](https://socialtoai.com/linkedin-user-profile-api.md) | `linkedin.user_profile` | 2 | one of `username`, `url` | – | – |
| [Threads](https://socialtoai.com/threads-user-profile-api.md) | `threads.user_profile` | 2 | `username` | – | – |
| [Telegram](https://socialtoai.com/telegram-user-profile-api.md) | `telegram.user_profile` | 2 | `username` | – | – |
| [Xiaohongshu](https://socialtoai.com/xiaohongshu-user-profile-api.md) | `xiaohongshu.user_profile` | 12 | one of `id`, `url` | – | – |
| [Douyin](https://socialtoai.com/douyin-user-profile-api.md) | `douyin.user_profile` | 2 | one of `id`, `url` | – | – |
| [Weibo](https://socialtoai.com/weibo-user-profile-api.md) | `weibo.user_profile` | 2 | `id` | – | – |
| [WeChat Articles](https://socialtoai.com/wechat-user-profile-api.md) | `wechat.user_profile` | 12 | `id` | – | – |
| [Bilibili](https://socialtoai.com/bilibili-user-profile-api.md) | `bilibili.user_profile` | 2 | `id` | – | – |
| [Zhihu](https://socialtoai.com/zhihu-user-profile-api.md) | `zhihu.user_profile` | 2 | `username` | – | – |
| [Kuaishou](https://socialtoai.com/kuaishou-user-profile-api.md) | `kuaishou.user_profile` | 12 | `id` | – | – |
| [WeChat Channels](https://socialtoai.com/wechat-channels-user-profile-api.md) | `wechat_channels.user_profile` | 12 | `id` | – | – |

## Parameters

| Name | Type | What it is | Taken by |
| --- | --- | --- | --- |
| `id` | string | TikTok user ID, a string of digits | TikTok, X, YouTube, Facebook, Xiaohongshu, Douyin, Weibo, WeChat Articles, Bilibili, Kuaishou and WeChat Channels |
| `username` | string | TikTok handle, without the @ | TikTok, Instagram, X, Reddit, YouTube, Facebook, LinkedIn, Threads, Telegram and Zhihu |
| `url` | string | Link to the page, written facebook.com/handle | Facebook, LinkedIn, Xiaohongshu and Douyin |

## Example

TikTok: One account: name, bio, followers, following and post count.

**cURL**

```
curl https://api.socialtoai.com/v1/user_profile \
  -H "Authorization: Bearer $SOCIALTOAI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "tiktok",
    "id": "6767146744805213190"
  }'
```

**Python**

```
import os
import requests

response = requests.post(
    "https://api.socialtoai.com/v1/user_profile",
    headers={"Authorization": f"Bearer {os.environ['SOCIALTOAI_KEY']}"},
    json={
        "platform": "tiktok",
        "id": "6767146744805213190",
    },
)
print(response.json())
```

**Response** (200 OK, 2 credits)

```
{
  "request_id": "req_00000000-0000-4000-8000-000000000001",
  "schema_version": "v1",
  "fetched_at": "2026-10-12T19:16:32.000Z",
  "action": "user_profile",
  "platform": "tiktok",
  "status": "ok",
  "items": [
    {
      "platform": "tiktok",
      "id": "…",
      "ref": "…",
      "approx": [],
      "type": "account",
      "username": "…",
      "name": "…",
      "url": "https://example.com/…",
      "bio": "…",
      "verified": true,
      "followers": 605660,
      "following": 92,
      "posts_count": 364
    }
  ],
  "unavailable": [],
  "warnings": [],
  "applied_params": {
    "id": "6767146744805213190"
  },
  "cost_credits": 2,
  "billing": {
    "cost_credits": 2,
    "balance_credits": 98,
    "today_spend_credits": 2,
    "daily_limit_credits": null,
    "daily_remaining_credits": null,
    "display": "This call: 2 credits. Balance: 98 credits."
  },
  "replayed": false
}
```

_Sample data: names, links and text are replaced by placeholders._

## What comes back

The [envelope](https://socialtoai.com/docs/api/response.md) with [`account`](https://socialtoai.com/docs/api/response.md) items. One call returns one item.

A failed call costs 0 credits and says why: see [Errors](https://socialtoai.com/docs/api/errors.md).
