Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

WeChat MP Article Details

Tài liệu API
https://api.sandbase.ai/v1/api/wechat-mp/article-detail

Get a WeChat Official Account article by URL with selectable plain-text or rich-text content mode. Use it to collect a known article in the preferred representation for reading, extraction, or storage.

Giá
$0.021429USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 1 tùy chọn

Phòng thử nghiệm

Đầu vào
WeChat Official Account article URL used to fetch article detail content and metadata.
Article body format. TEXT returns plain text, and RICH_TEXT returns rich text when supported.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

WeChat MP Article Details API

Returns the content and metadata of one WeChat Official Account article. It needs the article URL as articleUrl, and an optional mode of TEXT or RICH_TEXT to choose the body format.

Use cases

  • Archive the full body and images of a known article for storage or offline reading.
  • Extract article text for translation, summarization, or keyword analysis.
  • Identify the publishing account of an article from its nick_name, alias and biz values.
  • Collect the image URLs of an article to download its pictures.

Request

curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/article-detail" \
  -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 article detail content and metadata.
modestringNoArticle body format. TEXT returns plain text, and RICH_TEXT returns rich text when supported.

Example response

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

{
  "alias": "people_rmw",
  "app_id": "wx020d85a0aef80286",
  "appmsg_link": "",
  "author": "人民网",
  "biz": "MjM5NzI3NDg4MA==",
  "cdn_url": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/XvpojIRrhdsyicO44PY4KBDO38CdYO8ibR6G1vDpBibT3…",
  "cdn_url_16_9": "",
  "cdn_url_1_1": "https://mmbiz.qpic.cn/mmbiz_jpg/XvpojIRrhdtYoKJAt9gpOfEewclvkplGicoF0BKYP99k961i…",
  "cdn_url_235_1": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/XvpojIRrhdsyicO44PY4KBDO38CdYO8ibR6G1vDpBibT3…",
  "claim_source_info": {
    "aigc_type": "",
    "aigc_wording": "",
    "claim_source": "1",
    "claim_source_type": "",
    "media_source_type_info": {
      "biz_headimgurl": "",
      "biz_link_url": "",
      "biz_nickname": "",
      "media_source_from": "",
      "news_position_info": {
        "city": "",
        "country": "",
        "province": ""
      },
      "news_time": "",
      "other_from_account": ""
    }
  },
  "collect_count": -1,
  "comment_count": -1
}

Response fields

FieldMeaning
contentArticle body. In the sample response it holds HTML-style markup with <p> and <img> tags.
content_multi_textAnother form of the article body, with inline styles and links in HTML-style markup.
authorAuthor name shown on the article.
nick_name / alias / biz / app_idIdentifiers of the Official Account that published the article: display name, account alias, biz ID and app ID.
create_time / create_time_str / pubtimePublish time of the article. create_time and pubtime use the format YYYY-MM-DD HH:MM:SS. create_time_str stops at minutes.
mid / idx / hashidArticle identifiers. mid is the message ID, idx is the article position in that message, and hashid matches the sn value in the URL.
picture_page_info_list[].cdn_urlImage URL for each picture found in the article.
picture_page_info_list[].width / picture_page_info_list[].heightDimensions of each picture.
cdn_url / cdn_url_1_1 / cdn_url_235_1Cover image URLs in different aspect ratios. Some ratios can be empty strings.
ip_wording / provinceName / countryNameLocation text shown for the article, such as province and country.
read / comment_count / share_count / collect_count / lookingEngagement counters. The sample returns -1 for all of them, so use the metrics API for these numbers.

Notes

Pricing

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

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
WeChat MP$0.021429 mỗi lần gọiJSON
WeChat MP$0.142857 mỗi lần gọiJSON
WeChat MP$0.042857 mỗi lần gọiJSON
WeChat MP$0.028571 mỗi lần gọiJSON
WeChat MP$0.021429 mỗi lần gọiJSON
WeChat MP$0.014286 mỗi lần gọiJSON

Hướng dẫn:Best WeChat MP API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API WeChat MP Article Details?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/wechat-mp/article-detail với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API WeChat MP Article Details có giá bao nhiêu?

$0.021429 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API WeChat MP Article Details chấp nhận những tham số nào?

Bắt buộc: articleUrl (string). Tùy chọn: mode (một trong số TEXT, RICH_TEXT). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API WeChat MP Article Details trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của WeChat MP không?

Không. WeChat MP Article Details chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của WeChat MP.