---
title: "Douyin Creator Marketplace (Xingtu) Spread Metrics API (V1)"
description: "Returns Douyin Creator Marketplace (Xingtu) spread metrics for a creator, with channel, period, video-type, assignment, and flow filters. Use it to compare creator spread performance during campaign planning."
aiUsagePrompt: true
---

# Douyin Creator Marketplace \(Xingtu\) Spread Metrics API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin-xingtu/gw/api/data_sp/get_author_spread_info/v1\"")'
  :summary='JSON.parse("\"Spread Metrics (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-creator-marketplace-xingtu/spread-metrics-v1-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"User authentication token.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"oAuthorId\",\"in\":\"query\",\"description\":\"Author&#39;s unique ID.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"platform\",\"in\":\"query\",\"description\":\"Platform type.\\n\\nAvailable Values:\\n- `SHORT_VIDEO`: Short video\\n- `LIVE_STREAMING`: Live streaming\\n- `PICTURE_TEXT`: Picture and text\\n- `SHORT_DRAMA`: Short drama\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"SHORT_VIDEO\",\"description\":\"Platform type\",\"enum\":[\"SHORT_VIDEO\",\"LIVE_STREAMING\",\"PICTURE_TEXT\",\"SHORT_DRAMA\"]}},{\"name\":\"range\",\"in\":\"query\",\"description\":\"Time range.\\n\\nAvailable Values:\\n- `DAY_30`: Last 30 days\\n- `DAY_90`: Last 90 days\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"DAY_30\",\"description\":\"Time range\",\"enum\":[\"DAY_30\",\"DAY_90\"]}},{\"name\":\"type\",\"in\":\"query\",\"description\":\"Video type.\\n\\nAvailable Values:\\n- `PERSONAL_VIDEO`: Personal video\\n- `XINTU_VIDEO`: Xingtu video\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"PERSONAL_VIDEO\",\"description\":\"Author video type\",\"enum\":[\"PERSONAL_VIDEO\",\"XINTU_VIDEO\"]}},{\"name\":\"onlyAssign\",\"in\":\"query\",\"description\":\"Whether to only include assigned videos.\",\"required\":false,\"schema\":{\"type\":\"boolean\",\"default\":false}},{\"name\":\"flowType\",\"in\":\"query\",\"description\":\"Flow type filter.\\n\\nAvailable Values:\\n- `EXCLUDE`: Exclude\\n- `INCLUDE`: Include\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"EXCLUDE\",\"description\":\"Flow filter type\",\"enum\":[\"EXCLUDE\",\"INCLUDE\"]}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"Creator reach and engagement metrics for the selected video type and time window. Metric groups may be absent or empty when figures are unavailable.\",\"properties\":{\"item_num\":{\"type\":\"string\",\"description\":\"Number of videos in the selected period, returned as a string.\"},\"play_mid\":{\"type\":\"string\",\"description\":\"Median number of plays per video, returned as a string.\"},\"avg_duration\":{\"type\":\"string\",\"description\":\"Average video duration, returned as a string. The response does not specify the time unit.\"},\"like_avg\":{\"type\":\"string\",\"description\":\"Average number of likes per video, returned as a string.\"},\"comment_avg\":{\"type\":\"string\",\"description\":\"Average number of comments per video, returned as a string.\"},\"share_avg\":{\"type\":\"string\",\"description\":\"Average number of shares per video, returned as a string.\"},\"interact_rate\":{\"type\":\"object\",\"description\":\"Engagement rate and its comparison statistics, when available.\",\"properties\":{\"label\":{\"type\":\"string\",\"description\":\"Comparison group label, when available. It can be empty.\"},\"overtake\":{\"type\":\"integer\",\"description\":\"Raw integer comparison value. The response does not specify the scale.\"},\"value\":{\"type\":\"integer\",\"description\":\"Raw integer engagement rate. The response does not specify the scale.\"}}},\"play_over_rate\":{\"type\":\"object\",\"description\":\"Video completion rate and its comparison statistics, when available.\",\"properties\":{\"label\":{\"type\":\"string\",\"description\":\"Comparison group label, when available. It can be empty.\"},\"overtake\":{\"type\":\"integer\",\"description\":\"Raw integer comparison value. The response does not specify the scale.\"},\"value\":{\"type\":\"integer\",\"description\":\"Raw integer video completion rate. The response does not specify the scale.\"}}},\"play_stability\":{\"type\":\"object\",\"description\":\"Playback stability and its comparison statistics, when available.\",\"properties\":{\"label\":{\"type\":\"string\",\"description\":\"Comparison group label, when available. It can be empty.\"},\"overtake\":{\"type\":\"integer\",\"description\":\"Raw integer comparison value. The response does not specify the scale.\"},\"value\":{\"type\":\"integer\",\"description\":\"Raw integer playback stability value.\"}}},\"item_rate\":{\"type\":\"object\",\"description\":\"Video activity and engagement comparison metrics for the selected period. Each subgroup can be empty.\",\"properties\":{\"item_num\":{\"type\":\"object\",\"description\":\"Video count and its comparison statistics.\",\"properties\":{\"label\":{\"type\":\"string\",\"description\":\"Comparison group label, when available. It can be empty.\"},\"overtake\":{\"type\":\"integer\",\"description\":\"Raw integer comparison value. The response does not specify the scale.\"},\"value\":{\"type\":\"integer\",\"description\":\"Video count used for comparison, returned as an integer.\"}}},\"play_mid\":{\"type\":\"object\",\"description\":\"Median plays per video and its comparison statistics.\",\"properties\":{\"label\":{\"type\":\"string\",\"description\":\"Comparison group label, when available. It can be empty.\"},\"overtake\":{\"type\":\"integer\",\"description\":\"Raw integer comparison value. The response does not specify the scale.\"},\"value\":{\"type\":\"integer\",\"description\":\"Median plays per video used for comparison, returned as an integer.\"}}},\"interact_rate\":{\"type\":\"object\",\"description\":\"Engagement-rate comparison in this group. This object can be empty.\"}}},\"expect_cpe\":{\"type\":\"object\",\"description\":\"Estimated cost per engagement by video duration band. This object can be empty.\",\"properties\":{\"cpe_21_60\":{\"type\":\"string\",\"description\":\"Estimated cost per engagement for the 21–60 second video band, returned as a string.\"},\"cpe_60\":{\"type\":\"string\",\"description\":\"Estimated cost per engagement for the over-60-second video band, returned as a string.\"}}},\"expect_cpm\":{\"type\":\"object\",\"description\":\"Estimated cost per thousand plays by video duration band. This object can be empty.\",\"properties\":{\"cpm_21_60\":{\"type\":\"string\",\"description\":\"Estimated cost per thousand plays for the 21–60 second video band, returned as a string.\"},\"cpm_60\":{\"type\":\"string\",\"description\":\"Estimated cost per thousand plays for the over-60-second video band, returned as a string.\"}}},\"sales_expect_cpm\":{\"type\":\"object\",\"description\":\"Sales-related estimated CPM by video duration band. This object can be empty.\",\"properties\":{\"cpm_21_60\":{\"type\":\"string\",\"description\":\"Sales-related estimated CPM for the 21–60 second video band, returned as a string.\"},\"cpm_60\":{\"type\":\"string\",\"description\":\"Sales-related estimated CPM for the over-60-second video band, returned as a string.\"}}},\"base_resp\":{\"type\":\"object\",\"description\":\"Status details included with the creator metrics.\",\"properties\":{\"status_code\":{\"type\":\"integer\",\"description\":\"Status code for the creator metrics. A zero value indicates success.\"},\"status_message\":{\"type\":\"string\",\"description\":\"Status message for the creator metrics. It can be empty.\"}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Invalid request parameters or body\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Invalid or inactive access token\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Permission denied\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Request rate or daily quota limit exceeded\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Internal server error\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Service temporarily unavailable\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"Global production API (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/douyin-xingtu/gw/api/data_sp/get_author_spread_info/v1\"")' />

