Helenis API
Start for free

BusinessAdvertising

Ad Creative Analysis API: Score the Hook, Angle and Policy Risks of Any Ad

Ad creative analysis API guide: score the hook, angle, offer and policy risks of image and video ads with Python, then tag a whole Meta Ad Library export.

Ad Creative Analysis API cover: a clapperboard sticker, an arrow and a JSON response for a video ad with a duration of 18.0 seconds, aspect ratio 4:5, hook type curiosity, score 85 and awareness stage solution aware.
An 18-second GEICO video ad watched with its sound: a curiosity hook scored 85, aimed at solution-aware drivers.

A media buyer pulls 400 competitor ads from the Meta Ad Library on a Monday morning. Each video takes a minute or two to watch, then someone types the hook, the angle and the offer into a spreadsheet, and by the fortieth ad the tags drift: one person writes "UGC", another "testimonial", a third "creator". By Wednesday nobody trusts the columns.

An ad creative analysis API does that first pass in seconds. Send the image or video with the copy as it appears in the library, and get structured JSON back: what the first three seconds show and say, the angle, the offer, the call to action, the audience and its awareness stage, claims that need proof, the policy areas a reviewer would question, and six scores with a reason each.

This article explains what a creative review covers, then builds it in Python: a single image, a video with its landing page, a policy pre-check, and bulk tagging of an ad library.

What an ad creative review covers

Creative strategists read an ad in layers. The same layers, made explicit, become the fields of the API response:

Layer Question it answers Field
Hook What stops the scroll in the first 3 seconds (or at first glance on an image)? hook with type, score, reason
Angle Why should I care: price, fear, status, convenience, novelty? angle
Offer Is there a deal, and on what terms? offer
Call to action What am I asked to do? cta
Audience and awareness Who is it for, and how much do they already know? audience.awareness_stage
Brand Is the logo visible, where, and when is the brand first named? brand
Claims Which statements would need proof? claims
Policy Which policy area would a reviewer question, and why? policy_risks

The awareness stages come from Eugene Schwartz's Breakthrough Advertising (1966): unaware, problem aware, solution aware, product aware, most aware. An ad that explains the problem to people already comparing products wastes its first seconds.

Some facts need no AI, and the API computes them in code: aspect ratio, the placements that take that ratio natively (Reels, Stories, feed), duration, sound track, and each copy field's length against what the platform shows (Meta displays about 125 characters of primary text before "See more"), in copy_checks.

Analyze an image ad in Python

POST /v1/ad-creative/analyze takes a url to the creative. Everything else is optional: the copy as shown in the library (primary_text, headline, description, cta), the platform (meta, tiktok, youtube, google, linkedin), the advertiser brand, a landing_page_url, and the language of the review.

A public-domain example first, the 1928 Zenith watch poster from Wikimedia Commons:

Python
import requests

HOST = "ad-creative-analyzer-ai-hook-angle-score.p.rapidapi.com"
API = f"https://{HOST}"
HEADERS = {"x-rapidapi-key": "YOUR_API_KEY", "x-rapidapi-host": HOST}

ad = {
    "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/"
    "1928_advertisement_poster_-_Zenith.jpg/"
    "960px-1928_advertisement_poster_-_Zenith.jpg",
    "platform": "meta",
}
r = requests.post(
    f"{API}/v1/ad-creative/analyze", headers=HEADERS, json=ad, timeout=120
)
r.raise_for_status()
review = r.json()

print(review["hook"]["type"], review["hook"]["score"])
for name, item in review["scores"].items():
    print(f"{name:8} {item['score']:3}  {item['reason']}")

The real response, trimmed:

JSON
{
  "media": {
    "type": "image",
    "mime_type": "image/jpeg",
    "width": 960,
    "height": 1243,
    "aspect_ratio": "3:4",
    "orientation": "vertical",
    "size_bytes": 200753,
    "placements": []
  },
  "language": "en",
  "platform": "meta",
  "on_screen_text": [{ "text": "ZENITH" }],
  "hook": {
    "window": "first glance",
    "text": "ZENITH",
    "type": "curiosity",
    "score": 75,
    "reason": "The striking red winged figure and vintage contrast stop the scroll effectively."
  },
  "angle": {
    "type": "quality",
    "summary": "Emphasizes timeless luxury and precision craftsmanship through iconic vintage artwork."
  },
  "offer": { "type": "none" },
  "cta": { "type": "none" },
  "audience": {
    "segments": ["Watch Collectors", "Luxury Consumers", "Art & Vintage Enthusiasts"],
    "awareness_stage": "solution_aware"
  },
  "scores": {
    "offer": { "score": 0, "reason": "There is no promotional offer attached to this brand awareness poster." },
    "cta": { "score": 0, "reason": "There is no call to action present on the creative." },
    "brand": { "score": 90, "reason": "The brand name ZENITH is prominently and memorably displayed at the bottom and on the watch dial." },
    "overall": { "score": 60, "reason": "Aesthetically pleasing and strong on branding, but lacks a modern digital offer and clear call to action." }
  },
  "disclaimer": "AI review of the creative as published. Scores estimate creative quality, not delivery results; policy risks name the policy areas to review, not a platform decision."
}

