Direct video and image URLs for an ad
Returns the direct signed URLs for every video and image asset used by an ad's live
creative, normalised across shapes: single image/video, carousel,
Reels/Story (object_story_spec.video_data) and dynamic
creative (asset_feed_spec). Video items include Meta's poster thumbnail and the
video's Meta id when available.
Reads Meta live rather than the stored creative blob because Meta's signed fbcdn
URLs carry an oe=<hex> expiration (image_url ~24 h, video source ~12 d). Treat
URLs as short-lived — re-fetch this endpoint before serving or downloading assets
instead of caching URLs beyond that window.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Zernio ad id (24-char hex) or platform ad id.
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adcreatives.getAdMedia({ path: { adId: 'ad_abc123', },});console.log(data);{
"adId": "string",
"platform": "string",
"media": [
{
"type": "image",
"url": "string",
"thumbnailUrl": "string",
"videoId": "string",
"length": 0,
"index": 0
}
]
}{
"error": "Unauthorized"
}Creative details GET
One creative's details, verbatim from Meta. `fields` is a raw-passthrough override of the default projection.
Render previews of an existing ad GET
Renders an EXISTING ad per placement via Meta's `/{ad_id}/previews`. Each preview is an HTML `<iframe>` snippet embeddable directly. Unknown `formats` values return Meta's 400 verbatim.