<p>Returns Douyin Creator Marketplace (Xingtu) spread metrics for a creator, with channel, period, video-type, assignment, and flow filters. Use it to compare creator spread performance during campaign planning.</p>

## Parameters

<div class="api-doc-table api-doc-table--params">

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Yes | - | User authentication token. |
| <code>oAuthorId</code> | query | <code>string</code> | Yes | - | Author's unique ID. |
| <code>platform</code> | query | <code>string</code> | No | <code>SHORT_VIDEO</code> | Platform type.<br /><br><br>Available Values:<br /><br>- <code>SHORT_VIDEO</code>: Short video<br /><br>- <code>LIVE_STREAMING</code>: Live streaming<br /><br>- <code>PICTURE_TEXT</code>: Picture and text<br /><br>- <code>SHORT_DRAMA</code>: Short drama |
| <code>range</code> | query | <code>string</code> | No | <code>DAY_30</code> | Time range.<br /><br><br>Available Values:<br /><br>- <code>DAY_30</code>: Last 30 days<br /><br>- <code>DAY_90</code>: Last 90 days |
| <code>type</code> | query | <code>string</code> | No | <code>PERSONAL_VIDEO</code> | Video type.<br /><br><br>Available Values:<br /><br>- <code>PERSONAL_VIDEO</code>: Personal video<br /><br>- <code>XINTU_VIDEO</code>: Xingtu video |
| <code>onlyAssign</code> | query | <code>boolean</code> | No | <code>false</code> | Whether to only include assigned videos. |
| <code>flowType</code> | query | <code>string</code> | No | <code>EXCLUDE</code> | Flow type filter.<br /><br><br>Available Values:<br /><br>- <code>EXCLUDE</code>: Exclude<br /><br>- <code>INCLUDE</code>: Include |

