騰訊互選公衆號達人搜索 API (V1)
API 端點健康狀態
健康 可用 少量可用 基本不可用 暫無資料
正在載入健康狀態…
按關鍵詞、原生類目ID或舊版類目名稱以及覆蓋完整預設檔位的粉絲數上下限搜索QQ互選公衆號創作者,並支持頁碼分頁。可用於篩選發佈者以進行活動策劃。
請求參數
| 參數名 | 位置 | 類型 | 必填 | 預設值 | 說明 |
|---|---|---|---|---|---|
token |
query | string |
是 | - | 用戶鑑權令牌。 |
keyword |
query | string |
否 | |
達人暱稱或帳號關鍵詞。留空則瀏覽預設市場列表。 |
page |
query | integer |
否 | 1 |
頁碼。第一頁為 1。 |
creatorTypes |
query | array |
否 | - | 逗號分隔的原生二級類目ID,例如102813。也接受舊版類目名稱;一級類目名稱包含其子類目。不設置則包含所有類目。 |
fansMin |
query | integer |
否 | - | 包含粉絲數下限。允許的起始值:0、5000、10000、20000、50000、100000、500000、1000000。需與fansMax一起提供;兩者均不設置則無粉絲數篩選。 |
fansMax |
query | integer |
否 | - | 包含粉絲數上限,且不小於fansMin。允許的結束值:4999、9999、19999、49999、99999、499999、999999、4294967295。該範圍必須覆蓋完整的預設檔位。需與fansMin一起提供。 |
程式碼範例
bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/qq-huxuan/cgi-bin/advertiser/mp_publisher/search/v1?token=YOUR_API_KEY'
text
我想使用 JustOneAPI 提供的“公衆號達人搜索 (V1)”接口。
接入地址: https://api.justoneapi.com。
接口路徑: /api/qq-huxuan/cgi-bin/advertiser/mp_publisher/search/v1?token=YOUR_API_KEY
接口地址: BASE_URL + /api/qq-huxuan/cgi-bin/advertiser/mp_publisher/search/v1?token=YOUR_API_KEY
HTTP 方法: GET
身份驗證: 在 URL 中傳入 token 查詢參數。
OpenAPI 定義: https://docs.justoneapi.com/openapi/qq-huxuan-creator-marketplace/official-account-creator-search-v1-zh-hant.json
請求參數說明:
- token (query): 用戶鑑權令牌。 (必填)
- keyword (query): 達人暱稱或帳號關鍵詞。留空則瀏覽預設市場列表。
- page (query): 頁碼。第一頁為 1。
- creatorTypes (query): 逗號分隔的原生二級類目ID,例如102813。也接受舊版類目名稱;一級類目名稱包含其子類目。不設置則包含所有類目。
- fansMin (query): 包含粉絲數下限。允許的起始值:0、5000、10000、20000、50000、100000、500000、1000000。需與fansMax一起提供;兩者均不設置則無粉絲數篩選。
- fansMax (query): 包含粉絲數上限,且不小於fansMin。允許的結束值:4999、9999、19999、49999、99999、499999、999999、4294967295。該範圍必須覆蓋完整的預設檔位。需與fansMin一起提供。
返回格式: 請根據實際 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/mp_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/mp_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/mp_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/mp_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/mp_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
騰訊互選公衆號達人搜索結果和返回的總數。
| 欄位 | 類型 | 說明 |
|---|---|---|
ret |
integer |
達人搜索返回的狀態碼。 |
msg |
string |
達人搜索返回的狀態說明。 |
item |
array |
本次搜索頁返回的達人條目。 |
total_num |
integer |
搜索返回的匹配達人數。 |
公開帳號資料與類目16 個欄位
data.item[]
搜索返回的一位公衆號達人。
| 欄位 | 類型 | 說明 |
|---|---|---|
appid |
string |
微信公衆號應用標識。 |
nickname |
string |
公衆號展示的公開暱稱。 |
avatar |
string |
公衆號返回的公開頭像圖片連結。 |
fans_num |
integer |
公衆號返回的粉絲數量。 |
score |
number |
搜索返回的達人數字評分。 |
qr_code |
string |
公衆號返回的二維碼圖片連結。 |
tags |
array |
達人關聯的類目和標籤代碼。 |
tags[] |
integer |
一個數字標籤代碼。 |
fans_num_level |
string |
公衆號返回的粉絲量區間展示文字。 |
wx_name |
string |
公衆號返回的公開微信號。 |
category_level1 |
integer |
達人返回的一級類目代碼。 |
category_level2 |
integer |
達人返回的二級類目代碼。 |
area |
object | null |
公衆號返回的地區名稱,不可用時為 null。 |
area.province |
string |
公衆號返回的省份名稱。 |
area.city |
string |
公衆號返回的城市名稱。 |
is_finder_activated |
integer |
微信視頻號激活狀態的數字標記。 |
索引報價與曝光次數24 個欄位
data.item[]
| 欄位 | 類型 | 說明 |
|---|---|---|
price |
array |
達人返回的通用報價條目。 |
price[] |
object |
一條帶索引鍵的指標或報價記錄。 |
price[].key |
string |
該條目返回的索引鍵文本。 |
price[].value |
integer |
該條目返回的整數報價。 |
advertorial_price |
array |
軟文合作形式的索引報價。 |
advertorial_price[] |
object |
一條帶索引鍵的指標或報價記錄。 |
advertorial_price[].key |
string |
該條目返回的索引鍵文本。 |
advertorial_price[].value |
integer |
該條目返回的整數報價。 |
specified_price |
array |
指定合作形式的索引報價。 |
specified_price[] |
object |
一條帶索引鍵的指標或報價記錄。 |
specified_price[].key |
string |
該條目返回的索引鍵文本。 |
specified_price[].value |
integer |
該條目返回的整數報價。 |
collection_price |
array |
collection 合作形式的索引報價。 |
collection_price[] |
object |
一條帶索引鍵的指標或報價記錄。 |
collection_price[].key |
string |
該條目返回的索引鍵文本。 |
collection_price[].value |
integer |
該條目返回的整數報價。 |
image_price |
array |
圖片合作形式的索引報價。 |
image_price[] |
object |
一條帶索引鍵的指標或報價記錄。 |
image_price[].key |
string |
該條目返回的索引鍵文本。 |
image_price[].value |
integer |
該條目返回的整數報價。 |
promised_impress |
array |
達人返回的索引承諾曝光次數。 |
promised_impress[] |
object |
一條帶索引鍵的指標或報價記錄。 |
promised_impress[].key |
string |
該條目返回的索引鍵文本。 |
promised_impress[].value |
integer |
該版位返回的承諾曝光次數。 |
分合作形式的版位報價25 個欄位
data.item[]
| 欄位 | 類型 | 說明 |
|---|---|---|
price_list |
object |
按合作形式分組的版位報價。 |
price_list.advertorial |
array |
軟文合作形式的版位報價。 |
price_list.advertorial[] |
object |
該合作形式的一條版位報價。 |
price_list.advertorial[].item_idx |
integer |
該報價返回的數字版位索引。 |
price_list.advertorial[].publisher_price |
integer |
創作者側返回的整數報價。 |
price_list.advertorial[].advertiser_price |
integer |
廣告主側返回的整數報價。 |
price_list.advertorial[].promised_impress |
integer |
該版位返回的承諾曝光次數。 |
price_list.specified |
array |
指定合作形式的版位報價。 |
price_list.specified[] |
object |
該合作形式的一條版位報價。 |
price_list.specified[].item_idx |
integer |
該報價返回的數字版位索引。 |
price_list.specified[].publisher_price |
integer |
創作者側返回的整數報價。 |
price_list.specified[].advertiser_price |
integer |
廣告主側返回的整數報價。 |
price_list.specified[].promised_impress |
integer |
該版位返回的承諾曝光次數。 |
price_list.collection |
array |
collection 合作形式的版位報價。 |
price_list.collection[] |
object |
該合作形式的一條版位報價。 |
price_list.collection[].item_idx |
integer |
該報價返回的數字版位索引。 |
price_list.collection[].publisher_price |
integer |
創作者側返回的整數報價。 |
price_list.collection[].advertiser_price |
integer |
廣告主側返回的整數報價。 |
price_list.collection[].promised_impress |
integer |
該版位返回的承諾曝光次數。 |
price_list.image |
array |
圖片合作形式的版位報價。 |
price_list.image[] |
object |
該合作形式的一條版位報價。 |
price_list.image[].item_idx |
integer |
該報價返回的數字版位索引。 |
price_list.image[].publisher_price |
integer |
創作者側返回的整數報價。 |
price_list.image[].advertiser_price |
integer |
廣告主側返回的整數報價。 |
price_list.image[].promised_impress |
integer |
該版位返回的承諾曝光次數。 |
文章發佈與常讀粉絲7 個欄位
data.item[]
| 欄位 | 類型 | 說明 |
|---|---|---|
article_send_pv |
integer |
平台返回的文章發送量。 |
ori_send_rate |
integer |
返回的原創內容發佈率數值。 |
article_cnt_30d |
integer |
返回的近 30 天文章發佈數量。 |
last_article_create_time |
string |
最新文章的創建時間,以 Unix 秒級時間戳字符串返回。已覈驗的無時間戳記錄返回字符串 0。 |
often_read_fans |
integer |
常讀粉絲指標的返回數值。 |
often_read_fans_num |
integer |
返回的常讀粉絲數量。 |
often_read_fans_rate |
number |
常讀粉絲比率,保留回應中的數值表示。 |
閱讀與互動指標38 個欄位
data.item[]
| 欄位 | 類型 | 說明 |
|---|---|---|
first_advertorial_read_price |
number |
返回的首條軟文版位閱讀價格指標。 |
avg_read_pv_30d_idx |
array |
按索引返回的近 30 天平均閱讀量。 |
avg_read_pv_30d_idx[] |
object |
一條帶索引鍵的指標或報價記錄。 |
avg_read_pv_30d_idx[].key |
string |
該條目返回的索引鍵文本。 |
avg_read_pv_30d_idx[].value |
integer |
該索引返回的平均閱讀量。 |
avg_fin_read_rate_30d_idx |
array |
按索引返回的近 30 天平均完讀率。 |
avg_fin_read_rate_30d_idx[] |
object |
一條帶索引鍵的指標或報價記錄。 |
avg_fin_read_rate_30d_idx[].key |
string |
該條目返回的索引鍵文本。 |
avg_fin_read_rate_30d_idx[].value |
integer |
該索引返回的平均完讀率數值。 |
avg_zaikan_cnt_30d_idx |
array |
按索引返回的近 30 天平均在看次數。 |
avg_zaikan_cnt_30d_idx[] |
object |
一條帶索引鍵的指標或報價記錄。 |
avg_zaikan_cnt_30d_idx[].key |
string |
該條目返回的索引鍵文本。 |
avg_zaikan_cnt_30d_idx[].value |
integer |
該索引返回的平均在看次數。 |
avg_like_cnt_30d_idx |
array |
按索引返回的近 30 天平均點贊數。 |
avg_like_cnt_30d_idx[] |
object |
一條帶索引鍵的指標或報價記錄。 |
avg_like_cnt_30d_idx[].key |
string |
該條目返回的索引鍵文本。 |
avg_like_cnt_30d_idx[].value |
integer |
該索引返回的平均點贊數。 |
avg_comment_cnt_30d_idx |
array |
按索引返回的近 30 天平均評論數。 |
avg_comment_cnt_30d_idx[] |
object |
一條帶索引鍵的指標或報價記錄。 |
avg_comment_cnt_30d_idx[].key |
string |
該條目返回的索引鍵文本。 |
avg_comment_cnt_30d_idx[].value |
integer |
該索引返回的平均評論數。 |
avg_share_pv |
array |
按索引返回的平均分享指標。 |
avg_share_pv[] |
object |
一條帶索引鍵的指標或報價記錄。 |
avg_share_pv[].key |
string |
該條目返回的索引鍵文本。 |
avg_share_pv[].value |
integer |
該索引返回的平均分享指標。 |
first_article_30d_metrics |
object | null |
近 30 天首條文章指標,不可用時為 null。 |
first_article_30d_metrics.mid_read_pv |
string |
返回的閱讀量中位數文本。 |
first_article_30d_metrics.expected_cpr |
string |
返回的預計單次閱讀成本,以文本表示。 |
first_article_30d_metrics.avg_finished_read_rate |
string |
返回的平均完讀率文本。 |
first_article_30d_metrics.avg_share_pv |
string |
返回的平均分享指標文本。 |
mp_publisher_metrics |
object |
公衆號的整體指標,以展示文字返回。 |
mp_publisher_metrics.avg_read_pv |
string |
平均閱讀量的展示文字。 |
mp_publisher_metrics.mid_read_pv |
string |
閱讀量中位數的展示文字。 |
mp_publisher_metrics.avg_zaikan_pv |
string |
平均在看次數的展示文字。 |
mp_publisher_metrics.avg_like_pv |
string |
平均點贊數的展示文字。 |
mp_publisher_metrics.avg_share_pv |
string |
平均分享指標的展示文字。 |
mp_publisher_metrics.avg_comment_pv |
string |
平均評論數的展示文字。 |
mp_publisher_metrics.avg_finished_read_rate |
string |
平均完讀率的展示文字。 |
文章與粉絲畫像8 個欄位
data.item[]
| 欄位 | 類型 | 說明 |
|---|---|---|
articles |
array |
達人返回的文章條目。已覈驗的搜索結果返回空列表。 |
profile_age |
array |
粉絲年齡畫像條目。已覈驗的搜索結果返回空列表。 |
profile_gender |
array |
粉絲性別畫像條目。已覈驗的搜索結果返回空列表。 |
profile_device |
array |
粉絲設備畫像條目。已覈驗的搜索結果返回空列表。 |
profile_city |
array |
粉絲城市畫像條目。已覈驗的搜索結果返回空列表。 |
profile_province |
array |
粉絲省份畫像條目。已覈驗的搜索結果返回空列表。 |
profile_phone_brand |
array |
粉絲手機品牌畫像條目。已覈驗的搜索結果返回空列表。 |
profile_tag |
array |
粉絲畫像標籤條目。已覈驗的搜索結果返回空列表。 |
回應示例
正在載入回應範例…