linkstringerforderlich
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.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
linkstringerforderlichWeChat Official Account article short link or intermediate link to convert.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
WeChat MP Article Link ConversionDiese API WeChat MP | $0.014286 pro Aufruf | JSON |
WeChat MP | $0.142857 pro Aufruf | JSON |
WeChat MP | $0.042857 pro Aufruf | JSON |
WeChat MP | $0.028571 pro Aufruf | JSON |
WeChat MP | $0.021429 pro Aufruf | JSON |
WeChat MP | $0.021429 pro Aufruf | JSON |
Anleitungen:Best WeChat MP API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/wechat-mp/convert-article-link mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.014286 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: link (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. WeChat MP Article Link Conversion läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für WeChat MP API beantragen.