Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

WeChat Channels ID to Username

API दस्तावेज़
https://api.sandbase.ai/v1/api/wechat-channels/v2/channel-id-to-username

Convert a public WeChat Channels Channel ID (sph… short ID) into the finder username (v2_…@finder) required by the other WeChat Channels APIs.

मूल्य
$0.01USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 1 वैकल्पिक

प्लेग्राउंड

इनपुट
Channel ID (`sph…` short ID), e.g. `sphi9BjV8GK0Zsl` (People's Daily). Must start with `sph`.
Optional, default True. True=raw response; False=simplified parsed structure.
आउटपुटउदाहरण
प्रतिक्रियाoutputs · 578 B · 12 पंक्तियाँ
[
  {
    "data": {
      "channel_id": "sphi9BjV8GK0Zsl",
      "debug_id": "42dfb22f",
      "debug_info": "gAAAAABqxLkWlxsF9-g6bsOvFWyJB_XSH9irzWeyV9JX-YxhSKZPQX1zcETmPCDBpghgmprs8v7-WKdLrH96sjMHz7-f03uPgWUfWv2zjiDSYudngfF0Da4nqg3s03ENs5NimOHlVDEudfdNstnbEl34yeuH7lxAq4e79jnsWFmGASuvYFdUg7PvcM3nvsKWTiQxMFUuBDLknWwwTrMRiIEmfsT2M-h0Klreag6yUoRXUGFqAA4hwCsHBsWKOavYqbiQTOICeHDX4QU5b7Bx9D4YVF9ODgNOoQ==",
      "desc": "参与、沟通、记录时代。",
      "nickname": "人民日报",
      "username": "v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder"
    }
  }
]

उदाहरण

प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।

API README

WeChat Channels ID to Username API

This API takes a public WeChat Channels Channel ID (the short sph… ID) and returns the matching finder username (v2_…@finder). The response also includes the account nickname and bio.

Use cases

  • Convert Channel IDs collected from profiles or shared links into finder usernames.
  • Get the username value you need before calling an account or video API for the same channel.
  • Check which account sits behind a Channel ID by reading its nickname and desc.
  • Match accounts from different sources by storing the channel_id and username pair.

Request

curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/v2/channel-id-to-username" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel_id": "sphi9BjV8GK0Zsl", "raw": false}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
channel_idstringYesChannel ID (sph… short ID), e.g. sphi9BjV8GK0Zsl (People's Daily). Must start with sph.
rawbooleanNoOptional, default True. True=raw response; False=simplified parsed structure.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "channel_id": "sphi9BjV8GK0Zsl",
  "debug_id": "8b961260",
  "debug_info": "gAAAAABq6ZEeqTsKRQM1orP1An49kNtr_AbW7D7g90AVBCP1iJ6dpfwofN36FsORnSGOQ3Vo_qtnu_GC…",
  "desc": "参与、沟通、记录时代。",
  "nickname": "人民日报",
  "username": "v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@…"
}

Response fields

FieldMeaning
usernameThe finder username for the channel, in the form v2_…@finder. Pass this value to the other WeChat Channels APIs that ask for a username.
channel_idThe Channel ID you sent, returned unchanged.
nicknameThe display name of the account, for example 人民日报.
descThe account bio text shown on the channel profile.
debug_id / debug_infoDiagnostic values attached to the response. You do not need them to use the username.

Notes

  • Take the channel_id from a channel profile. It must start with sph and can be up to 64 characters.
  • With raw set to false, the response is the simplified structure shown here. raw defaults to true.
  • Next, call WeChat Channels User Videos or WeChat Channels Account Info with the returned username.
  • The username is a long string, so copy it in full.

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
WeChat Channels$0.01 प्रति कॉलJSON
WeChat Channels$0.01 प्रति कॉलJSON
WeChat Channels$0.01 प्रति कॉलJSON
WeChat Channels$0.01 प्रति कॉलJSON
WeChat Channels$0.01 प्रति कॉलJSON
WeChat Channels$0.01 प्रति कॉलJSON

गाइड्स:Best WeChat Channels API in 2026: Pricing Compared

प्रश्न

FAQ

WeChat Channels ID to Username API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/wechat-channels/v2/channel-id-to-username पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

WeChat Channels ID to Username API की लागत कितनी है?

$0.01 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

WeChat Channels ID to Username API कौन-से parameters स्वीकार करती है?

आवश्यक: channel_id (string)। वैकल्पिक: raw (boolean)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

WeChat Channels ID to Username API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक WeChat Channels developer account या API key चाहिए?

नहीं। WeChat Channels ID to Username SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से WeChat Channels API access के लिए आवेदन करने की आवश्यकता नहीं है।