騰訊互選視頻號達人搜索 API (V1)
API 端點健康狀態
健康 可用 少量可用 基本不可用 暫無資料
正在載入健康狀態…
通過可選暱稱關鍵詞和頁碼分頁搜索或瀏覽QQ互選視頻號創作者。用於發現和篩選視頻創作者,以進行騰訊互選廣告策劃。
請求參數
| 參數名 | 位置 | 類型 | 必填 | 預設值 | 說明 |
|---|---|---|---|---|---|
token |
query | string |
是 | - | 用戶鑑權令牌。 |
keyword |
query | string |
否 | |
達人暱稱關鍵詞。留空則瀏覽預設市場列表。 |
page |
query | integer |
否 | 1 |
頁碼。第一頁為 1。 |
程式碼範例
bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/qq-huxuan/cgi-bin/advertiser/finder_publisher/search/v1?token=YOUR_API_KEY'
text
我想使用 JustOneAPI 提供的“視頻號達人搜索 (V1)”接口。
接入地址: https://api.justoneapi.com。
接口路徑: /api/qq-huxuan/cgi-bin/advertiser/finder_publisher/search/v1?token=YOUR_API_KEY
接口地址: BASE_URL + /api/qq-huxuan/cgi-bin/advertiser/finder_publisher/search/v1?token=YOUR_API_KEY
HTTP 方法: GET
身份驗證: 在 URL 中傳入 token 查詢參數。
OpenAPI 定義: https://docs.justoneapi.com/openapi/qq-huxuan-creator-marketplace/video-account-creator-search-v1-zh-hant.json
請求參數說明:
- token (query): 用戶鑑權令牌。 (必填)
- keyword (query): 達人暱稱關鍵詞。留空則瀏覽預設市場列表。
- page (query): 頁碼。第一頁為 1。
返回格式: 請根據實際 Content-Type 安全處理 JSON 或文本回應。
回應處理與錯誤代碼:
1. 需通過返回體中的 "code" 欄位判斷業務結果(code 為 0 表示成功)。
2. 逾時建議:建議將請求逾時時間設置為 120 秒;如果 120 秒偏長,請至少設置為 60 秒,但可能會有少量請求因逾時而未接收到結果。
3. 業務碼說明:
- 0: 成功
- 100: Token 無效或已失效
- 301: 採集失敗,請重試
- 302: 超出速率限制
- 303: 超出每日配額
- 400: 參數錯誤
- 500: 內部伺服器錯誤
- 600: 權限不足
- 601: 帳戶餘額不足
- 602: TOKEN 限額超限
4. code 601 表示帳戶共享餘額不足。code 602 表示當前 API TOKEN 自身的累計消費上限已達到。TOKEN 限額不是資金劃撥,多個 TOKEN 仍共享同一個帳戶餘額。
請幫我用我擅長的編程語言寫一個腳本來呼叫這個接口,並處理返回結果。
python
import requests
BASE_URL = "https://api.justoneapi.com" # 由 OpenAPI servers 提供
url = BASE_URL + "/api/qq-huxuan/cgi-bin/advertiser/finder_publisher/search/v1?token=YOUR_API_KEY"
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
const BASE_URL = "https://api.justoneapi.com"; // 由 OpenAPI servers 提供
const url = BASE_URL + "/api/qq-huxuan/cgi-bin/advertiser/finder_publisher/search/v1?token=YOUR_API_KEY";
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
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"; // 由 OpenAPI servers 提供
final String url = BASE_URL + "/api/qq-huxuan/cgi-bin/advertiser/finder_publisher/search/v1?token=YOUR_API_KEY";
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
package main
import (
"fmt"
"io"
"os"
"strings"
"net/http"
"time"
)
const BASE_URL = "https://api.justoneapi.com" // 由 OpenAPI servers 提供
func main() {
client := &http.Client{Timeout: 120 * time.Second}
url := BASE_URL + "/api/qq-huxuan/cgi-bin/advertiser/finder_publisher/search/v1?token=YOUR_API_KEY"
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
$BASE_URL = 'https://api.justoneapi.com'; // 由 OpenAPI servers 提供
$url = $BASE_URL . '/api/qq-huxuan/cgi-bin/advertiser/finder_publisher/search/v1?token=YOUR_API_KEY';
$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;
}
返回欄位
業務成功時(code = 0)的主要返回欄位。
結果與分頁4 個欄位
data
| 欄位 | 類型 | 說明 |
|---|---|---|
total_num |
integer |
搜索返回的達人結果總數。 |
ret |
integer |
搜索結果內部返回的狀態碼。 |
msg |
string |
搜索結果內部返回的狀態消息。 |
item |
array |
請求頁返回的視頻號達人列表。 |
達人資料16 個欄位
data.item[]
| 欄位 | 類型 | 說明 |
|---|---|---|
appid |
string |
視頻號達人應用 ID。查詢達人詳情或近期視頻時,可將其作為 appId 使用。 |
nickname |
string |
視頻號達人的公開顯示名稱。 |
avatar |
string |
達人公開頭像連結。 |
synopsis |
string |
達人的公開簡介,可以為空字符串。 |
city_label |
string |
返回的達人城市或地區標籤。 |
auth_company |
string |
達人帳號認證中返回的公司標籤。 |
auth_profession |
string |
達人帳號認證中返回的職業標籤。 |
identity_type |
string |
返回的達人身份類型標籤。 |
identity_level1 |
string |
達人身份的一級類目標籤。 |
identity_level2 |
string |
達人身份的二級類目標籤。 |
mcn_name |
string |
可用時返回達人所屬 MCN 機構名稱。 |
category_level1 |
integer |
返回的達人一級類目 ID。 |
category_level2 |
integer |
返回的達人二級類目 ID。 |
mcn_id |
integer |
返回的達人所屬 MCN 機構 ID。 |
tags |
array |
返回的達人標籤 ID 列表。 |
tags[] |
integer |
- |
粉絲與受衆10 個欄位
data.item[]
| 欄位 | 類型 | 說明 |
|---|---|---|
fans_num_level |
string |
返回的粉絲數量檔位,以展示文本表示。 |
fans_num_increment |
string |
返回的粉絲數量變化,以展示文本表示。 |
fans_num_growth_range |
string |
返回的粉絲增長範圍,以展示文本表示。 |
top_interest_name |
string |
返回的受衆主要興趣標籤。 |
top_phone_brand |
string |
返回的受衆最常用手機品牌標籤。 |
fans_num_growth_rate |
integer |
返回的粉絲增長率數值,以整數表示。 |
fans_num_growth_rate_pct_rk |
integer |
返回的粉絲增長率百分位排名。 |
top_interest_rate |
integer |
返回的主要受衆興趣所佔比例數值。 |
top_phone_brand_rate |
integer |
返回的主要手機品牌所佔比例數值。 |
social_friend_view_ratio |
integer |
返回的好友來源觀看佔比數值。 |
內容與互動18 個欄位
data.item[]
| 欄位 | 類型 | 說明 |
|---|---|---|
avg_read_count |
string |
返回的視頻平均播放量,以展示文本表示。 |
median_read_count |
string |
返回的視頻播放量中位數,以展示文本表示。 |
avg_interaction_count |
string |
返回的平均互動量,以展示文本表示。 |
avg_like_count |
string |
返回的平均點贊量,以展示文本表示。 |
avg_heart_pv |
string |
返回的平均愛心量,以展示文本表示。 |
avg_comment_pv |
string |
返回的平均評論量,以展示文本表示。 |
avg_fav_pv |
string |
返回的平均收藏量,以展示文本表示。 |
avg_share_pv |
string |
返回的平均分享量,以展示文本表示。 |
like_rate |
string |
返回的達人點贊率,以文本表示。 |
share_rate |
string |
返回的達人分享率,以文本表示。 |
interaction_rate |
integer |
返回的互動率數值,以整數表示。 |
interaction_rate_pct_rk |
integer |
返回的互動率百分位排名。 |
play_finish_rate |
integer |
返回的播放完成率數值,以整數表示。 |
play_finish_rate_pct_rk |
integer |
返回的播放完成率百分位排名。 |
is_post_video_15d |
integer |
返回的近 15 天是否發佈視頻的標記。 |
avg_forward_uv |
number |
返回的平均轉發用戶數。 |
avg_like_uv |
number |
返回的平均點贊用戶數。 |
avg_like_recommend_vv |
number |
返回的點贊推薦相關平均播放量。 |
合作訂單表現13 個欄位
data.item[]
| 欄位 | 類型 | 說明 |
|---|---|---|
order_avg_read_count |
string |
返回的合作訂單視頻平均播放量,以展示文本表示。 |
order_avg_median_read_count |
string |
返回的合作訂單視頻播放量中位數指標,以展示文本表示。 |
order_interaction_count |
string |
返回的合作訂單互動量,以展示文本表示。 |
order_avg_comment_pv |
string |
返回的合作訂單平均評論量,以展示文本表示。 |
order_avg_fav_pv |
string |
返回的合作訂單平均收藏量,以展示文本表示。 |
order_avg_heart_pv |
string |
返回的合作訂單平均愛心量,以展示文本表示。 |
order_avg_share_pv |
string |
返回的合作訂單平均分享量,以展示文本表示。 |
aid_heart_rate |
string |
返回的合作視頻愛心率,以文本表示。 |
aid_interaction_rate |
string |
返回的合作視頻互動率,以文本表示。 |
aid_share_rate |
string |
返回的合作視頻分享率,以文本表示。 |
order_cnt |
integer |
返回的合作訂單數。 |
order_interaction_rate |
integer |
返回的合作訂單互動率數值,以整數表示。 |
order_play_finish_rate |
integer |
返回的合作訂單播放完成率數值,以整數表示。 |
報價與成本9 個欄位
data.item[]
| 欄位 | 類型 | 說明 |
|---|---|---|
short_video_price |
string |
返回的短視頻報價,以文本表示。 |
long_video_price |
string |
返回的長視頻報價,以文本表示。 |
ader_short_video_price |
string |
返回的廣告主端短視頻報價,以文本表示。 |
ader_long_video_price |
string |
返回的廣告主端長視頻報價,以文本表示。 |
live_combo_price |
string |
返回的直播套餐報價,以文本表示。 |
expected_cpe |
string |
返回的預估單次互動成本,以文本表示。 |
order_avg_cpm |
string |
返回的合作訂單平均 CPM,以文本表示。 |
order_cpm |
integer |
返回的合作訂單 CPM 數值。 |
expected_cpm |
integer |
返回的預估 CPM 數值。 |
達人指數與類目對比26 個欄位
data.item[]
| 欄位 | 類型 | 說明 |
|---|---|---|
index_composite |
string |
返回的達人綜合指數,以展示文本表示。 |
propagation_index |
integer |
返回的達人傳播指數數值。 |
cooperation_index |
integer |
返回的達人合作指數數值。 |
cost_effectiveness_index |
integer |
返回的達人成本效益指數數值。 |
social_interaction_index |
integer |
返回的達人社交互動指數數值。 |
social_index |
number |
返回的達人社交指數數值。 |
index_content |
string |
返回的達人內容指數,以展示文本表示。 |
index_category_content |
string |
返回的內容指數類目基準值,以文本表示。 |
index_category_content_rank |
string |
返回的內容指數類目排名,以展示文本表示。 |
index_compare_content |
string |
返回的內容指數對比值,以展示文本表示。 |
index_cooperation |
string |
返回的達人合作指數,以展示文本表示。 |
index_category_cooperation |
string |
返回的合作指數類目基準值,以文本表示。 |
index_category_cooperation_rank |
string |
返回的合作指數類目排名,以展示文本表示。 |
index_compare_cooperation |
string |
返回的合作指數對比值,以展示文本表示。 |
index_cost |
string |
返回的達人成本指數,以展示文本表示。 |
index_category_cost |
string |
返回的成本指數類目基準值,以文本表示。 |
index_category_cost_rank |
string |
返回的成本指數類目排名,以展示文本表示。 |
index_compare_cost |
string |
返回的成本指數對比值,以展示文本表示。 |
index_growth |
string |
返回的達人成長指數,以展示文本表示。 |
index_category_growth |
string |
返回的成長指數類目基準值,以文本表示。 |
index_category_growth_rank |
string |
返回的成長指數類目排名,以展示文本表示。 |
index_compare_growth |
string |
返回的成長指數對比值,以展示文本表示。 |
index_social |
string |
返回的達人社交指數,以展示文本表示。 |
index_category_social |
string |
返回的社交指數類目基準值,以文本表示。 |
index_category_social_rank |
string |
返回的社交指數類目排名,以展示文本表示。 |
index_compare_social |
string |
返回的社交指數對比值,以展示文本表示。 |
組件資料6 個欄位
data.item[]
| 欄位 | 類型 | 說明 |
|---|---|---|
component_metrics |
array |
按視頻組件類目分組的表現資料,可以為空數組。 |
component_metrics[] |
object |
- |
component_metrics[].category |
string |
視頻組件的類目。 |
component_metrics[].video_count |
string |
該組件類目返回的視頻數量,以展示文本表示。 |
component_metrics[].click_avg |
number |
該組件類目返回的平均點擊量。 |
component_metrics[].click_rate |
number |
該組件類目返回的點擊率數值。 |
回應示例
正在載入回應範例…