Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

WeChat MP Article Metrics

Dokumentacja API
https://api.sandbase.ai/v1/api/wechat-mp/article-metrics

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

Cena
$0.021429USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 0 opcjonalnych

Playground

Wejście
WeChat Official Account article URL used to fetch basic interaction metrics such as reads and likes. It must end with #rd or #wechat_redirect.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

WeChat MP Article Metrics API

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.

Use cases

  • Check how many reads a known article has reached.
  • Compare like counts across a short list of article URLs.
  • Add read and like numbers to a content report for a specific article.
  • Run a quick popularity check before you fetch the full article text.

Request

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.

Parameters

NameTypeRequiredDescription
articleUrlstringYesWeChat Official Account article URL used to fetch basic interaction metrics such as reads and likes. It must end with #rd or #wechat_redirect.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "looking": 188,
    "read": 73413,
    "zan": 440
  }
}

Response fields

FieldMeaning
data.readNumber of reads for the article. The sample article shows 73413.
data.zanNumber of likes (zan) for the article. The sample article shows 440.
data.lookingCount of the article's looking (在看) reactions. The sample article shows 188.

Notes

Pricing

$0.021429 per successful call. Failed calls are not charged.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
WeChat MP$0.021429 za wywołanieJSON
WeChat MP$0.142857 za wywołanieJSON
WeChat MP$0.042857 za wywołanieJSON
WeChat MP$0.028571 za wywołanieJSON
WeChat MP$0.021429 za wywołanieJSON
WeChat MP$0.014286 za wywołanieJSON

Przewodniki:Best WeChat MP API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API WeChat MP Article Metrics?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/wechat-mp/article-metrics z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API WeChat MP Article Metrics?

$0.021429 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API WeChat MP Article Metrics?

Wymagane: articleUrl (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API WeChat MP Article Metrics?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego WeChat MP lub klucza API?

Nie. WeChat MP Article Metrics działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API WeChat MP.