# Douyin XingTu kolId Lookup API

> Convert a Douyin user's sec_user_id into the XingTu kolId used by the XingTu KOL profile, price, fan portrait and performance APIs.

Source: https://www.sandbase.ai/apis/douyin/xingtu/xingtu-kolid-by-sec-user-id
API reference: https://www.sandbase.ai/apis/douyin/xingtu/xingtu-kolid-by-sec-user-id/docs

## Facts

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

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

## FAQ

### How do I use the Douyin XingTu kolId Lookup API?

Send a POST request to https://api.sandbase.ai/v1/api/douyin/xingtu/xingtu-kolid-by-sec-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 Douyin XingTu kolId Lookup 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 XingTu kolId Lookup API accept?

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

### What does the Douyin XingTu kolId Lookup 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 XingTu kolId Lookup 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 XingTu kolId Lookup API

Pass a Douyin `sec_user_id` and get the creator's XingTu `kolId`, plus basic tags.

#### Use cases

- First step before calling any XingTu KOL API.
- Check whether a creator is on XingTu.
- Map Douyin accounts to marketplace IDs.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu/xingtu-kolid-by-sec-user-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sec_user_id": "MS4wLjABAAAAXakJHNxB0cmKZ6c6FthE2_vA7he6kHmgSBp9YjggHR8"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `sec_user_id` | string | Yes | sec_user_id, can be obtained from the following interfaces: `douyin/web/user-profile`; `douyin/web/user-profile-v2`; `d… |

#### Example response

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

```json
{
  "id": "7038603512770461703",
  "core_user_id": "93153724393",
  "nick_name": "<user>",
  "tag": "萌宠",
  "finish_rate_ovr": 0.9637
}
```

#### Related APIs

- [Douyin XingTu KOL Profile](/model/douyin/xingtu/kol-base-info-v1): Get the XingTu (Douyin creator marketplace) profile of a KOL: followers, location, category tags, online status and available collaboration types.
- [Douyin XingTu KOL Cost Metrics](/model/douyin/xingtu/kol-cp-info-v1): Get expected campaign metrics for a Douyin KOL from XingTu: expected views, CPM and CPE estimates, and hot-video counts.
- [Douyin XingTu KOL Audience](/model/douyin/xingtu/kol-fans-portrait-v1): Get the audience portrait of a Douyin KOL from XingTu: fan age, gender, region, device and interest distributions.
