# WeChat Official Accounts MP article ads

Pass an article URL to get the embedded ad slot info of the article. Needs url. Served by TikHub.

Purpose:
- Pass an article URL to get the embedded ad slot info of the article. This endpoint responds relatively slowly, please be patient; articles without ads return empty.
- ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response.
Parameters:
- url: WeChat MP article URL. E.g. `https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw` (this article has no ads, returns empty)
- raw: Optional, default True. True=full raw response; False=flattened ad list.
Return:
- Article ad slot info

Response structure & JSON Path:
`raw=false` (simplified projection):
- `data` is the flattened ad list:
    - `$.data.count`: number of ads (merged from `advertisement_info` and `ad_slot_data`)
    - `$.data.ads[]`: ad item list (`[]` when no ads)
`raw=true` (raw):
- `data` is aggregated by the responses captured:
    - `$.data.pages`: number of response pages
    - `$.data.results[]`: full raw response per page (raw ad fields are inside `advertisement_info` / `ad_slot_data` of each page — the source of `ads` in simplified mode)

- Tool ID: `tikhub/wechat-mp-v2-fetch-article-ad`
- Name in the catalog: Wechat_mp, Get WeChat MP Article Ads
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [WeChat posts](/tools/wechat/posts.md)
- Price: $0.01 per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.01
}
```

Pricing source: [https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info](https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info). Official per-success route price USD 0.01; daily upstream discounts may reduce provider cost. No discount invented for the customer. 10/second.

Price verification date: 2026-10-05.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 2048,
      "pattern": "^https?://mp\\.weixin\\.qq\\.com/s([/?].+)?$",
      "title": "Url",
      "description": "公众号文章链接（https://mp.weixin.qq.com/s/… 或带 __biz 的长链）/WeChat MP article URL (https://mp.weixin.qq.com/s/… or long URL with __biz)"
    },
    "raw": {
      "type": "boolean",
      "title": "Raw",
      "description": "True=原始响应；False=精简解析结构/True=raw response; False=simplified parsed structure",
      "default": true
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "tikhub/wechat-mp-v2-fetch-article-ad",
  "input": {
    "url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw",
    "raw": true
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://api.tikhub.io/#/WeChat-Media-Platform-V2-API/fetch_article_ad_api_v1_wechat_mp_v2_fetch_article_ad_post)

[REST inspection](https://api.agentik.cc/v1/tools/tikhub/wechat-mp-v2-fetch-article-ad) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/tikhub/wechat-mp-v2-fetch-article-ad) · [Agent index](/llms.txt)