The scores are judged as a feed ad. An offer or a call to action that is absent scores 0 and is never invented, so this 1928 brand poster gets 0 on both, 90 for brand visibility, and 60 overall: the overall score is anchored to the weighted sub-scores (within 5 points), so it cannot drift away from them. placements is empty because 3:4 is not a native ratio for Reels, Stories or the feed (4:5, 9:16 and 1:1 are). The response also carries strengths, weaknesses, three or four improvements, three alternative_hooks and three alternative_headlines, cut here.

The same call with curl:

Terminal
curl -X POST "https://ad-creative-analyzer-ai-hook-angle-score.p.rapidapi.com/v1/ad-creative/analyze" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: ad-creative-analyzer-ai-hook-angle-score.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/1928_advertisement_poster_-_Zenith.jpg/960px-1928_advertisement_poster_-_Zenith.jpg", "platform": "meta"}'

Analyze a Facebook video ad with its copy and landing page

Ad library scrapers return each ad with a link to its media on Meta's CDN, the copy, the CTA button and the destination URL; map them one to one. A live 18-second GEICO video from the Meta Ad Library:

Python
payload = {
    "url": "https://video.fymq3-1.fna.fbcdn.net/o1/v/t2/f2/m366/...",  # media_url
    "primary_text": "Just a lil doodle before saving you $900. ...",  # full text
    "headline": "Car Insurance",
    "cta": "Learn more",
    "landing_page_url": "https://www.geico.com/landingpage/go558/?soa=79976",
    "platform": "meta",
}
r = requests.post(
    f"{API}/v1/ad-creative/analyze", headers=HEADERS, json=payload, timeout=120
)
r.raise_for_status()
review = r.json()

The response, trimmed (12 credits: 10 for a video up to 60 seconds, 2 for the landing page):

JSON
{
  "media": {
    "type": "video",
    "width": 720,
    "height": 900,
    "aspect_ratio": "4:5",
    "orientation": "vertical",
    "duration_seconds": 18.0,
    "has_audio_track": true,
    "size_bytes": 1500980,
    "placements": ["Instagram feed", "Facebook feed", "LinkedIn feed"]
  },
  "format": { "style": "tutorial", "has_voice_over": false, "has_music": true, "has_text_overlay": true, "ugc_style": true },
  "on_screen_text": [
    { "second": 0.0, "text": "lil doodle" },
    { "second": 0.0, "text": "BIG SAVINGS!" },
    { "second": 13.0, "text": "it feels good to GEICO" }
  ],
  "hook": {
    "window": "0-3 s",
    "description": "A close-up hand speeds up drawing a doodle of the GEICO gecko on a sticky note while writing 'lil doodle BIG SAVINGS!'.",
    "text": "lil doodle BIG SAVINGS!",
    "type": "curiosity",
    "score": 85,
    "reason": "The ASMR-style fast drawing immediately captures attention and builds curiosity."
  },
  "offer": { "type": "discount", "details": "Save up to $900 a year on average when you switch to GEICO insurance" },
  "cta": { "text": "Learn more", "type": "learn_more" },
  "brand": { "name": "GEICO", "logo_visible": true, "logo_first_seen_second": 0.0, "logo_position": "bottom-right", "first_mention_second": 0.0 },
  "claims": [{ "text": "save up to $900 a year on average", "type": "financial", "needs_proof": true }],
  "policy_risks": [],
  "scores": {
    "overall": { "score": 85, "reason": "An engaging, creative UGC-style video that effectively delivers the value proposition with strong visual branding." }
  },
  "copy_checks": [
    { "field": "primary_text", "length": 149, "limit": 125, "note": "Meta shows about the first 125 characters before 'See more'." }
  ],
  "landing_page": {
    "url": "https://www.geico.com/landingpage/go558/?soa=79976",
    "read": true,
    "score": 90,
    "reason": "The ad and landing page both focus on GEICO auto insurance, savings, and discounts.",
    "mismatches": ["The specific $900 average savings figure is not prominently displayed above the fold on the landing page."]
  }
}

The model watched the video with its sound, one frame a second: music, no voice, the gecko drawn from the first second, and the doodled words read with their timing in on_screen_text. The savings figure is a claim that needs proof, not a policy risk. The landing page, read in parallel, scored 90 for message match, with the one gap a conversion specialist would point out.

Ad policy check: catch risky claims before review

