{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scrapefield-com/json-schema/scrapefield-com-tiktok-ad-schema.json",
  "title": "tiktok_ad",
  "description": "An ad from TikTok's Ad Library.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scrapefield-com-tiktok-api-openapi.yml#/components/schemas/tiktok_ad",
  "type": "object",
  "required": [
    "id",
    "url",
    "advertiser",
    "title",
    "industry",
    "first_shown",
    "last_shown",
    "video_url",
    "cover_image_url",
    "image_urls",
    "estimated_audience",
    "impressions"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The Ad Library's id for the ad."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The ad in TikTok's Ad Library."
    },
    "advertiser": {
      "type": [
        "string",
        "null"
      ],
      "description": "The name the ad runs under."
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "The ad's title, as the library shows it."
    },
    "industry": {
      "type": [
        "string",
        "null"
      ],
      "description": "As the library files it, e.g. \"Apparel & Accessories\"."
    },
    "first_shown": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When it was first shown, as the library dates it."
    },
    "last_shown": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When it was last shown, as the library dates it."
    },
    "video_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "The ad's video. On TikTok's CDN. TikTok signs the link, and it can stop working within hours, so fetch the file soon. We do not rehost media."
    },
    "cover_image_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "The video's cover image. On TikTok's CDN. TikTok signs the link, and it can stop working within hours, so fetch the file soon. We do not rehost media."
    },
    "image_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "One image."
      },
      "description": "The ad's images, in order. On TikTok's CDN. TikTok signs the link, and it can stop working within hours, so fetch the file soon. We do not rehost media."
    },
    "estimated_audience": {
      "type": [
        "string",
        "null"
      ],
      "description": "The range the library shows, e.g. \"1K-10K\"."
    },
    "impressions": {
      "type": [
        "integer",
        "null"
      ],
      "description": "How many times it was shown, as the library counts it. `null` where the library leaves it blank."
    }
  },
  "additionalProperties": false
}