Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

WeChat MP Article Link Conversion

Documentazione API
https://api.sandbase.ai/v1/api/wechat-mp/convert-article-link

Expands 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.

Prezzo
$0.014286USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 0 opzionali

Playground

Input
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

WeChat MP Article Link Conversion API

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.

Use cases

  • Normalize article links collected from chats or shares into one standard form before storing them.
  • Remove duplicate articles by comparing the returned long_url values.
  • Turn a long article link into a short mp.weixin.qq.com/s/... link for sharing or display.
  • Prepare a clean link before passing it to an article lookup API.

Request

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.

Parameters

NameTypeRequiredDescription
linkstringYesWeChat Official Account article short link or intermediate link to convert.

Example response

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"
}

Response fields

FieldMeaning
long_urlThe article link in long form. It carries the __biz, mid, idx and sn query parameters that identify the account and the article.
short_urlThe short form of the article link, in the format https://mp.weixin.qq.com/s/<code>.

Notes

  • Send the link in the link field. The example input is an intermediate link that includes extra parameters such as chksm and scene.
  • In the sample response, long_url drops the chksm and scene parameters from the input link and keeps __biz, mid, idx and sn.
  • To read the article itself, pass the returned link to WeChat MP Article Detail or WeChat MP Article Detail (H5, Recommended).

Pricing

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

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
WeChat MP$0.014286 per chiamataJSON
WeChat MP$0.142857 per chiamataJSON
WeChat MP$0.042857 per chiamataJSON
WeChat MP$0.028571 per chiamataJSON
WeChat MP$0.021429 per chiamataJSON
WeChat MP$0.021429 per chiamataJSON

Guide:Best WeChat MP API in 2026: Pricing Compared

Domande

FAQ

Come uso l'API WeChat MP Article Link Conversion?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/wechat-mp/convert-article-link con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API WeChat MP Article Link Conversion?

$0.014286 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API WeChat MP Article Link Conversion?

Richiesti: link (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API WeChat MP Article Link Conversion?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API WeChat MP?

No. WeChat MP Article Link Conversion funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API WeChat MP.