</div>

## Code Samples

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/douyin-xingtu/gw/api/data_sp/get_author_spread_info/v1?token=YOUR_API_KEY&oAuthorId=VALUE'
```

```text [🤖 AI Prompt]
I want to use the "Spread Metrics (V1)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/douyin-xingtu/gw/api/data_sp/get_author_spread_info/v1?token=YOUR_API_KEY&oAuthorId=VALUE
API Endpoint: BASE_URL + /api/douyin-xingtu/gw/api/data_sp/get_author_spread_info/v1?token=YOUR_API_KEY&oAuthorId=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/douyin-creator-marketplace-xingtu/spread-metrics-v1-en.json

Parameters:
- token (query): User authentication token. (Required)
- oAuthorId (query): Author's unique ID. (Required)
- platform (query): Platform type.

Available Values:
- `SHORT_VIDEO`: Short video
- `LIVE_STREAMING`: Live streaming
- `PICTURE_TEXT`: Picture and text
- `SHORT_DRAMA`: Short drama
- range (query): Time range.

Available Values:
- `DAY_30`: Last 30 days
- `DAY_90`: Last 90 days
- type (query): Video type.

Available Values:
- `PERSONAL_VIDEO`: Personal video
- `XINTU_VIDEO`: Xingtu video
- onlyAssign (query): Whether to only include assigned videos.
- flowType (query): Flow type filter.

Available Values:
- `EXCLUDE`: Exclude
- `INCLUDE`: Include

Return format: safely handle JSON or text according to the actual Content-Type.

Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
   - 0: Success
   - 100: Invalid or Inactive Token
   - 301: Collection Failed. Please Retry.
   - 302: Rate Limit Exceeded
   - 303: Daily Quota Exceeded
   - 400: Invalid Parameters
   - 500: Internal Server Error
   - 600: Permission Denied
   - 601: Insufficient Balance
   - 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.

Please help me write a script in my preferred programming language to call this API and handle the response.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Provided by OpenAPI servers

url = BASE_URL + "/api/douyin-xingtu/gw/api/data_sp/get_author_spread_info/v1?token=YOUR_API_KEY&oAuthorId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/douyin-xingtu/gw/api/data_sp/get_author_spread_info/v1?token=YOUR_API_KEY&oAuthorId=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
        final String url = BASE_URL + "/api/douyin-xingtu/gw/api/data_sp/get_author_spread_info/v1?token=YOUR_API_KEY&oAuthorId=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // Provided by OpenAPI servers

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/douyin-xingtu/gw/api/data_sp/get_author_spread_info/v1?token=YOUR_API_KEY&oAuthorId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/douyin-xingtu/gw/api/data_sp/get_author_spread_info/v1?token=YOUR_API_KEY&oAuthorId=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/douyin-creator-marketplace-xingtu/spread-metrics-v1-en.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI Definition (JSON)]</a>
</div>

## Response Fields

Key fields in a successful response (`code = 0`).

<div class="api-doc-table api-doc-table--response">

