获取公众号文章广告/Get WeChat MP Article Ads
WeChat MPapi
About
获取公众号文章广告/Get WeChat MP Article Ads
Documentation
获取公众号文章广告/Get WeChat MP Article Ads
[中文]
用途:
- 传文章 URL,返回文章内嵌的广告位信息。该接口响应相对较慢,请耐心等待;未投放广告的文章返回空。
- 价格:0.01$/次
- ⏱️ 由于微信服务器原因,本接口响应较慢,请将客户端请求超时(timeout)设置为 30 秒;timeout 设置过小会造成已扣费但收不到响应的情况。
参数:
- url: 公众号文章链接。示例
https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw(该文无广告,返回空) - raw: 可选,默认 True。True=完整原始响应;False=拍平后的广告列表。
返回:
- 文章广告位信息
响应结构与 JSON Path:
raw=false(精简投影):
data为拍平后的广告列表:$.data.count: 广告条数(合并advertisement_info与ad_slot_data)$.data.ads[]: 广告项列表(无广告时为[])
raw=true(原始):
data按抓到的响应聚合:$.data.pages: 响应页数$.data.results[]: 每页完整原始响应(广告原始字段在各页的advertisement_info/ad_slot_data内,即精简模式ads的来源)
[English]
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.
- Price: $0.01 per request
- ⏱️ 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):
datais the flattened ad list:$.data.count: number of ads (merged fromadvertisement_infoandad_slot_data)$.data.ads[]: ad item list ([]when no ads)
raw=true (raw):
datais aggregated by the responses captured:$.data.pages: number of response pages$.data.results[]: full raw response per page (raw ad fields are insideadvertisement_info/ad_slot_dataof each page — the source ofadsin simplified mode)
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.
Try 获取公众号文章广告/Get WeChat MP Article Ads
Test this model in the Sandbase Playground with your own prompts.
Open in PlaygroundRelated Models
获取公众号文章列表/Get WeChat MP Account ArticlesWeChat MPapi获取公众号资料页/Get WeChat MP Account ProfileWeChat MPapi获取公众号服务/自定义菜单/Get WeChat MP Account Services & Custom MenuWeChat MPapi获取公众号文章评论/Get WeChat MP Article CommentsWeChat MPapi获取公众号文章详情/Get WeChat MP Article DetailWeChat MPapi获取公众号文章互动数据/Get WeChat MP Article StatsWeChat MPapi获取公众号评论的二级回复/Get WeChat MP Comment RepliesWeChat MPapi获取公众号关联文章/Get WeChat MP Related ArticlesWeChat MPapi