WeChat Channels Account Search API (V2)
Searches WeChat Channels account-related records by keyword using the direct Channels lookup. Use it to discover creator accounts and related channel objects without pagination input.
Parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
token | query | string | Yes | - | Access token for this API service. |
keyword | query | string | Yes | - | Search keyword used to find WeChat Channels accounts and related video objects. |
Code Samples
curl --max-time 120 -X POST 'https://api.justoneapi.com/api/weixin-channels/search-account/v2?token=YOUR_API_KEY&keyword=VALUE'I want to use the "Account Search (V2)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/weixin-channels/search-account/v2?token=YOUR_API_KEY&keyword=VALUE
API Endpoint: BASE_URL + /api/weixin-channels/search-account/v2?token=YOUR_API_KEY&keyword=VALUE
HTTP Method: POST
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/wechat-channels/account-search-v2-en.json
Parameters:
- token (query): Access token for this API service. (Required)
- keyword (query): Search keyword used to find WeChat Channels accounts and related video objects. (Required)
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.import requests
BASE_URL = "https://api.justoneapi.com" # Provided by OpenAPI servers
url = BASE_URL + "/api/weixin-channels/search-account/v2?token=YOUR_API_KEY&keyword=VALUE"
response = requests.post(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")const BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/weixin-channels/search-account/v2?token=YOUR_API_KEY&keyword=VALUE";
const response = await fetch(url, {
method: "POST",
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`);
}
}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/weixin-channels/search-account/v2?token=YOUR_API_KEY&keyword=VALUE";
HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
HttpRequest.Builder builder = HttpRequest.newBuilder()
.uri(URI.create(url))
.timeout(Duration.ofSeconds(120))
.method("POST", 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");
}
}
}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/weixin-channels/search-account/v2?token=YOUR_API_KEY&keyword=VALUE"
req, _ := http.NewRequest("POST", 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
$BASE_URL = 'https://api.justoneapi.com'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/weixin-channels/search-account/v2?token=YOUR_API_KEY&keyword=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, "POST");
$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;
}Response Fields
Key fields in a successful response (code = 0).
Search results3 fields
data
Matched accounts and related video objects returned by WeChat Channels search.
| Field | Type | Description |
|---|---|---|
v2_info_list | array | Accounts matched by the search. |
video_object_list | array | Video objects returned alongside the matched accounts. |
continue_flag | integer | Continuation indicator reported with the results. Search Account V2 accepts keyword as its search input. |
Matched account card2 fields
data.v2_info_list[]
One matched account card.
| Field | Type | Description |
|---|---|---|
highlight_nickname | string | Highlighted nickname as returned for this account search result. |
highlight_profession | string | Highlighted verification or profession text, when populated. |
Matched account profile14 fields
data.v2_info_list[].contact
Public profile information for the matched Channels account.
| Field | Type | Description |
|---|---|---|
username | string | String identifier of the WeChat Channels account. |
nickname | string | Display nickname of the WeChat Channels account. |
head_url | string | Avatar URL for this Channels account. |
cover_img_url | string | Profile cover image URL for this account, when supplied. |
status | string | Account status label reported by WeChat Channels. |
auth_info | object | Public account verification information. |
auth_info.auth_icon_type | integer | Verification icon type code reported for this account. |
auth_info.auth_profession | string | Verification or profession text shown on the profile. |
auth_info.auth_icon_url | string | Image URL of the verification icon. |
auth_info.app_name | string | Application name associated with the displayed verification. |
ext_info | object | Location labels displayed in the account profile, when supplied. |
ext_info.country | string | Country or region label in the displayed account profile. |
ext_info.province | string | Province or state label in the displayed account profile. |
ext_info.city | string | City label in the displayed account profile. |
Related public accounts10 fields
data.v2_info_list[].contact
| Field | Type | Description |
|---|---|---|
bind_info | array | Public account associations reported for this Channels profile. |
bind_info[] | object | One account association. |
bind_info[].bind_type | integer | Type code of the account association. |
bind_info[].biz_info | object | Related public-account information, when supplied. |
bind_info[].biz_info.info | array | Public accounts associated with this profile. |
bind_info[].biz_info.info[] | object | One related public account. |
bind_info[].biz_info.info[].biz_username | string | String identifier of the associated public account. |
bind_info[].biz_info.info[].biz_nickname | string | Display nickname of the associated public account. |
bind_info[].biz_info.info[].head_img_url | string | Avatar URL of the associated public account. |
bind_info[].biz_info.info[].service_type_name | string | Displayed service type of the associated public account. |
Matched account live details15 fields
data.v2_info_list[].contact
| Field | Type | Description |
|---|---|---|
live_status | integer | Live status code reported for this Channels account. |
live_cover_img_url | string | Live cover image URL for the account, when populated. |
live_info | object | Live details and covers returned for this account. |
live_info.source_type | integer | Live source type code reported by WeChat Channels. |
live_info.live_cover_img_ts | integer | Timestamp of the live cover information in Unix seconds, when provided. |
live_info.live_cover_imgs | array | Live cover images associated with the account. |
live_info.live_cover_imgs[] | object | One live cover image. |
live_info.live_cover_imgs[].url | string | URL of this live cover image. |
live_info.live_cover_imgs[].width | integer | Width of the live cover image, in pixels. |
live_info.live_cover_imgs[].height | integer | Height of the live cover image, in pixels. |
live_info.live_cover_imgs[].file_size | integer | File size reported for this live cover image. |
live_info.live_cover_imgs[].live_cover_hd | boolean | Whether this live cover image is marked as high definition. |
live_info.replay_setting | object | Replay settings reported for the live information. |
live_info.replay_setting.auto_gen_live_replay | boolean | Whether auto-generation of a live replay is enabled. |
live_info.replay_setting.intelligently_gen_replay_highlight | boolean | Whether automatic generation of replay highlights is enabled. |
Video information12 fields
data.video_object_list[]
One related video object.
| Field | Type | Description |
|---|---|---|
id | string | Video object ID. Preserve this value as a string to avoid precision loss. |
object_nonce_id | string | Object nonce ID used alongside the video object ID in related lookup operations. |
nickname | string | Display nickname of the account that published this video object. |
username | string | Channels account identifier of the video publisher. |
createtime | integer | Creation time of the video object as a Unix timestamp in seconds. |
object_type | integer | Video object type code returned by WeChat Channels. |
object_status | integer | Video object status code returned by WeChat Channels. |
original_flag | integer | Original-content indicator code reported for this video object. |
show_original | boolean | Whether the response indicates showing an original-content marker. |
warn_wording | string | Warning text supplied for the video object, when present. |
ip_region_info | object | Public location label shown with the video object. |
ip_region_info.region_text | string | Location label displayed with the video object. |
Video engagement16 fields
data.video_object_list[]
| Field | Type | Description |
|---|---|---|
like_count | integer | Reported number of likes on the video object. |
comment_count | integer | Reported number of comments on the video object. |
forward_count | integer | Reported number of forwards of the video object. |
fav_count | integer | Reported number of favorites for the video object. |
object_extend | object | Additional public statistics for the video object. |
object_extend.monotonic_data | object | Detailed counts reported for the video object. |
object_extend.monotonic_data.count_info | object | Engagement counts in the detailed statistics block. |
object_extend.monotonic_data.count_info.like_count | integer | Like count in the detailed statistics block. |
object_extend.monotonic_data.count_info.comment_count | integer | Comment count in the detailed statistics block. |
object_extend.monotonic_data.count_info.forward_count | integer | Forward count in the detailed statistics block. |
object_extend.monotonic_data.count_info.fav_count | integer | Favorite count in the detailed statistics block. |
object_extend.monotonic_data.count_info.read_count | integer | Read count reported in this statistics block. |
object_extend.monotonic_data.count_info.bulletcomment_count | integer | Bullet-comment count reported in the detailed statistics. |
object_extend.monotonic_data.comment_count | object | Additional comment count breakdown. |
object_extend.monotonic_data.comment_count.comment_count | integer | Comment count reported in the comment-count breakdown. |
object_extend.monotonic_data.comment_count.image_comment_count | integer | Number of image comments reported in the breakdown. |
Video creator profile14 fields
data.video_object_list[].contact
Public profile of the account that published this video object.
| Field | Type | Description |
|---|---|---|
username | string | String identifier of the WeChat Channels account. |
nickname | string | Display nickname of the WeChat Channels account. |
head_url | string | Avatar URL for this Channels account. |
cover_img_url | string | Profile cover image URL for this account, when supplied. |
status | string | Account status label reported by WeChat Channels. |
auth_info | object | Public account verification information. |
auth_info.auth_icon_type | integer | Verification icon type code reported for this account. |
auth_info.auth_profession | string | Verification or profession text shown on the profile. |
auth_info.auth_icon_url | string | Image URL of the verification icon. |
auth_info.app_name | string | Application name associated with the displayed verification. |
ext_info | object | Location labels displayed in the account profile, when supplied. |
ext_info.country | string | Country or region label in the displayed account profile. |
ext_info.province | string | Province or state label in the displayed account profile. |
ext_info.city | string | City label in the displayed account profile. |
Creator live details15 fields
data.video_object_list[].contact
| Field | Type | Description |
|---|---|---|
live_status | integer | Live status code reported for this Channels account. |
live_cover_img_url | string | Live cover image URL for the account, when populated. |
live_info | object | Live details and covers returned for this account. |
live_info.source_type | integer | Live source type code reported by WeChat Channels. |
live_info.live_cover_img_ts | integer | Timestamp of the live cover information in Unix seconds, when provided. |
live_info.live_cover_imgs | array | Live cover images associated with the account. |
live_info.live_cover_imgs[] | object | One live cover image. |
live_info.live_cover_imgs[].url | string | URL of this live cover image. |
live_info.live_cover_imgs[].width | integer | Width of the live cover image, in pixels. |
live_info.live_cover_imgs[].height | integer | Height of the live cover image, in pixels. |
live_info.live_cover_imgs[].file_size | integer | File size reported for this live cover image. |
live_info.live_cover_imgs[].live_cover_hd | boolean | Whether this live cover image is marked as high definition. |
live_info.replay_setting | object | Replay settings reported for the live information. |
live_info.replay_setting.auto_gen_live_replay | boolean | Whether auto-generation of a live replay is enabled. |
live_info.replay_setting.intelligently_gen_replay_highlight | boolean | Whether automatic generation of replay highlights is enabled. |
Video description and labels16 fields
data.video_object_list[].object_desc
Public description and media information for the video object.
| Field | Type | Description |
|---|---|---|
description | string | Description text of the video object. |
media_type | integer | Media type code reported for the video object. |
short_title | array | Short-title entries reported for the video. |
short_title[] | object | One short-title entry. |
short_title[].short_title | string | Short title displayed for this video object. |
topic | object | Collection information associated with the video, when supplied. |
topic.collection_id | string | Identifier of the associated video collection. |
topic.collection_name | string | Display name of the associated video collection. |
event | object | Event information associated with the video, when supplied. |
event.event_topic_id | string | Identifier of the associated event topic. |
event.event_name | string | Displayed name of the associated event. |
event.event_creator_nickname | string | Display nickname of the associated event's creator. |
event.event_attend_count | integer | Reported attendance count for the event. |
event.feed_count | integer | Reported post count associated with the event. |
media | array | Media assets returned with the video object. |
media[] | object | One media asset returned with the video. |
Tagged video location15 fields
data.video_object_list[].object_desc
| Field | Type | Description |
|---|---|---|
location | object | Location tagged on the video object, when provided. |
location.longitude | number | Longitude of the location tagged on the video. |
location.latitude | number | Latitude of the location tagged on the video. |
location.country | string | Country or region label for the tagged location. |
location.country_code | string | Country or region code for the tagged location. |
location.city | string | City label for the tagged location. |
location.poiName | string | Display name of the tagged place of interest. |
location.poiAddress | string | Displayed address of the tagged place of interest, when supplied. |
location.multi_lang_info | array | Localized labels for the tagged location. |
location.multi_lang_info[] | object | Location labels in one language. |
location.multi_lang_info[].lang | string | Language code for these location labels. |
location.multi_lang_info[].country | string | Localized country or region label. |
location.multi_lang_info[].province | string | Localized province or state label. |
location.multi_lang_info[].city | string | Localized city label. |
location.multi_lang_info[].region | string | Localized regional label. |
Mentioned accounts18 fields
data.video_object_list[]
| Field | Type | Description |
|---|---|---|
object_desc.mentioned_user | array | Accounts mentioned in the video description. |
object_desc.mentioned_user[] | object | One account mentioned in the description. |
object_desc.mentioned_user[].username | string | Channels account identifier of the mentioned user. |
object_desc.mentioned_user[].nickname | string | Display nickname of the mentioned user. |
mentioned_user_contact | array | Public profiles of the accounts mentioned by the video. |
mentioned_user_contact[] | object | One profile for an account mentioned by the video. |
mentioned_user_contact[].username | string | String identifier of the WeChat Channels account. |
mentioned_user_contact[].nickname | string | Display nickname of the WeChat Channels account. |
mentioned_user_contact[].head_url | string | Avatar URL for this Channels account. |
mentioned_user_contact[].auth_info | object | Public account verification information. |
mentioned_user_contact[].auth_info.auth_icon_type | integer | Verification icon type code reported for this account. |
mentioned_user_contact[].auth_info.auth_profession | string | Verification or profession text shown on the profile. |
mentioned_user_contact[].auth_info.auth_icon_url | string | Image URL of the verification icon. |
mentioned_user_contact[].auth_info.app_name | string | Application name associated with the displayed verification. |
mentioned_user_contact[].ext_info | object | Location labels displayed in the account profile, when supplied. |
mentioned_user_contact[].ext_info.country | string | Country or region label in the displayed account profile. |
mentioned_user_contact[].ext_info.province | string | Province or state label in the displayed account profile. |
mentioned_user_contact[].ext_info.city | string | City label in the displayed account profile. |
Media metadata18 fields
data.video_object_list[].object_desc.media[]
| Field | Type | Description |
|---|---|---|
url | string | Media URL reported for this item. |
thumb_url | string | Thumbnail image URL for the media item. |
cover_url | string | Cover image URL for the media item. |
full_cover_url | string | Full-size cover image URL for the media item. |
share_cover_url | string | Cover image URL for sharing, when available. |
media_type | integer | Media type code reported for this item. |
video_type | integer | Video type code reported for this media item. |
video_play_len | integer | Reported video playback length in seconds. |
width | integer | Media width shown in the metadata, in pixels. |
height | integer | Media height shown in the metadata, in pixels. |
file_size | string | Media file size returned as a numeric string. |
cdn_file_size | string | File size reported for the delivered media as a numeric string. |
md5sum | string | MD5 checksum reported for the media file, when supplied. |
bitrate | integer | Reported bitrate value for the media item. |
full_width | integer | Full-size media width in pixels, when provided. |
full_height | integer | Full-size media height in pixels, when provided. |
full_file_size | string | File size returned for the full-size media, when supplied. |
full_bitrate | integer | Reported bitrate value for the full-size media, when supplied. |
Video playback renditions15 fields
data.video_object_list[].object_desc.media[]
| Field | Type | Description |
|---|---|---|
spec | array | Video playback renditions described in the media metadata. |
spec[] | object | One video playback rendition. |
spec[].file_format | string | File format reported for this rendition. |
spec[].coding_format | string | Video codec reported for the rendition. |
spec[].duration_ms | integer | Rendition duration in milliseconds. |
spec[].width | integer | Rendition width in pixels. |
spec[].height | integer | Rendition height in pixels. |
spec[].vfps | integer | Frame rate reported for the rendition, in frames per second. |
spec[].dynamic_range_type | integer | Dynamic range type code reported for the rendition. |
spec[].file_size | string | File size returned for this rendition as a numeric string. |
spec[].first_load_bytes | integer | Number of bytes reported for the first media load. |
spec[].bit_rate | integer | Overall bitrate value reported for the rendition. |
spec[].video_bitrate | integer | Video bitrate value reported for the rendition. |
spec[].audio_bitrate | integer | Audio bitrate value reported for the rendition. |
spec[].quality_score | integer | Quality score reported for the rendition. |
Video progress previews13 fields
data.video_object_list[].object_desc.media[]
| Field | Type | Description |
|---|---|---|
progress_preview | object | Preview-image metadata for seeking within the video, when present. |
progress_preview.img_num | integer | Reported number of frames in the preview images. |
progress_preview.img_row | integer | Number of rows in the preview image grid. |
progress_preview.img_column | integer | Number of columns in the preview image grid. |
progress_preview.img_width | integer | Width of an individual preview tile, in pixels. |
progress_preview.img_height | integer | Height of an individual preview tile, in pixels. |
progress_preview.sprite_width | integer | Width reported for the preview sprite image, in pixels. |
progress_preview.sprite_height | integer | Height reported for the preview sprite image, in pixels. |
progress_preview.sprites | array | Sprite images holding the video preview frames. |
progress_preview.sprites[] | object | One video preview sprite image. |
progress_preview.sprites[].url | string | URL of the preview sprite image. |
progress_preview.sprites[].file_size | integer | Reported size of the preview sprite image. |
progress_preview.sprites[].md5sum | string | MD5 checksum reported for the preview sprite image. |