linkstringzorunlu
WeChat Official Account article short link or intermediate link to convert.
https://api.sandbase.ai/v1/api/wechat-mp/convert-article-linkExpands a WeChat Official Account article link to its resolved long-form destination. Use it to normalize a short or intermediate link before article lookup or collection.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
This API takes a WeChat Official Account article link and returns two normalized URLs for the same article. It needs one input, link, which can be a short link or an intermediate link.
long_url values.mp.weixin.qq.com/s/... link for sharing or display.curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/convert-article-link" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"link": "http://mp.weixin.qq.com/s?__biz=MjM5NzI3NDg4MA==&mid=2659064933&idx=1&sn=c536f78d7358bc2dfe90cde700e21d55&chksm=bc881cb3f28a27f35e0711803b28d8110305cfc1b8beb651674e1aa7870ddf963c658f4dc19a&scene=7#rd"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
link | string | Yes | WeChat Official Account article short link or intermediate link to convert. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"long_url": "https://mp.weixin.qq.com/s?__biz=MjM5NzI3NDg4MA==&mid=2659064933&idx=1&sn=c536f7…",
"short_url": "https://mp.weixin.qq.com/s/THnBSh_vaxhLeYa2lp3d1g"
}
| Field | Meaning |
|---|---|
long_url | The article link in long form. It carries the __biz, mid, idx and sn query parameters that identify the account and the article. |
short_url | The short form of the article link, in the format https://mp.weixin.qq.com/s/<code>. |
link field. The example input is an intermediate link that includes extra parameters such as chksm and scene.long_url drops the chksm and scene parameters from the input link and keeps __biz, mid, idx and sn.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/convert-article-link" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"link": "http://mp.weixin.qq.com/s?__biz=MjM5NzI3NDg4MA==&mid=2659064933&idx=1&sn=c536f78d7358bc2dfe90cde700e21d55&chksm=bc881cb3f28a27f35e0711803b28d8110305cfc1b8beb651674e1aa7870ddf963c658f4dc19a&scene=7#rd"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
linkstringzorunluWeChat Official Account article short link or intermediate link to convert.
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
WeChat MP | $0.014286 çağrı başına | JSON |
WeChat MP | $0.142857 çağrı başına | JSON |
WeChat MP | $0.042857 çağrı başına | JSON |
WeChat MP | $0.028571 çağrı başına | JSON |
WeChat MP | $0.021429 çağrı başına | JSON |
WeChat MP | $0.021429 çağrı başına | JSON |
Kılavuzlar:Best WeChat MP API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/wechat-mp/convert-article-link adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.014286, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: link (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. WeChat MP Article Link Conversion, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. WeChat MP API erişimi için ayrıca başvuru yapmanız gerekmez.