Healthy Available Limited Mostly unavailable No data
Healthy
Loading health status...
24h trend
30d trend
Retrieves first-level comments for a WeChat Channels video by object ID with continuation-buffer pagination. Use it to review audience discussion on known video content.
WeChat Channels video object id used to fetch first-level comments. If you only have the exportId returned by a video search result, first call the Export Id Conversion (V1) endpoint at /api/weixin-channels/convert-export-id/v1 to convert it to an objectId.
objectNonceId
form
string
No
Optional WeChat Channels object nonce id.
last_buffer
form
string
No
Pagination buffer returned by the previous first-level WeChat Channels comment response. Leave it empty for the first page. For this POST endpoint, send it in an application/x-www-form-urlencoded form body.
I want to use the "Video Comments (V1)" API from JustOneAPI.Base URL: https://api.justoneapi.com.API Path: /api/weixin-channels/get-video-comment/v1API Endpoint: BASE_URL + /api/weixin-channels/get-video-comment/v1HTTP Method: POSTAuthentication: Send "token" as an application/x-www-form-urlencoded body field.OpenAPI Definition: https://docs.justoneapi.com/openapi/wechat-channels/video-comments-v1-en.jsonRequest headers:- Content-Type: application/x-www-form-urlencodedRequest Body (Form):- token (form): Access token for this API service. (Required)- objectId (form): WeChat Channels video object id used to fetch first-level comments. If you only have the exportId returned by a video search result, first call the Export Id Conversion (V1) endpoint at /api/weixin-channels/convert-export-id/v1 to convert it to an objectId. (Required)- objectNonceId (form): Optional WeChat Channels object nonce id.- last_buffer (form): Pagination buffer returned by the previous first-level WeChat Channels comment response. Leave it empty for the first page. For this POST endpoint, send it in an application/x-www-form-urlencoded form body.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 Exceeded4. 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.
python
import requestsBASE_URL = "https://api.justoneapi.com" # Provided by OpenAPI serversurl = BASE_URL + "/api/weixin-channels/get-video-comment/v1"headers = { "Content-Type": "application/x-www-form-urlencoded"}data = "token=YOUR_API_KEY&objectId=string&objectNonceId=&last_buffer="response = requests.post(url, headers=headers, data=data, 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")
First-level comments and pagination information for the WeChat Channels video.
Field
Type
Description
last_buffer
string
Opaque buffer for the next first-level comments page. When down_continue_flag is 1, pass this string unchanged in the last_buffer field of the next form request.
down_continue_flag
integer
First-level pagination flag. Verified values were 1 when another page was available and 0 at the end. The buffer can still be present at the end.
comment_info
array
First-level comments returned for the requested page. A page can have an empty list.
data
string
Empty marker returned as a string in a verified successful response without a comment list.
Comment content5 fields
data.comment_info[]
One first-level comment on the requested video.
Field
Type
Description
comment_id
string
WeChat Channels identifier of this comment.
content
string
Text of the comment.
createtime
string
Comment creation time as Unix seconds encoded in a string.
content_type
integer
Numeric content type reported for the comment.
reply_comment_id
string
Parent comment identifier field. Verified top-level comments returned the string 0.
Author and region9 fields
data.comment_info[]
Field
Type
Description
username
string
WeChat Channels account identifier of the comment author.
nickname
string
Display name of the comment author.
head_url
string
Avatar image URL of the comment author.
ip_region_info
object
Region label information returned with the comment.
ip_region_info.region_text
string
IP region label reported for the comment, when supplied.
author_contact
object
Author information returned with the comment.
author_contact.username
string
WeChat Channels account identifier of the comment author.
author_contact.nickname
string
Display name of the comment author.
author_contact.head_url
string
Avatar image URL of the comment author.
Engagement and reply count6 fields
data.comment_info[]
Field
Type
Description
like_count
integer
Reported number of likes on the comment.
dislike_count
integer
Reported number of dislikes on the comment.
expand_comment_count
integer
Reported number of replies under this comment. The response can include only a preview of them.
continue_flag
integer
Continuation flag reported for replies to this comment.
author_reaction_info
object
Reaction information from the video author, when provided.
author_reaction_info.author_like_time
integer
Time the video author liked the comment, as Unix seconds.
Sticker attachments9 fields
data.comment_info[]
Field
Type
Description
content_info
object
Structured sticker information attached to this comment, when present.
WeChat Channels Video Comments API (V1)
Retrieves first-level comments for a WeChat Channels video by object ID with continuation-buffer pagination. Use it to review audience discussion on known video content.
Request Body
tokenstringobjectIdstringobjectNonceIdstringlast_bufferstringCode Samples
Response Fields
Key fields in a successful response (
code = 0).Pagination and results4 fields
dataFirst-level comments and pagination information for the WeChat Channels video.
last_bufferstringdown_continue_flagintegercomment_infoarraydatastringComment content5 fields
data.comment_info[]One first-level comment on the requested video.
comment_idstringcontentstringcreatetimestringcontent_typeintegerreply_comment_idstringAuthor and region9 fields
data.comment_info[]usernamestringnicknamestringhead_urlstringip_region_infoobjectip_region_info.region_textstringauthor_contactobjectauthor_contact.usernamestringauthor_contact.nicknamestringauthor_contact.head_urlstringEngagement and reply count6 fields
data.comment_info[]like_countintegerdislike_countintegerexpand_comment_countintegercontinue_flagintegerauthor_reaction_infoobjectauthor_reaction_info.author_like_timeintegerSticker attachments9 fields
data.comment_info[]content_infoobjectcontent_info.emoticon_infosarraycontent_info.emoticon_infos[]objectcontent_info.emoticon_infos[].descstringcontent_info.emoticon_infos[].widthintegercontent_info.emoticon_infos[].heightintegercontent_info.emoticon_infos[].emoticon_infoobjectcontent_info.emoticon_infos[].emoticon_info.Urlstringcontent_info.emoticon_infos[].emoticon_info.ThumbUrlstringPreview replies19 fields
data.comment_info[]level_two_commentarraylevel_two_comment[]objectlevel_two_comment[].comment_idstringlevel_two_comment[].usernamestringlevel_two_comment[].nicknamestringlevel_two_comment[].contentstringlevel_two_comment[].createtimestringlevel_two_comment[].head_urlstringlevel_two_comment[].like_countintegerlevel_two_comment[].dislike_countintegerlevel_two_comment[].content_typeintegerlevel_two_comment[].ip_region_infoobjectlevel_two_comment[].ip_region_info.region_textstringlevel_two_comment[].author_contactobjectlevel_two_comment[].author_contact.usernamestringlevel_two_comment[].author_contact.nicknamestringlevel_two_comment[].author_contact.head_urlstringlevel_two_comment[].reply_comment_idstringlevel_two_comment[].reply_contentstringResponse Example