Platforms reject ads that promise guaranteed returns, use false urgency, or address the viewer's personal attributes ("Are you overweight?"); Meta lists these areas in its Advertising Standards. The API reads creative and copy together and names the area, the evidence, and the policy family to read.

To test it, we paired a public photo of a bus-shelter poster ("Make money work", Wikimedia Commons) with ad copy we wrote to break the rules:

Python
payload = {
    "url": "https://upload.wikimedia.org/.../960px-Make_money_work_...jpg",
    "primary_text": "Guaranteed returns, zero risk. Turn 500 EUR into 5,000 EUR "
    "in 30 days. Only 3 places left today!",
    "headline": "Make your money work",
    "cta": "Sign up",
    "platform": "meta",
}
r = requests.post(
    f"{API}/v1/ad-creative/analyze", headers=HEADERS, json=payload, timeout=120
)
for risk in r.json()["policy_risks"]:
    print(risk["severity"], risk["area"], "->", risk["evidence"])
JSON
{
  "policy_risks": [
    {
      "area": "financial_promises",
      "severity": "high",
      "evidence": "Guaranteed returns, zero risk. Turn 500 EUR into 5,000 EUR in 30 days.",
      "explanation": "Platforms prohibit promising guaranteed high financial returns with zero risk and unrealistic multiplier claims in a short timeframe.",
      "rules": [{ "platform": "meta", "policy": "Meta Advertising Standards: Financial and insurance products and services" }]
    },
    {
      "area": "misleading_urgency",
      "severity": "medium",
      "evidence": "Only 3 places left today!",
      "explanation": "Artificial scarcity claims require strict substantiation and are frequently flagged as misleading.",
      "rules": [{ "platform": "meta", "policy": "Meta Advertising Standards: Unacceptable business practices (deceptive features)" }]
    }
  ],
  "scores": {
    "clarity": { "score": 70, "reason": "The headline is concise, but the actual product or service being offered is obscured by the context of a job board brand posting crypto-style ad copy." },
    "overall": { "score": 50, "reason": "The creative is a mismatched photo of an OOH poster paired with high-risk financial ad copy, making it non-compliant and confusing for users." }
  }
}

Both risks were caught with their evidence quoted. The review also noticed what a human would: the poster belongs to a job board and the copy reads like an investment pitch. Without platform, each risk lists the policy families of all four platforms.

A pre-check that flags every ad is useless: on 34 live Meta ads in five languages no risk was raised, and ordinary claims ("save up to $900 a year on average") land in claims, not in policy_risks.

Tag a Meta Ad Library export in bulk

For the bulk of a library, POST /v1/ad-creative/tags returns a short, fixed set of tags (style, hook, angle, offer, CTA, awareness stage, audience, risk areas, overall score) for up to 10 ads per call, at 1 credit per image and 3 per started minute of video.

Four live ads from the library in one call (an ExpressVPN image, a French Typology video, a German Planeo video and a Spanish MAPFRE image):

JSON
{
  "count": 4,
  "succeeded": 4,
  "results": [
    {
      "id": "1050973360756394", "success": true, "media_type": "image", "aspect_ratio": "1:1",
      "is_ad": true, "language": "en", "brand": "ExpressVPN", "product_category": "VPN and Cybersecurity",
      "style": "static_product", "hook_type": "bold_claim", "angle_type": "problem_solution",
      "offer_type": "none", "cta_type": "shop_now", "awareness_stage": "problem_aware",
      "emotional_triggers": ["security", "curiosity"], "policy_risk_areas": [], "overall_score": 78
    },
    {
      "id": "1112351285040176", "success": true, "media_type": "video", "duration_seconds": 48.6,
      "aspect_ratio": "9:16", "is_ad": true, "language": "fr", "brand": "Typology",
      "product_category": "Skincare", "style": "ugc_testimonial", "hook_type": "product_reveal",
      "angle_type": "price_value", "offer_type": "none", "has_captions": true,
      "ugc_style": true, "policy_risk_areas": [], "overall_score": 85
    },
    "..."
  ]
}

The German Planeo video came back as ugc_testimonial with a bold_claim hook (88), the Spanish MAPFRE image as lifestyle with a get_quote CTA (70). The batch took 9 seconds and used 8 credits (1 + 3 + 3 + 1). The tags use fixed vocabularies, so they can be counted. This script tags a scraper export in batches of 10, prints which angles and hooks a competitor relies on, and writes a CSV:

Python
import csv
import json
from collections import Counter

ads = json.load(open("ad_library_export.json", encoding="utf-8"))
rows = []
for start in range(0, len(ads), 10):
    batch = [
        {
            "id": ad["id"],
            "url": ad["media_url"],
            "headline": ad.get("headline"),
            "cta": ad.get("cta"),
        }
        for ad in ads[start : start + 10]
    ]
    r = requests.post(
        f"{API}/v1/ad-creative/tags",
        headers=HEADERS,
        json={"ads": batch, "platform": "meta"},
        timeout=120,
    )
    r.raise_for_status()
    rows += [item for item in r.json()["results"] if item["success"]]

