WeChat Channels modelsapi generation api

wechat-channels/v2/video-share-url

Given a video `object_id`, return a shareable `weixin.qq.com/sph/…` short link (the inverse of the `share_url` input of `fetch_video_detail`). Price: $0.01 per request ⏱️ Due to WeChat server latency, this endpoint respo...

Input
Idle

Example output — click Run to generate your own

API README

Generate WeChat Channels Video Share URL

Purpose:

  • Given a video object_id, return a shareable weixin.qq.com/sph/… short link (the inverse of the share_url input of fetch_video_detail).
  • Price: $0.01 per request
  • ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response. Parameters:
  • object_id: Video objectId (numeric), e.g. 14941130915890399732. From the video id of fetch_user_videos / fetch_video_detail.
  • raw: Optional, default True. True=raw response; False=simplified parsed structure. Return:
  • Video share short link

Response structure & JSON Path:

raw=false (simplified):

  • Input echo: $.data.object_id
  • Generated share link (feed directly into share_url of fetch_video_detail): $.data.share_url

raw=true (raw):

  • Status code: $.data.baseResponse.ret
  • Share link: $.data.feedH5Url
  • List form (per item when batched): $.data.urlList[N].feedH5Url / $.data.urlList[N].objectId
  • Mapping: share_url of raw=false comes from feedH5Url (or urlList[0].feedH5Url) of raw=true; object_id is the input echo.

Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.

Related Models

wechat-channels/v2/channel-id-to-usernameResolve a publicly visible Channel ID (`sph…` short ID) into a finder username (`v2_…@finder`). With the username you can then call `fetch_user_videos`, `fetch_channel_info`, `fetch_user_profile`, etc. Price: $0.01 per request ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response.wechat-channels/v2/channel-infoGet the "More Info" of a WeChat Channels account: basic info section (IP location / profile location / **Channel ID** = public sph ID) + verification section (service unit / entity type / internet news service license number / service category / verification time). Price: $0.01 per request ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response.wechat-channels/v2/collection-videosGiven a collection `topic_id` (from `fetch_user_collections`), return the video list inside that collection. Each video carries a `media` object (`url` / `url_token` / `decode_key`) ready for download and decryption. Supports pagination for more videos. Price: $0.01 per request ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response. ⚠️ Large-integer ID precision: IDs such as `id` / `topic_id` in the response are 64-bit big integers beyond JavaScript's safe-integer range (2^53-1). Always receive / pass such IDs as **strings** (parse JSON with json-bigint or read them as text), never through JS `Number`. Swagger UI rounds the trailing digits of huge integers in its docs view — this is expected and does not affect the actual data returned by the API.wechat-channels/v2/live-detailPass a live `live_id` to get live-room detail: anchor info, live status, online count, replay info, etc. Price: $0.01 per request ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response. ⚠️ Large-integer ID precision: IDs such as `live_id` in the response are 64-bit big integers beyond JavaScript's safe-integer range (2^53-1). Always receive / pass such IDs as **strings** (parse JSON with json-bigint or read them as text), never through JS `Number`. Swagger UI rounds the trailing digits of huge integers in its docs view — this is expected and does not affect the actual data returned by the API.wechat-channels/v2/live-historyGet a creator's live replay list. Each replay is itself a video object with a `media` object (`url` / `url_token` / `decode_key`) ready for download and decryption. Supports pagination for more replays. Price: $0.01 per request ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response. ⚠️ Large-integer ID precision: IDs such as `id` in the response are 64-bit big integers beyond JavaScript's safe-integer range (2^53-1). Always receive / pass such IDs as **strings** (parse JSON with json-bigint or read them as text), never through JS `Number`. Swagger UI rounds the trailing digits of huge integers in its docs view — this is expected and does not affect the actual data returned by the API.wechat-channels/v2/search-channel-videosIn-channel search: search a creator's published videos by keyword **within that channel only**. This endpoint performs **first-page retrieval only** (no cursor parameter exposed, single-page result), but the response still carries `next_cursor` / `continue_flag` for reference. Price: $0.01 per request ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response. ⚠️ Large-integer ID precision: IDs such as `doc_id` in the response are 64-bit big integers beyond JavaScript's safe-integer range (2^53-1). Always receive / pass such IDs as **strings** (parse JSON with json-bigint or read them as text), never through JS `Number`. Swagger UI rounds the trailing digits of huge integers in its docs view — this is expected and does not affect the actual data returned by the API.wechat-channels/v2/user-collectionsGet the "Collections" list on a creator's homepage. Pass each collection's `topic_id` to `fetch_collection_videos` to get its videos. Price: $0.01 per request ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response. ⚠️ Large-integer ID precision: IDs such as `topic_id` in the response are 64-bit big integers beyond JavaScript's safe-integer range (2^53-1). Always receive / pass such IDs as **strings** (parse JSON with json-bigint or read them as text), never through JS `Number`. Swagger UI rounds the trailing digits of huge integers in its docs view — this is expected and does not affect the actual data returned by the API.wechat-channels/v2/user-profileGet a creator's homepage profile and interaction stats. **Complementary** to `fetch_channel_info` (verification entity / license): this endpoint provides nickname / signature / avatar, follower / video / like / favorite / forward counts, live duration, IP region, collection count, linked official accounts, etc. Price: $0.01 per request ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response.