urlstringbắt buộc
WeChat MP article URL (`https://mp.weixin.qq.com/s/…` or long URL with `__biz`). E.g. `https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw`
https://api.sandbase.ai/v1/api/wechat-mp/v2/article-detailGet a WeChat official account (MP) article from its URL: title, author, account, publish time, cover, full text and HTML content, and album info.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Fetch a WeChat Official Account article from its mp.weixin.qq.com link: title, author, account, publish time, cover, the article body and album navigation.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/v2/article-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw", "raw": false}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | WeChat MP article URL (https://mp.weixin.qq.com/s/… or long URL with __biz). E.g. https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw |
raw | boolean | No | Optional, default True. True=raw response; False=simplified projection. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"bizUin": 3236757533,
"content": {
"ad_mark_status": 0,
"advertisement_info": [],
"ai_chat_info": {
"ai_chat_status": 0,
"room_info": ""
},
"aigc_pictures": [],
"ainfos": [],
"alias": "QbitAI",
"anchor_tree": [],
"app_id": "wx2f0fbcc28597dbce",
"appmsg_ext_get": {
"func_flag": 0
},
"appmsg_fe_filter": "contenteditable",
"appmsg_like_type": 2,
"appmsg_listen_id": "150401723788215308"
},
"debug_id": "76bcf329",
"debug_info": "gAAAAABq6TvHOF0gUZr0UtGRNNjD4W-NNP-IT4lPPio5Dwex8GR_nFBUjeaR1hbn-qVXS0Vv-38ZkNLU…",
"itemIdx": 1,
"url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw"
}
| Field | Meaning |
|---|---|
content.title / content.author / content.nick_name | Article title, author and account name. |
content.content / content_noencode | Article body HTML. |
content.create_time | Publish time. |
content.appmsgalbuminfo | Album (series) info with pre_article_link and next_article_link. |
bizUin | Numeric ID of the Official Account. |
raw: true to get the unprocessed page payload.$0.01 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.
Send one complete mp.weixin.qq.com/s article URL in url and set raw false explicitly for the simplified reference shape. Short /s/ links and long /s?__biz= links are documented. Preserve the full selected URL, including its query parameters; an excerpt ending in an ellipsis is not a usable input. This reads an article you chose, not every post from its publisher.
After checking the SandBase envelope, require a content object. The field table describes title, author, nick_name and create_time, plus article HTML and album navigation. The shortened JSON retains early content keys and omits the title/body fields, and this endpoint has no saved full example in the selected public page. These fields are reference descriptions, not a newly executed article read or a promise that every value will be present. Treat absent title or body as unavailable and stop before producing a summary that claims to have read it.
Article HTML must be parsed as untrusted content. Prefer extracted text for analysis and sanitize markup before browser display; do not execute embedded scripts or follow remote assets automatically. Author and nick_name describe different attribution fields. Keep the source URL and publication value with retrieval time rather than replacing publication time with today's date.
Read counts and likes are not included by this route. Advertising flags, article body size or a search popularity order are not engagement measurements. A different statistics endpoint is a separate task. Album previous/next links are navigation data; this first request does not walk an album, crawl the account, download images or create an archive.
Need to find an article first? Use Article Search independently and review candidates before selecting a complete URL.
Use a local SANDBASE_API_KEY with Bearer authentication and POST /v1/api/. An agent that already has access needs your chosen keyword or complete article URL and one desired output. For a new project, share the setup Skill, Markdown quickstart and selected endpoint. Read one result before expanding to more searches, article bodies or scheduled monitoring.
Validate completed SandBase status and an object at outputs[0].data. The simplified reference places search items or the article content object directly there; do not add a guessed data.data wrapper or an undocumented provider success flag. A missing or malformed required object/list is an error, not an empty successful research result. The shortened reference JSON is evidence of selected fields, not a complete field guarantee.
Pricing checked on 2026-11-08: both endpoints list $0.01 per call and eligibility for 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. This is not a remaining-balance or allowance measurement. Verify current pricing before running. No new business request was made for this revision. Follow the WeChat Python integration guide for bounded parsing and dated source notes.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/v2/article-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw",
"raw": false
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
urlstringbắt buộcWeChat MP article URL (`https://mp.weixin.qq.com/s/…` or long URL with `__biz`). E.g. `https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw`
rawbooleanOptional, default True. True=raw response; False=simplified projection.
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
WeChat MP Article DetailAPI này WeChat MP | $0.01 mỗi lần gọi | JSON |
WeChat MP | $0.01 mỗi lần gọi | JSON |
WeChat MP | $0.01 mỗi lần gọi | JSON |
WeChat MP | $0.01 mỗi lần gọi | JSON |
WeChat MP | $0.01 mỗi lần gọi | JSON |
WeChat MP | $0.01 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/wechat-mp/v2/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.
$0.01 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ý.
Bắt buộc: url (string). Tùy chọn: raw (boolean). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
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.
Không. WeChat MP Article Detail 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.
Gửi một URL bài viết mp.weixin.qq.com/s đầy đủ và raw false. Cả link /s/ ngắn và /s?__biz= dài đều được tài liệu hóa. Giữ nguyên các tham số query và đừng sao chép URL ví dụ rút gọn kết thúc bằng dấu ba chấm.
Không. Bảng trường mô tả chúng, nhưng JSON rút gọn bỏ qua các trường đó và trang công khai được chọn không có ví dụ đầy đủ đã lưu. Hãy yêu cầu một content object, giữ nguyên các giá trị thiếu, và đừng tạo tóm tắt dựa trên lần đọc khi văn bản bài viết không có sẵn.
Số lượt đọc và lượt thích không được bao gồm bởi route này. Các liên kết điều hướng album là dữ liệu, không phải chỉ dẫn để đi theo chúng. Request đầu tiên này không gọi các endpoint thống kê, mở các bài viết lân cận hoặc tải media xuống.