urlstringrequerido
WeChat MP article URL. E.g. `https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw` (this article has no ads, returns empty)
https://api.sandbase.ai/v1/api/wechat-mp/v2/article-adReturns embedded ad slot information for a specified WeChat MP article URL. Supports choosing between the full raw response or a flattened ad list.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
Look up embedded ad slot information from a WeChat MP post by providing url. Use raw to choose between a full payload or a flattened list.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/v2/article-ad" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw"}'
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | WeChat MP article URL. |
raw | boolean | No | Optional, default True. |
raw to false to receive a flattened ad list instead of the default full response.url.Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/v2/article-ad" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"raw": true,
"url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
urlstringrequeridoWeChat MP article URL. E.g. `https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw` (this article has no ads, returns empty)
rawbooleanOptional, default True. True=full raw response; False=flattened ad list.
Valor predeterminado: true
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
WeChat MP Article AdsEsta API WeChat MP | $0.01 por llamada | JSON |
WeChat MP | $0.01 por llamada | JSON |
WeChat MP | $0.01 por llamada | JSON |
WeChat MP | $0.01 por llamada | JSON |
WeChat MP | $0.01 por llamada | JSON |
WeChat MP | $0.01 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/wechat-mp/v2/article-ad con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.01 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: url (string). Opcionales: raw (boolean). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica).
No. WeChat MP Article Ads funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de WeChat MP por separado.