{
  "openapi": "3.0.1",
  "info": {
    "title": "Ad Creative Analyzer - AI Review of Facebook & TikTok Ads",
    "description": "AI review of Facebook, TikTok and other ad images and videos, from links or an ad library dataset: hook, angle, offer, CTA, transcript, policy risks, 0-100 scores. 🎬",
    "version": "1.0",
    "x-build-id": "ubABVeMG6tpOcEkEu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/helenisapi~ad-creative-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-helenisapi-ad-creative-analyzer",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/helenisapi~ad-creative-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-helenisapi-ad-creative-analyzer",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/helenisapi~ad-creative-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-helenisapi-ad-creative-analyzer",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "adUrls": {
            "title": "Creative URLs",
            "type": "array",
            "description": "Direct http(s) links to ad creatives, one per item: images (JPEG, PNG, WEBP...) or videos (MP4, MOV, WEBM, up to 3 minutes), e.g. [\"https://cdn.example.com/ad1.jpg\", \"https://cdn.example.com/ad2.mp4\"]. Required unless datasetId is set; both can be combined and duplicate URLs are analysed once. Each ad returns one row with scores, hook, angle, offer, CTA and policy risks; a link that cannot be read returns an error row (not charged). Ad library CDN links expire after a few days: use fresh ones.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Dataset ID of an ad library scraper (optional)",
            "type": "string",
            "description": "ID of an existing Apify dataset of ads, e.g. the output of a Facebook / Meta Ad Library, TikTok Creative Center or Ads Library, Google Ads Transparency or LinkedIn Ad Library scraper. Required unless adUrls is set. The video (or image), primary text, headline, CTA, landing page, advertiser and ad ID of each row are read automatically, carousel and dynamic (DCO) cards included; rows without a creative are skipped. Leave empty to analyse only adUrls."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "analysis",
              "tags"
            ],
            "type": "string",
            "description": "analysis (default) = full creative review per ad: hook, angle, offer, CTA, audience, transcript, on-screen text, policy risks, six 0-100 scores with reasons, improvements and new hooks. tags = quick tags in bulk, 10 ads per call: format, hook type, angle, offer, CTA, audience and an overall score, much cheaper for sorting hundreds of ads.",
            "default": "analysis"
          },
          "platform": {
            "title": "Platform",
            "enum": [
              "",
              "meta",
              "tiktok",
              "youtube",
              "google",
              "linkedin"
            ],
            "type": "string",
            "description": "Where the ads run, which tunes the review, the copy-length checks and the policy family named for each risk: \"\" (default, auto) = read it from each dataset row, none for plain URLs; meta = Facebook and Instagram; tiktok; youtube; google = Google Ads; linkedin.",
            "default": ""
          },
          "analyzeLandingPage": {
            "title": "Score the landing page match",
            "type": "boolean",
            "description": "true: in analysis mode only, also read each ad's landing page (the link URL of its dataset row) and score 0-100 how well the page keeps the ad's promise, offer and product (charged per page read). false (default): no landing page. Ads given as plain adUrls have no landing page.",
            "default": false
          },
          "language": {
            "title": "Language of the review",
            "type": "string",
            "description": "Language the written analysis is in, as a name or a code, e.g. \"English\", \"French\" or \"de\". Transcripts and on-screen texts stay in the ad's own language. Left empty: English.",
            "default": "English"
          },
          "maxAds": {
            "title": "Maximum ads",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of ads (images and videos) analysed in the run, 1-5000 (default 100), e.g. 20 for a quick test; the rest of the list or dataset is skipped. On the Apify free plan, a run analyses 10 ads at most.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many ads (or batches of 10 ads in tags mode) are processed at the same time, 1-10 (default 4). Higher is faster on long lists; it does not change the price.",
            "default": 4
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}