articleUrlstringobbligatorio
WeChat Official Account article URL used to fetch basic interaction metrics such as reads and likes. It must end with #rd or #wechat_redirect.
https://api.sandbase.ai/v1/api/wechat-mp/article-metricsGet basic interaction metrics for a WeChat Official Account article URL that ends with #rd or #wechat_redirect. Use it to perform a lightweight popularity check for a known article.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
This API returns basic interaction counts for one WeChat Official Account article. It needs the article URL in articleUrl, and the URL must end with #rd or #wechat_redirect.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/article-metrics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"articleUrl": "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 |
|---|---|---|---|
articleUrl | string | Yes | WeChat Official Account article URL used to fetch basic interaction metrics such as reads and likes. It must end with #rd or #wechat_redirect. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"looking": 188,
"read": 73413,
"zan": 440
}
}
| Field | Meaning |
|---|---|
data.read | Number of reads for the article. The sample article shows 73413. |
data.zan | Number of likes (zan) for the article. The sample article shows 440. |
data.looking | Count of the article's looking (在看) reactions. The sample article shows 188. |
#rd or #wechat_redirect ending. The articleUrl value in the example ends with #rd.#rd or #wechat_redirect, try WeChat MP Article Link Conversion.$0.021429 per successful call. Failed calls are not charged.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/article-metrics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"articleUrl": "http://mp.weixin.qq.com/s?__biz=MjM5NzI3NDg4MA==&mid=2659064933&idx=1&sn=c536f78d7358bc2dfe90cde700e21d55&chksm=bc881cb3f28a27f35e0711803b28d8110305cfc1b8beb651674e1aa7870ddf963c658f4dc19a&scene=7#rd"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
articleUrlstringobbligatorioWeChat Official Account article URL used to fetch basic interaction metrics such as reads and likes. It must end with #rd or #wechat_redirect.
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
WeChat MP Article MetricsQuesta API WeChat MP | $0.021429 per chiamata | JSON |
WeChat MP | $0.142857 per chiamata | JSON |
WeChat MP | $0.042857 per chiamata | JSON |
WeChat MP | $0.028571 per chiamata | JSON |
WeChat MP | $0.021429 per chiamata | JSON |
WeChat MP | $0.014286 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/wechat-mp/article-metrics 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.
$0.021429 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: articleUrl (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. WeChat MP Article Metrics 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.