腾讯互选公众号达人详情 API (V1)
接口健康状态
健康 可用 少量可用 基本不可用 暂无数据
正在加载健康状态…
检索已知创作者应用ID的QQ互选公众号创作者详细信息。用于在腾讯互选广告选择之前审查已入围的发布者。
请求参数
| 参数名 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
token | query | string | 是 | - | 用户鉴权令牌。 |
appId | query | string | 是 | - | 公众号达人 app ID。 |
代码示例
bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/qq-huxuan/cgi-bin/advertiser/mp_publisher/detail/v1?token=YOUR_API_KEY&appId=VALUE'text
我想使用 JustOneAPI 提供的“公众号达人详情 (V1)”接口。
接入地址: https://api.justoneapi.com。
接口路径: /api/qq-huxuan/cgi-bin/advertiser/mp_publisher/detail/v1?token=YOUR_API_KEY&appId=VALUE
接口地址: BASE_URL + /api/qq-huxuan/cgi-bin/advertiser/mp_publisher/detail/v1?token=YOUR_API_KEY&appId=VALUE
HTTP 方法: GET
身份验证: 在 URL 中传入 token 查询参数。
OpenAPI 定义: https://docs.justoneapi.com/openapi/qq-huxuan-creator-marketplace/official-account-creator-details-v1-zh.json
请求参数说明:
- token (query): 用户鉴权令牌。 (必填)
- appId (query): 公众号达人 app ID。 (必填)
返回格式: 请根据实际 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/detail/v1?token=YOUR_API_KEY&appId=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
const BASE_URL = "https://api.justoneapi.com"; // 由 OpenAPI servers 提供
const url = BASE_URL + "/api/qq-huxuan/cgi-bin/advertiser/mp_publisher/detail/v1?token=YOUR_API_KEY&appId=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
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/detail/v1?token=YOUR_API_KEY&appId=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
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/detail/v1?token=YOUR_API_KEY&appId=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
$BASE_URL = 'https://api.justoneapi.com'; // 由 OpenAPI servers 提供
$url = $BASE_URL . '/api/qq-huxuan/cgi-bin/advertiser/mp_publisher/detail/v1?token=YOUR_API_KEY&appId=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;
}返回字段
业务成功时(code = 0)的主要返回字段。
创作者资料19 个字段
data.publisher_info
公众号创作者的公开资料。
| 字段 | 类型 | 说明 |
|---|---|---|
appid | string | 创作者的微信公众号 App ID。 |
nickname | string | 微信公众号的显示昵称。 |
avatar | string | 微信公众号的头像地址。 |
category | string | 微信公众号展示的类目。 |
category_level1 | integer | 微信公众号返回的一级类目代码。 |
category_level2 | integer | 微信公众号返回的二级类目代码。 |
mcn_name | string | 关联 MCN 机构的名称,若有提供。 |
area | object | 微信公众号返回的地区标签。 |
area.province | string | 微信公众号的省份标签。 |
area.city | string | 微信公众号的城市标签。 |
finder_info | object | null | 关联的视频号账号,未提供时为 null。 |
finder_info.appid | string | 关联视频号账号返回的标识。 |
finder_info.nickname | string | 关联视频号账号的显示昵称。 |
article_top_weapp | array | 随创作者文章返回的小程序。 |
article_top_weapp[] | object | 一个关联的小程序。 |
article_top_weapp[].name | string | 小程序的显示名称。 |
article_top_weapp[].appid | string | 小程序的 App ID。 |
article_top_weapp[].icon | string | 小程序的图标地址。 |
is_finder_activated | integer | 微信公众号返回的关联视频号开通标记。 |
粉丝与发布指标13 个字段
data.publisher_info
| 字段 | 类型 | 说明 |
|---|---|---|
fans_num | integer | 公众号返回的粉丝数量。 |
fans_num_level | string | 微信公众号粉丝数的展示档位。 |
often_read_fans | integer | 微信公众号返回的常读粉丝数量。 |
often_read_fans_num | string | 常读粉丝数量的展示文本。 |
article_send_pv | integer | 微信公众号返回的文章发送计数。 |
ori_send_rate | integer | 微信公众号返回的原创发文比例值。 |
msg_cnt_30d | integer | 返回的近 30 天消息发布次数。 |
article_cnt_30d | integer | 返回的近 30 天文章数量。 |
last_post_date | string | 最近一次发布的时间,Unix 时间戳字符串,单位为秒。 |
last_article_create_time | string | 最近一篇文章创建的时间,Unix 时间戳字符串,单位为秒。 |
first_avg_fin_read_rate_rk | integer | 返回的头条文章平均完读率排名值。 |
often_read_fans_rate_rk | integer | 返回的常读粉丝比例排名值。 |
article_create_time_dist | string | 序列化为 JSON 字符串的文章创建小时分布,包含小时与文章数。 |
创作者文章指标16 个字段
data.publisher_info
| 字段 | 类型 | 说明 |
|---|---|---|
first_article_30d_metrics | object | 近 30 天头条文章的指标。 |
first_article_30d_metrics.mid_read_pv | string | 头条文章阅读次数的中位数,以字符串返回。 |
first_article_30d_metrics.avg_finished_read_rate | string | 头条文章平均完读率值,以字符串返回。 |
first_article_30d_metrics.avg_share_pv | string | 头条文章平均分享次数,以字符串返回。 |
articles_metrics | array | 按返回的文章类型和位置整理的指标。 |
articles_metrics[] | object | 一个文章类型和位置的指标组。 |
articles_metrics[].article_type | string | 此指标组返回的文章类型。 |
articles_metrics[].article_idx | string | 此指标组返回的文章位置。 |
articles_metrics[].metrics | object | 此文章类型和位置的指标。 |
articles_metrics[].metrics.avg_read_pv | string | 此指标组的平均阅读次数,以字符串返回。 |
articles_metrics[].metrics.mid_read_pv | string | 此指标组的阅读次数中位数,以字符串返回。 |
articles_metrics[].metrics.avg_zaikan_pv | string | 平均在看次数,以字符串返回。 |
articles_metrics[].metrics.avg_like_pv | string | 平均点赞次数,以字符串返回。 |
articles_metrics[].metrics.avg_share_pv | string | 平均分享次数,以字符串返回。 |
articles_metrics[].metrics.avg_comment_pv | string | 平均评论次数,以字符串返回。 |
articles_metrics[].metrics.avg_finished_read_rate | string | 平均完读率值,以字符串返回。 |
受众人口画像16 个字段
data.user_profile
微信公众号返回的整体受众画像。
| 字段 | 类型 | 说明 |
|---|---|---|
age | array | 受众年龄分布。 |
age[] | object | 一个带标签的分组条目。 |
age[].label | string | 此分组的显示标签。 |
age[].value | integer | 占比以整数返回,10000 表示 100%。 |
gender | array | 受众性别分布。 |
gender[] | object | 一个带标签的分组条目。 |
gender[].label | string | 此分组的显示标签。 |
gender[].value | integer | 占比以整数返回,10000 表示 100%。 |
device | array | 受众设备分布。 |
device[] | object | 一个带标签的分组条目。 |
device[].label | string | 此分组的显示标签。 |
device[].value | integer | 占比以整数返回,10000 表示 100%。 |
fans | array | 粉丝分组及返回的数量。 |
fans[] | object | 一个带标签的分组条目。 |
fans[].label | string | 此分组的显示标签。 |
fans[].value | integer | 此分组的粉丝数量。 |
受众地区与兴趣16 个字段
data.user_profile
| 字段 | 类型 | 说明 |
|---|---|---|
area | array | 返回的受众地区分组。 |
area[] | object | 一个带标签的分组条目。 |
area[].label | string | 此分组的显示标签。 |
area[].value | integer | 此分组返回的数值。 |
province | array | 返回的受众省份分组。 |
province[] | object | 一个带标签的分组条目。 |
province[].label | string | 此分组的显示标签。 |
province[].value | integer | 此分组返回的数值。 |
phone_brand | array | 返回的受众手机品牌分组。 |
phone_brand[] | object | 一个带标签的分组条目。 |
phone_brand[].label | string | 此分组的显示标签。 |
phone_brand[].value | integer | 此分组返回的数值。 |
interest | array | 返回的受众兴趣分组。 |
interest[] | object | 一个带标签的分组条目。 |
interest[].label | string | 此分组的显示标签。 |
interest[].value | integer | 此分组返回的数值。 |
读者人口与地区画像20 个字段
data.reader_profile
文章读者的整体画像。
| 字段 | 类型 | 说明 |
|---|---|---|
age | array | 读者年龄分布。 |
age[] | object | 一个带标签的分组条目。 |
age[].label | string | 此分组的显示标签。 |
age[].value | integer | 占比以整数返回,10000 表示 100%。 |
gender | array | 读者性别分布。 |
gender[] | object | 一个带标签的分组条目。 |
gender[].label | string | 此分组的显示标签。 |
gender[].value | integer | 占比以整数返回,10000 表示 100%。 |
device | array | 读者设备分布。 |
device[] | object | 一个带标签的分组条目。 |
device[].label | string | 此分组的显示标签。 |
device[].value | integer | 占比以整数返回,10000 表示 100%。 |
area | array | 读者地区分布。 |
area[] | object | 一个带标签的分组条目。 |
area[].label | string | 此分组的显示标签。 |
area[].value | integer | 占比以整数返回,10000 表示 100%。 |
province | array | 读者省份分布。 |
province[] | object | 一个带标签的分组条目。 |
province[].label | string | 此分组的显示标签。 |
province[].value | integer | 占比以整数返回,10000 表示 100%。 |
受众与读者标签10 个字段
data
| 字段 | 类型 | 说明 |
|---|---|---|
user_profile_tag | object | 整体受众画像的展示标签。 |
user_profile_tag.profile_tag | array | 整体画像摘要中展示的标签。 |
user_profile_tag.profile_tag[] | object | 一个带标签的分组条目。 |
user_profile_tag.profile_tag[].label | string | 此分组的显示标签。 |
user_profile_tag.profile_tag[].value | string | 此画像标签的显示值。 |
reader_profile_tag | object | 整体读者画像的展示标签。 |
reader_profile_tag.profile_tag | array | 整体画像摘要中展示的标签。 |
reader_profile_tag.profile_tag[] | object | 一个带标签的分组条目。 |
reader_profile_tag.profile_tag[].label | string | 此分组的显示标签。 |
reader_profile_tag.profile_tag[].value | string | 此画像标签的显示值。 |
平均阅读与分享8 个字段
data.avg_pv_data
按返回的标签分组的平均阅读与分享计数。
| 字段 | 类型 | 说明 |
|---|---|---|
avg_read_pv | array | 按标签分组的平均阅读次数。 |
avg_read_pv[] | object | 一个带标签的分组条目。 |
avg_read_pv[].label | string | 此分组的显示标签。 |
avg_read_pv[].value | integer | 此标签分组返回的计数。 |
avg_share_pv | array | 按标签分组的平均分享次数。 |
avg_share_pv[] | object | 一个带标签的分组条目。 |
avg_share_pv[].label | string | 此分组的显示标签。 |
avg_share_pv[].value | integer | 此标签分组返回的计数。 |
按文章位置划分的平均指标20 个字段
data.article_avg_data
按返回的文章位置划分的近 30 天平均指标。
| 字段 | 类型 | 说明 |
|---|---|---|
avg_read_pv_30d_idx | array | 按文章位置划分的平均阅读次数。 |
avg_read_pv_30d_idx[] | object | 一个带标签的分组条目。 |
avg_read_pv_30d_idx[].label | string | 此分组的显示标签。 |
avg_read_pv_30d_idx[].value | string | 以字符串返回的指标展示值。 |
avg_fin_read_rate_30d_idx | array | 按文章位置划分的平均完读率值。 |
avg_fin_read_rate_30d_idx[] | object | 一个带标签的分组条目。 |
avg_fin_read_rate_30d_idx[].label | string | 此分组的显示标签。 |
avg_fin_read_rate_30d_idx[].value | string | 以字符串返回的指标展示值。 |
avg_zaikan_cnt_30d_idx | array | 按文章位置划分的平均在看次数。 |
avg_zaikan_cnt_30d_idx[] | object | 一个带标签的分组条目。 |
avg_zaikan_cnt_30d_idx[].label | string | 此分组的显示标签。 |
avg_zaikan_cnt_30d_idx[].value | string | 以字符串返回的指标展示值。 |
avg_like_cnt_30d_idx | array | 按文章位置划分的平均点赞次数。 |
avg_like_cnt_30d_idx[] | object | 一个带标签的分组条目。 |
avg_like_cnt_30d_idx[].label | string | 此分组的显示标签。 |
avg_like_cnt_30d_idx[].value | string | 以字符串返回的指标展示值。 |
avg_comment_cnt_30d_idx | array | 按文章位置划分的平均评论次数。 |
avg_comment_cnt_30d_idx[] | object | 一个带标签的分组条目。 |
avg_comment_cnt_30d_idx[].label | string | 此分组的显示标签。 |
avg_comment_cnt_30d_idx[].value | string | 以字符串返回的指标展示值。 |
近期文章摘要3 个字段
data.near_articles
此创作者的近期文章条目和阅读摘要。
| 字段 | 类型 | 说明 |
|---|---|---|
avg_read_count | string | 近期文章平均阅读数,以字符串返回。 |
top_read_count | string | 近期文章最高阅读数,以字符串返回。 |
stat | array | 此结果包含的近期文章。 |
近期文章资料7 个字段
data.near_articles.stat[]
一条带有计数的近期文章条目。
| 字段 | 类型 | 说明 |
|---|---|---|
aid | string | 近期文章条目返回的文章 ID。 |
idx | integer | 此文章返回的位置索引。 |
title | string | 此文章的显示标题。 |
url | string | 此条目返回的文章地址。 |
cover_url | string | 此文章返回的封面图片地址。 |
publish_time | string | 文章发布时间,Unix 时间戳字符串,单位为秒。 |
article_type | integer | 此条目返回的文章类型代码。 |
近期文章互动指标5 个字段
data.near_articles.stat[]
| 字段 | 类型 | 说明 |
|---|---|---|
read_count | string | 文章阅读数,以字符串返回。 |
fav_count | string | 文章收藏数,以字符串返回。 |
share_count | string | 文章分享数,以字符串返回。 |
like_count | string | 文章点赞数,以字符串返回。 |
comment_count | string | 文章评论数,以字符串返回。 |
响应状态2 个字段
data
QQ 互选公众号创作者资料及文章汇总指标。
| 字段 | 类型 | 说明 |
|---|---|---|
ret | integer | 创作者详情响应返回的状态代码。 |
msg | string | 创作者详情响应返回的状态提示。 |
响应示例
正在加载响应示例…