urlstringobrigatório
WeChat MP article URL (long or short form). E.g. `https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw` (this article has related articles disabled, returns empty)
https://api.sandbase.ai/v1/api/wechat-mp/v2/related-articlesRetrieves the list of related articles displayed at the bottom of a WeChat MP post using its link. Supports choosing between raw and simplified response formats.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
This API returns the list of related articles shown at the bottom of a WeChat MP post. It needs the article link in url. You can set raw to false to get a simplified response instead of the full raw one.
list is empty.curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/v2/related-articles" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | WeChat MP article URL (long or short form). E.g. https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw (this article has related articles disabled, returns empty) |
raw | boolean | No | Optional, default True. True=full raw response; False=simplified projection. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"article_size": 0,
"base_resp": {
"exportkey_token": "",
"ret": 0
},
"debug_id": "c8654bd8",
"debug_info": "gAAAAABq6ZE_RcOuigyjp77fpRWqW98EwuA1qKR3MgBMlFp6rtnMIC_7FSFL5Iyfq00msdIWVO3nW6Bo…",
"empty_scene": 8,
"list": [],
"report_info": "{}",
"show_rec_reason": 1
}
| Field | Meaning |
|---|---|
list | The related articles shown under the post. It is an empty array when the post shows none, as in this example. |
article_size | Number of related articles returned. It is 0 when list is empty. |
empty_scene | A numeric code that comes with an empty result. The example shows 8. The response does not explain what each value means. |
show_rec_reason | A flag that shows whether recommendation reasons are displayed. The example value is 1. |
base_resp.ret | Status code of the call inside the response. 0 in the example. |
base_resp.exportkey_token | Token string in the response. It is empty in the example. |
debug_id / debug_info | Identifiers for debugging. They do not describe the article content. |
report_info | A JSON string with reporting data. It is {} in the example. |
mp.weixin.qq.com/s, in long or short form. The link must start with http:// or https://.raw defaults to true. Set it to false for a simplified projection.list is empty and article_size is 0.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/v2/related-articles" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"raw": true,
"url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
urlstringobrigatórioWeChat MP article URL (long or short form). E.g. `https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw` (this article has related articles disabled, returns empty)
rawbooleanOptional, default True. True=full raw response; False=simplified projection.
Padrão: true
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
WeChat MP Related ArticlesEsta API WeChat MP | $0.01 por chamada | JSON |
WeChat MP | $0.01 por chamada | JSON |
WeChat MP | $0.01 por chamada | JSON |
WeChat MP | $0.01 por chamada | JSON |
WeChat MP | $0.01 por chamada | JSON |
WeChat MP | $0.01 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/wechat-mp/v2/related-articles 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.
$0.01 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: url (string). Opcionais: raw (boolean). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. WeChat MP Related Articles 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.