WeChat Official Accounts Article details API
May be temporarily unavailable at peak times
This capability may be temporarily unavailable at peak times; try again later. Failed calls are not charged.
API health
- 24h health
- 75%
- 24h average time
- 3.20 s
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
Fetch the full body of one WeChat Official Account article as plain text and original HTML, with author, digest, cover, tags, original-content flag and IP region. Copy the article's own mp.weixin.qq.com link; temporary links from search results may be unreadable, and comments are not included.
Price $5.56 per 1,000 requests ($0.005556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
Paste this into your AI assistant. It already holds this endpoint's parameters, response fields and an example request, so the assistant can ask what you need and then write the scraper.
Please help me write a data collection script with the EveryInfra WeChat Official Accounts Article details endpoint (wechat_oa/article_detail).
Endpoint contract:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to wechat_oa and action to article_detail, and put the parameters inside params.
- Required parameters:
- url: Specifies the article's own mp.weixin.qq.com link for article_comments, comment_replies, article_metrics, and article_detail: open the article and copy it (a /s/<id> short link, or a link with __biz, mid, idx, and sn).
- Returns one object. Main fields: id, title, url, content_text (Full article body as plain text (no HTM…), content_html (Full article body as original HTML, pre…), author (Article byline (often a personal pen na…), account_name (Name of the Official Account that publi…), account_ghid (The account's raw ID starting with gh_,…), digest (Article digest as filled in the account…), cover_image_url (Cover image URL of the article), images (Image URL list from the article body), hashtags (Article hashtag list); 15 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=wechat_oa.
- Example request body:
{
"platform": "wechat_oa",
"action": "article_detail",
"params": {
"url": "https://mp.weixin.qq.com/s?__biz=MzA4MTg0MjA5OQ==&mid=2655362972&idx=1&sn=b56fabd8e4c53259498100f05f20dbb0"
}
}
- Price: $5.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | wechat_oa | Platform identifier, fixed value. |
action | body | string | Yes | article_detail | Capability identifier, fixed value. |
url | body.params | Not declared | Yes | - | Specifies the article's own mp.weixin.qq.com link for article_comments, comment_replies, article_metrics, and article_detail: open the article and copy it (a /s/<id> short link, or a link with __biz, mid, idx, and sn). Temporary links copied from search results (with signature/timestamp) may not be readable; when they cannot be read, the call returns 422 before any charge. Account-level actions accept this parameter only as a lowest-priority fallback input for resolving the target account. |
Code samples
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "wechat_oa",
"action": "article_detail",
"params": {
"url": "https://mp.weixin.qq.com/s?__biz=MzA4MTg0MjA5OQ==&mid=2655362972&idx=1&sn=b56fabd8e4c53259498100f05f20dbb0"
}
}'[OpenAPI definition (JSON)]Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
There is no real sample for these example parameters yet: this shows the response shape and fields from the contract, with … as placeholders. It is not the result of a real call.
{
"id": "req_…",
"platform": "wechat_oa",
"action": "article_detail",
"results": {
"id": …,
"title": …,
"url": …,
"content_text": …,
"content_html": …,
"author": …,
"account_name": …,
"account_ghid": …,
"digest": …,
"cover_image_url": …,
"images": …,
"hashtags": …,
"is_original": …,
"posted_at": …,
"ip_region": …,
"platform": …
},
"billing": {
"charged": …,
"charged_usd": …,
"balance_after_usd": …,
…
},
"quota": { … }
}Response fields
Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| Field | Meaning |
|---|---|
id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
title | Title. null when the platform has no titles (for example text-only posts). |
url | Link to the record on the platform. |
content_text | Full article body as plain text (no HTML tags). Delivered whole, not paginated. |
content_html | Full article body as original HTML, preserving layout and image references. Same source as content_text; pick one per your needs. |
author | Article byline (often a personal pen name, not necessarily the account name). |
account_name | Name of the Official Account that published the article. |
account_ghid | The account's raw ID starting with gh_, unique within WeChat. |
digest | Article digest as filled in the account backend, not an excerpt of the body. |
cover_image_url | Cover image URL of the article. |
images | Image URL list from the article body. |
hashtags | Article hashtag list. |
is_original | Whether the article carries an original-content declaration. |
posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
ip_region | IP region shown at publish time (province/country). |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
- 401
- Missing or invalid key. Authentication runs before parameter checks, so unauthenticated requests never see the parameter schema.
- 422
- Wrong parameter name or value. The error lists the parameters and allowed values this capability accepts and the closest match; it happens before any charge.
- 402
- Insufficient balance. Top up first.
- 429
- The account's per-minute request limit was reached (all of its API keys count together; a key's own lower limit applies first). Wait for Retry-After and try again; a rate package in the console raises the limit.
- 503
- Could not complete right now. Any charge for the call goes back to your balance automatically, and the billing receipt in the response states the actual outcome, including when it is not yet known. Do not resend blindly.
- 200 empty
- The request completed without data and is not charged (billing.reason = empty_result_refunded).