腾讯互选公众号达人搜索 API (V1)
接口健康状态
健康 可用 少量可用 基本不可用 暂无数据
正在加载健康状态…
按关键词、原生类目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.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 | 粉丝画像标签条目。已核验的搜索结果返回空列表。 |
响应示例
正在加载响应示例…