---
title: "TikTok Ad Details API"
method: GET
path: "/v1/ad-library/tiktok/ad-details"
tags: ["TikTok Ad Library"]
---

# TikTok Ad Details API

`GET /v1/ad-library/tiktok/ad-details`

## Request

- Base URL: `https://api.captapi.com`
- URL: `https://api.captapi.com/v1/ad-library/tiktok/ad-details`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

One TikTok Commercial Content Library ad by ID — calendar-day dates, always 2 credits.

Paste a TikTok Ad Library URL or ad ID and get that creative as clean JSON with the same uniform key set as /tiktok/search (null when withheld) plus calendar-day YYYY-MM-DD firstShown/lastShown (search omits those). platform=tiktok, library=dsa, media[] objects {url,type,expiresAt} — expiresAt is x-expires / VExpiration / expire= to the second, or null when the URL is unsigned (never midnight-of-fetch). impressions from Unique users seen when disclosed, spend only when shipped. advertiser is always {id,name,url,logo,location} — name is a human label, never a bare numeric id. Always 2 credits on success — native and fallback paths share one price (no 2-vs-5 surprise). Response includes fetchPath: "native" | "fallback" so you can see which path ran. Default country GB (EU-led library).

Docs: https://captapi.com/apis/tiktok-ad-library-ad-details

## Query parameters

- `url` string, required
- `country` string
- `cache` boolean

## Response `200`

Success. The data object for this endpoint.

- object
  - `success` unknown, required
  - `data` object, required
    - `platform` string: Platform identifier for this response (matches the endpoint's platform).
    - `id` string: Stable platform ID for the item.
    - `url` string: Canonical URL of the item.
    - `text` string: Text content.
    - `adFormat` string: Format of the ad creative.
    - `firstShown` string: Calendar day the ad was first shown (YYYY-MM-DD). TikTok publishes day granularity — not a UTC midnight instant and not MM/DD/YYYY.
    - `lastShown` string: Calendar day the ad was last shown (YYYY-MM-DD). Same day-granularity rule as firstShown.
    - `advertiser` object
      - `name` string: Name of this advertiser item.
    - `media` string[]: Array of {url, type, expiresAt}. expiresAt is a signed-CDN parse (x-expires / VExpiration / expire=) to the second, or null when the URL has no expiry param. The /api/v1/cdn/{unix}/ path segment is not an expiry. width/height/durationSeconds are omitted — TikTok DSA has not been observed to publish them.

## Other responses

- `400`: Bad request: wrong platform URL, unknown endpoint, or an invalid parameter value. Not billed.
- `401`: Missing, invalid or revoked API key. Not billed.
- `402`: Not enough credits for this request. Not billed.
- `404`: The resource does not exist or is not public. Not billed.
- `422`: A required parameter is missing or has the wrong type. Not billed.
- `429`: Rate limit reached. Wait for Retry-After seconds. Not billed.
- `502`: The platform could not be reached or returned nothing usable. Retryable, not billed. 503 and 504 use the same envelope.

---

[API](https://skmtc.dev/captapi/apis/captapi-api.md) · [All operations](https://skmtc.dev/captapi/apis/captapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/captapi/apis/captapi-api/revisions/c9b9ac5ff1bd?raw)