print(Counter(row["angle_type"] for row in rows).most_common(5))
print(Counter(row["hook_type"] for row in rows).most_common(5))

fields = ["id", "brand", "style", "hook_type", "angle_type", "offer_type"]
fields += ["cta_type", "awareness_stage", "overall_score"]
with open("ad_tags.csv", "w", newline="", encoding="utf-8") as out:
    writer = csv.DictWriter(out, fieldnames=fields, extrasaction="ignore")
    writer.writeheader()
    writer.writerows(rows)

An ad whose link has expired comes back with "success": false and its own error, and is not billed; the rest of the batch is kept. Send the top scorers, or the ads that have run for months, to the full review afterwards.

Analyze right after scraping. Ad library media links expire after a few days; an expired one returns 400 media_unavailable, not billed. Scrape the ad again rather than retrying.

Errors are not billed. A creative that promotes nothing, sent without copy, is refused:

JSON
{
  "error": {
    "status": 400,
    "code": "not_an_ad",
    "message": "This creative does not promote anything: The image is a landscape photograph of a grassy field near the ocean at sunset, with no brand, product, service, or promotional elements present. Not billed."
  }
}

Other 400s: unsupported_file, media_too_long (over 3 minutes), file_too_large (80 MB by URL, 30 MB through /v1/ad-creative/analyze/upload). A 503 (ai_error, capacity_exhausted) is worth one retry and is never billed.

Latency. The image above took between 5.7 and 13.8 seconds over two runs, the video with its landing page about 8, the tag batch 9; a 3-minute video that needs re-encoding takes close to a minute.

Cost. An image review is 5 credits, a video 10 up to 60 seconds plus 4 per extra started minute, a landing page 2. The free BASIC plan gives 10 credits a day (two image reviews or one short video). PRO is $4.99 a month for 2,800 credits: about $0.009 per image review, $0.018 per short video, $0.0018 per tagged image. The ad analyzers we found on the Apify Store charge $0.01 to $0.02 per image and $0.03 to $0.075 per video. Plans are on the Ad Creative Analyzer page, parameters in the API reference.

If you only need what is said in a video, a speech to text API with timestamps does it; this API's voice-over transcript agreed with it on 95 % of the words (median of 12 videos). To read landing pages as structured data, see the AI web scraper.

What the ad creative analysis API does not do

  • It does not scrape ad libraries. It reads the links you give it, from your own scraper or an export.
  • No CTR or ROAS prediction. The scores are a structured expert opinion with reasons. Use them to compare creatives and choose what to test, then let the platform's numbers decide.
  • Scores move a little between runs. At temperature 0, 32 of 34 ads analysed twice kept their overall score within 5 points, 10 at most, and quick tags such as the offer type can change from one call to the next. Compare ads scored in the same period, and read the reasons.
  • Not a policy decision. policy_risks names the area and the policy family to review; Meta, TikTok or Google decide. Rules that depend on targeting, account history or local law are out of reach.
  • One creative per ad. A carousel is read from its first card.
  • Some landing pages cannot be read. Pages behind bot protection or rendered only by JavaScript come back with read: false and the reason (6 of 14 in our tests); the review is still returned and the 2 credits are not counted.

Frequently asked questions

Can I analyze Facebook Ad Library ads with an API?

Yes. Scrape the ads with any Meta Ad Library scraper, then send each ad's media URL (often snapshot.videos[0].video_hd_url or snapshot.images[0].original_image_url) with its copy. Do it soon after scraping: the links expire within days.

Are the ad scores a prediction of performance?

No. They rate the creative itself on an anchored 0-100 scale with a reason each. They help rank ideas before you spend; only delivery data gives the real CTR or ROAS.

Does it check Meta, TikTok and Google ad policies?

It flags the content areas reviewers question (personal attributes, health claims, before/after, financial promises, false urgency and others), quotes the evidence and names the policy family per platform. It does not guarantee approval.

Which video formats and lengths are supported?

Videos up to 3 minutes (60 seconds on the free plan), 80 MB by URL or 30 MB by upload, in MP4, MOV, WEBM and most other containers. Images in JPEG, PNG, WEBP, HEIC, GIF, BMP or TIFF.

Can I get the review in another language?

Yes, with language. Transcripts, on-screen texts and quoted evidence stay in the ad's own language; reasons and new hooks follow the language you ask for.

Get started

Ad Creative Analyzer API

Ad image or video to hook, angle, offer, CTA, transcript, policy risks and 0-100 AI scores.

  • Advertising
  • Ad Creative
  • Meta Ads
  • Python
  • LLM