# Douyin Xingtu Author Location Info API

> Returns location details for a Douyin Xingtu creator using their author ID, with optional filters for time range and platform settings.

Source: https://www.sandbase.ai/model/douyin/xingtu-v2/author-local-info
API reference: https://www.sandbase.ai/model/douyin/xingtu-v2/author-local-info/docs

## Facts

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

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `o_author_id` | string | yes |  |
| `platform_channel` | integer | no |  |
| `platform_source` | integer | no |  |
| `time_range` | integer | no |  |

## FAQ

### How do I use the Douyin Xingtu Author Location Info API?

Send a POST request to https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-local-info 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 Author Location Info 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 Author Location Info API accept?

Required: o_author_id (string). Optional: platform_channel (integer), platform_source (integer) and time_range (integer). The Parameters table and the Playground on this page list every field.

### What does the Douyin Xingtu Author Location Info API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Douyin developer account or API key?

No. Douyin Xingtu Author Location Info 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 Author Location Info API

Fetch creator location data on Douyin Xingtu using `o_author_id`. You can adjust the evaluation period via `time_range`.

#### Use cases

- Inspect local geographical presence for a Douyin creator.
- Evaluate creator regional distribution over a designated time range.
- Assess creator local audience trends for regional campaign planning.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-local-info" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"o_author_id": "<o_author_id>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `o_author_id` | string | Yes | Creator/author ID |
| `time_range` | integer | No | Time range in days, default 30 |
| `platform_source` | integer | No | Platform source, default 1 |
| `platform_channel` | integer | No | Platform channel, default 1 |

#### Notes

- `o_author_id` is required to identify the creator.
- `time_range` sets the duration in days and defaults to 30.
- `platform_source` and `platform_channel` both default to 1.

#### Related APIs

- [Douyin Xingtu Author Audience Distribution](/model/douyin/xingtu-v2/author-audience-distribution): Returns audience profile distribution metrics for a specified Xingtu creator based on creator ID and link type, with selectable platform source and channel opt…
- [Douyin Xingtu Author Base Info](/model/douyin/xingtu-v2/author-base-info): Returns basic creator profile data from Douyin Xingtu by author identifier, with options to include recommendation details and linkage information.
- [Douyin Xingtu Author Business Card Info](/model/douyin/xingtu-v2/author-business-card-info): Returns business card details for a Douyin Xingtu creator based on the specified author ID.
