Ads

Get an ad media URL

Returns URL metadata for the best available media asset for an ad. This endpoint does not proxy or download the binary media.

get/v1/ads/{adId}/media-url

Request

  • Base URL: https://api.trendtrack.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.trendtrack.io/v1/ads/{adId}/media-url
  • Auth: HTTP bearer

Path parameters

adIdstring required
Example:facebook_123456789

Trendtrack ad identifier returned as adId by the Public API.

Response

Public ad media URL response. The response also includes the X-Request-Id header.

requestIdstring required

Request identifier mirrored in the X-Request-Id response header.

Example response

{
  "requestId": "5d93d8de-0f6d-46a4-bd10-2e519b7e96bc",
  "data": {
    "adId": "facebook_123456789",
    "mediaType": "video",
    "url": "https://medias.trendtrack.io/ads/ad-1.mp4",
    "urlType": "public_asset",
    "selectedSource": "media_url",
    "mediaUrl": "https://medias.trendtrack.io/ads/ad-1.mp4",
    "thumbnailUrl": "https://medias.trendtrack.io/ads/ad-1-thumb.jpg",
    "filename": "facebook_123456789.mp4"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.