| Field path | Type | Description |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | Creator reach and engagement metrics for the selected video type and time window. Metric groups may be absent or empty when figures are unavailable. |
| <code>data.item_num</code> | <code>string</code> | Number of videos in the selected period, returned as a string. |
| <code>data.play_mid</code> | <code>string</code> | Median number of plays per video, returned as a string. |
| <code>data.avg_duration</code> | <code>string</code> | Average video duration, returned as a string. The response does not specify the time unit. |
| <code>data.like_avg</code> | <code>string</code> | Average number of likes per video, returned as a string. |
| <code>data.comment_avg</code> | <code>string</code> | Average number of comments per video, returned as a string. |
| <code>data.share_avg</code> | <code>string</code> | Average number of shares per video, returned as a string. |
| <code>data.interact_rate</code> | <code>object</code> | Engagement rate and its comparison statistics, when available. |
| <code>data.interact_rate.label</code> | <code>string</code> | Comparison group label, when available. It can be empty. |
| <code>data.interact_rate.overtake</code> | <code>integer</code> | Raw integer comparison value. The response does not specify the scale. |
| <code>data.interact_rate.value</code> | <code>integer</code> | Raw integer engagement rate. The response does not specify the scale. |
| <code>data.play_over_rate</code> | <code>object</code> | Video completion rate and its comparison statistics, when available. |
| <code>data.play_over_rate.label</code> | <code>string</code> | Comparison group label, when available. It can be empty. |
| <code>data.play_over_rate.overtake</code> | <code>integer</code> | Raw integer comparison value. The response does not specify the scale. |
| <code>data.play_over_rate.value</code> | <code>integer</code> | Raw integer video completion rate. The response does not specify the scale. |
| <code>data.play_stability</code> | <code>object</code> | Playback stability and its comparison statistics, when available. |
| <code>data.play_stability.label</code> | <code>string</code> | Comparison group label, when available. It can be empty. |
| <code>data.play_stability.overtake</code> | <code>integer</code> | Raw integer comparison value. The response does not specify the scale. |
| <code>data.play_stability.value</code> | <code>integer</code> | Raw integer playback stability value. |
| <code>data.item_rate</code> | <code>object</code> | Video activity and engagement comparison metrics for the selected period. Each subgroup can be empty. |
| <code>data.item_rate.item_num</code> | <code>object</code> | Video count and its comparison statistics. |
| <code>data.item_rate.item_num.label</code> | <code>string</code> | Comparison group label, when available. It can be empty. |
| <code>data.item_rate.item_num.overtake</code> | <code>integer</code> | Raw integer comparison value. The response does not specify the scale. |
| <code>data.item_rate.item_num.value</code> | <code>integer</code> | Video count used for comparison, returned as an integer. |
| <code>data.item_rate.play_mid</code> | <code>object</code> | Median plays per video and its comparison statistics. |
| <code>data.item_rate.play_mid.label</code> | <code>string</code> | Comparison group label, when available. It can be empty. |
| <code>data.item_rate.play_mid.overtake</code> | <code>integer</code> | Raw integer comparison value. The response does not specify the scale. |
| <code>data.item_rate.play_mid.value</code> | <code>integer</code> | Median plays per video used for comparison, returned as an integer. |
| <code>data.item_rate.interact_rate</code> | <code>object</code> | Engagement-rate comparison in this group. This object can be empty. |
| <code>data.expect_cpe</code> | <code>object</code> | Estimated cost per engagement by video duration band. This object can be empty. |
| <code>data.expect_cpe.cpe_21_60</code> | <code>string</code> | Estimated cost per engagement for the 21–60 second video band, returned as a string. |
| <code>data.expect_cpe.cpe_60</code> | <code>string</code> | Estimated cost per engagement for the over-60-second video band, returned as a string. |
| <code>data.expect_cpm</code> | <code>object</code> | Estimated cost per thousand plays by video duration band. This object can be empty. |
| <code>data.expect_cpm.cpm_21_60</code> | <code>string</code> | Estimated cost per thousand plays for the 21–60 second video band, returned as a string. |
| <code>data.expect_cpm.cpm_60</code> | <code>string</code> | Estimated cost per thousand plays for the over-60-second video band, returned as a string. |
| <code>data.sales_expect_cpm</code> | <code>object</code> | Sales-related estimated CPM by video duration band. This object can be empty. |
| <code>data.sales_expect_cpm.cpm_21_60</code> | <code>string</code> | Sales-related estimated CPM for the 21–60 second video band, returned as a string. |
| <code>data.sales_expect_cpm.cpm_60</code> | <code>string</code> | Sales-related estimated CPM for the over-60-second video band, returned as a string. |
| <code>data.base_resp</code> | <code>object</code> | Status details included with the creator metrics. |
| <code>data.base_resp.status_code</code> | <code>integer</code> | Status code for the creator metrics. A zero value indicates success. |
| <code>data.base_resp.status_message</code> | <code>string</code> | Status message for the creator metrics. It can be empty. |

</div>

## Response Example

<ApiExampleSection :api='JSON.parse("\"/api/douyin-xingtu/gw/api/data_sp/get_author_spread_info/v1\"")' />

