Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

WeChat Channels Video Share URL

Documentación de la API
https://api.sandbase.ai/v1/api/wechat-channels/v2/video-share-url

Returns the share URL for a specific WeChat Channels video using its numeric object ID. Supports both raw and simplified parsed response formats.

Precio
$0.01USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 1 opcionales

Entorno de pruebas

Entrada
Video objectId (numeric), e.g. `14941130915890399732`. From the video `id` of `fetch_user_videos` / `fetch_video_detail`.
Optional, default True. True=raw response; False=simplified parsed structure.
SalidaEjemplo
Respuestaoutputs · 831 B · 25 líneas
[
  {
    "data": {
      "baseResponse": {
        "errMsg": {
          "pbRequestMsgInfo": null,
          "string": ""
        },
        "pbRequestMsgInfo": null,
        "ret": 0
      },
      "debug_id": "e70999e4",
      "debug_info": "gAAAAABqu8jnp5gvKKK2FNp4DhoL3T9yWCOrJYFbs0dzTP9yu9d2GmH3sNMyO3bbvHeOgMlJ88YWHFH6ZKzOn2TZTxaeuXnspMPMABegMvrchJ5RPFB8f3PniUynGYeIKaI7pQEH5NIL3VknQTTIGokbmCmScZQjyWz3uKhmvs8eTDjOo34bE74xl2oY-YNmzIGqyAF_Uhiy5LFLRs4mZtButYYKTA44JiFNlqlh_3JyAqD3tkt10QpceCMy_DCUqduP8eNDDAGQOuDbG22RBH7cxTyFCQD5wg==",
      "feedH5Url": "https://weixin.qq.com/sph/AisYNgPZRM",
      "pbRequestMsgInfo": null,
      "urlList": [
        {
          "feedH5Url": "https://weixin.qq.com/sph/AisYNgPZRM",
          "objectId": 14941130915890400000,
          "pbRequestMsgInfo": null
        }
      ]
    }
  }
]

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

README de la API

WeChat Channels Video Share URL API

Returns the public share URL for a WeChat Channels video. It needs the numeric object_id of the video and returns a short weixin.qq.com/sph/... link.

Use cases

  • Build a list of shareable links for videos you collected from a channel.
  • Add a clickable WeChat Channels link to a report or spreadsheet that already holds video IDs.
  • Check that a video object_id still resolves to a link before you publish it elsewhere.
  • Send a share link to a user from an app that tracks WeChat Channels videos.

Request

curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/v2/video-share-url" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"object_id": "14941130915890399732"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
object_idstringYesVideo objectId (numeric), e.g. 14941130915890399732. From the video id of fetch_user_videos / fetch_video_detail.
rawbooleanNoOptional, default True. True=raw response; False=simplified parsed structure.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "baseResponse": {
    "errMsg": {
      "pbRequestMsgInfo": null,
      "string": ""
    },
    "pbRequestMsgInfo": null,
    "ret": 0
  },
  "debug_id": "af3be523",
  "debug_info": "gAAAAABq6ZEqPk4z1vRiD4BkXYJ1vs5NqAg3czDYG8Tn1QYQUux9zbT-rgf724H9718E0u-cGQlmdi1c…",
  "feedH5Url": "https://weixin.qq.com/sph/An9q68ZQCn",
  "pbRequestMsgInfo": null,
  "urlList": [
    {
      "feedH5Url": "https://weixin.qq.com/sph/An9q68ZQCn",
      "objectId": 14941130915890399732,
      "pbRequestMsgInfo": null
    }
  ]
}

Response fields

FieldMeaning
feedH5UrlThe share URL for the video. It is a short https://weixin.qq.com/sph/... link.
urlList[].feedH5UrlThe same share URL, returned inside a list of results.
urlList[].objectIdThe numeric video ID that the URL belongs to. It matches the object_id you sent.
baseResponse.retStatus code of the lookup. 0 means the call succeeded in this response.
baseResponse.errMsg.stringError message text. It is empty when the call succeeds.
debug_idShort identifier for this response. Useful when you report a problem.

Notes

  • Get object_id from the video id returned by WeChat Channels User Videos or WeChat Channels Video Detail.
  • object_id must be digits only, up to 32 characters. Send it as a string.
  • raw defaults to true, which returns the full structure shown here. Set it to false for a simplified parsed structure.
  • In urlList[], objectId is a number, while the request object_id is a string.

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
WeChat Channels$0.01 por llamadaJSON
WeChat Channels$0.01 por llamadaJSON
WeChat Channels$0.01 por llamadaJSON
WeChat Channels$0.01 por llamadaJSON
WeChat Channels$0.01 por llamadaJSON
WeChat Channels$0.01 por llamadaJSON

Guías:Best WeChat Channels API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de WeChat Channels Video Share URL?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/wechat-channels/v2/video-share-url 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.

¿Cuánto cuesta la API de WeChat Channels Video Share URL?

$0.01 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de WeChat Channels Video Share URL?

Requeridos: object_id (string). Opcionales: raw (boolean). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de WeChat Channels Video Share URL?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de WeChat Channels?

No. WeChat Channels Video Share URL 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 Channels por separado.