Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

WeChat MP Article Link Conversion

Docs da 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.

Preço
$0.014286USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 0 opcionais

Playground

Entrada
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da 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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
WeChat MP$0.014286 por chamadaJSON
WeChat MP$0.142857 por chamadaJSON
WeChat MP$0.042857 por chamadaJSON
WeChat MP$0.028571 por chamadaJSON
WeChat MP$0.021429 por chamadaJSON
WeChat MP$0.021429 por chamadaJSON

Guias:Best WeChat MP API in 2026: Pricing Compared

Perguntas

FAQ

Como eu uso a API WeChat MP Article Link Conversion?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/wechat-mp/convert-article-link com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API WeChat MP Article Link Conversion?

$0.014286 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API WeChat MP Article Link Conversion aceita?

Obrigatórios: link (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API WeChat MP Article Link Conversion retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor WeChat MP ou de uma chave de API?

Não. WeChat MP Article Link Conversion funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do WeChat MP separadamente.