# Toutiao Profile User ID API

> Resolves a Toutiao user profile URL into numeric and secure user identifiers. Returns the user ID and sec_user_id associated with the provided profile link.

Source: https://www.sandbase.ai/model/toutiao/app/user-id
API reference: https://www.sandbase.ai/model/toutiao/app/user-id/docs

## Facts

- Provider: Toutiao
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/toutiao/app/user-id`
- 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/user-id` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `user_profile_url` | string | yes |  |

## FAQ

### How do I use the Toutiao Profile User ID API?

Send a POST request to https://api.sandbase.ai/v1/api/toutiao/app/user-id 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 Profile User ID 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 Profile User ID API accept?

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

### What does the Toutiao Profile User ID 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 Profile User ID 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 Profile User ID API

Look up account identifiers from a Toutiao user profile link by passing `user_profile_url`.

#### Use cases

- Convert web profile links into Toutiao user IDs for downstream queries.
- Retrieve sec_user_id values needed for Toutiao data integrations.
- Resolve account identifiers from shared Toutiao user links.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/toutiao/app/user-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_profile_url": "https://www.toutiao.com/c/user/token/MS4wLjABAAAAwK6echNksY69R8l2vcZudupfhTItbGSGt-8ineO5UaB4L-djqkYDgB6TkAdMvrmW/"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `user_profile_url` | string | Yes | User profile URL |

#### Example response

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

```json
{
  "sec_user_id": "<user>",
  "user_id": "<user>"
}
```

#### Notes

- Requires the full profile link in `user_profile_url`.

#### Related APIs

- [Toutiao Article Details (App)](/model/toutiao/app/article-info): Returns details and interface settings for a specified Toutiao post.
- [Toutiao Post Comments](/model/toutiao/app/comments): Returns user comments and interaction metrics for a specific Toutiao post.
- [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.
