WeChat Generate Video Share URL

20.65 credits/call
ae_wechat_generate_video_share_url

Generate a shareable WeChat Channels video short link (weixin.qq.com/sph/…) from a known video object ID. Inputs: - request_body is required. - request_body.object_id is required: a string containing 1–32 digits, such as "14941130915890399732". Use the video id obtained from a video-list or video-detail lookup, not an account ID or share URL. - request_body.raw is optional and defaults to true. Set it to false for a simplified result or leave it true for the raw response. Result: - With raw=false, data.object_id echoes the input and data.share_url contains the generated share link. - With raw=true, the share link is in data.feedH5Url or in entries of data.urlList, where feedH5Url is the link and objectId identifies the video. The raw status code is in data.baseResponse.ret. - The link can be used for sharing or a video-detail lookup that accepts a share URL; it is not a video download URL. Input accepts one object ID per call. Responses may be slow. Set the calling client's request timeout to 30 seconds; timeout is not an input parameter of this tool.

SocialVideo
20.65 credits/call

Pricing

20.65 credits/call
ConditionCharge
Each call20.65 credits/call

A fixed charge of 20.65 credits applies per call. Charges are per query. A successful query is billed even if it returns no results.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYes用于生成视频号作品分享短链的请求体:object_id 指定目标作品,raw 控制返回原始响应还是精简解析结构。—
request_body.rawbooleanNoTrue=原始响应;False=精简解析结构/True=raw response; False=simplified parsed structuretrue
request_body.object_idstringYes作品 objectId(纯数字)/Video objectId (numeric)—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_wechat_generate_video_share_url' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "object_id": "14415454268840282347",
      "raw": false
    }
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "code": 200,
  "data": {
    "debug_id": "be8a37a6",
    "debug_info": "[REDACTED]",
    "object_id": "14415454268840282347",
    "share_url": "https://weixin.qq.com/sph/AbxfNAFjqh"
  },
  "docs": "https://api.tikhub.io/#/WeChat-Channels-V2-API/fetch_video_share_url_api_v1_wechat_channels_v2_fetch_video_share_url_post",
  "message": "Request successful. This request will incur a charge.",
  "message_zh": "请求成功,本次请求将被计费。",
  "params": {
    "object_id": "14415454268840282347",
    "raw": false
  }
}

This example shows part of the response. Copied content is valid JSON.