Apify example task · whoareyouanas/creative-intelligence

Score an ad creative with your own AI API key

Analyze one sample image ad for hooks, visible text, creative attributes and improvement suggestions. Add your own OpenAI API key in the secret apiKey field before running. Provider charges apply in addition to Apify usage; AI scores are not measured ad performance.

Actor
AI Ad Analyzer: Ad Creative Analysis & Scoring
Result limit
1 (maxAds)
Estimated cost
Up to $0.00505
Run options
1 GB memory · 180 s timeout

Example updated 2026-11-20 · actor build 0.3.2 · runs in your own Apify account

01 / About the actor

AI Ad Analyzer: Ad Creative Analysis & Scoring

Analyze existing ad creative assets using your own AI-provider key. Supply JSON, CSV, or a scraper dataset to produce structured creative observations, scoring fields, and improvement suggestions.

Use your own creative inputs

Provide public image or video URLs, CSV rows, or an existing Apify dataset.

Choose an AI provider

Use supported OpenAI, xAI, or Anthropic settings with your own provider credentials.

Batch or agent workflow

Run a bounded batch or use the documented MCP tools for asynchronous creative analysis.

02 / Input

The exact input this example runs.

The deployed schema requires provider. Analysis also needs a matching provider key or configured provider environment credentials, plus creative assets. Replace the example asset URL and key; example.com is a placeholder, not a working creative.

input.json · score-ad-creative-byok
{
  "mode": "batch",
  "provider": "openai",
  "creatives": [
    {
      "id": "example-image",
      "brand": "Example Brand",
      "body": "Explore the new collection.",
      "cta": "Learn More",
      "assetUrl": "https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800",
      "assetType": "image"
    }
  ],
  "maxAds": 1,
  "analyzeVideos": false
}
Input fields used by this example, their values and what they control
FieldValue in this exampleWhat it controls
modeChange this"batch"Batch analyzes the supplied creatives and exits. MCP serves agent tools at /mcp; Standby automatically selects MCP regardless of this setting.
providerChange this"openai"The AI provider to use for creative analysis.
creativesChange this{"id":"example-image","brand":"Example Brand","body":"Explore the new collection.","cta":"Learn More","assetUrl":"https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800","assetType":"image"}Simple JSON rows for anyone who has ad copy and creative assets. Each row needs at least an assetUrl, assetUrls, imageUrl, videoUrl, or mediaUrl. Common fields: id, brand, body, cta, assetUrl, assetType.
maxAdsChange this1Maximum number of creatives to analyze from all source inputs. Set to 0 for all available creatives, capped at 10000 per run.
analyzeVideosChange thisfalseIf enabled, video ads are downloaded and sampled into frames for multimodal analysis. Disable to skip video ads.
Other inputs you can add (8)
Deployed actor input fields, types, defaults, and descriptions
FieldType / requiredDefaultPurpose
modelstringNot specifiedOptional model name. Leave empty to use a provider-specific vision-capable default.
csvInputstringNot specifiedPaste CSV from a spreadsheet. Supported headers include id, brand, body, cta, assetUrl, assetUrls, mediaUrl, imageUrl, videoUrl, assetType, format, active, runTimeDays, multipleVersions, similarAdCount, totalPlatforms, platforms. Use semicolon, pipe, or new lines inside assetUrls for multiple assets.
sourceDatasetIdstringNot specifiedOptional Apify dataset ID/name from a previous ads scraper run. If set, the actor reads ads from this dataset.
adsarray[]Backward-compatible ad objects from scraper output. Each item can contain libraryID, brand, body, ctaText, format, images, videos, active, runTimeDays, multipleVersions, similarAdCount, and totalPlatforms.
maxConcurrencyinteger2Number of ads to analyze in parallel. Provider rate limits and image/video size affect reliability; 1-3 is recommended.

Minimum: 1 · Maximum: 10

maxVideoFramesinteger8Maximum frames extracted from each video. More frames improve context but increase cost and latency.

Minimum: 1 · Maximum: 20

videoFrameIntervalSecondsinteger2Sample one frame every N seconds until max video frames is reached.

Minimum: 1 · Maximum: 30

imageInputModestring"url"Use URL mode for public images. Use download mode if the provider cannot fetch image URLs directly.

Options: url, download

03 / Make it yours

Change these fields for your own research.

  1. 01 · mode

    Execution Mode

    Batch analyzes the supplied creatives and exits. MCP serves agent tools at /mcp; Standby automatically selects MCP regardless of this setting.

    Example: "batch"

  2. 02 · provider

    AI Provider

    The AI provider to use for creative analysis.

    Example: "openai"

  3. 03 · creatives

    Creative Rows (JSON)

    Simple JSON rows for anyone who has ad copy and creative assets. Each row needs at least an assetUrl, assetUrls, imageUrl, videoUrl, or mediaUrl. Common fields: id, brand, body, cta, assetUrl, assetType.

    Example: {"id":"example-image","brand":"Example Brand","body":"Explore the new collection.","cta":"Learn More","assetUrl":"https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800","assetType":"image"}

  4. 04 · maxAds

    Max Ads

    Maximum number of creatives to analyze from all source inputs. Set to 0 for all available creatives, capped at 10000 per run.

    Example: 1

  5. 05 · analyzeVideos

    Analyze Videos

    If enabled, video ads are downloaded and sampled into frames for multimodal analysis. Disable to skip video ads.

    Example: false

Run it in three steps

  1. Open the example on Apify and select Try for free to copy it into your Apify account.
  2. Replace the sample values above with your own target and keep the limit small.
  3. Start the run, then export the dataset as JSON, CSV or Excel.

04 / Output

What the results table shows.

Columns in the “Overview” view

libraryID

Library ID

brand

Brand

analysis_status

Status

analysis_type

Type

provider

Provider

model

Model

ai_score

AI Score

performance_score.total

performance_score.total

total_weighted_score

Final Score

theme

Theme

tone

Tone

visual_style

Visual Style

hook

hook

product_display

product_display

human_display

human_display

offer_display

offer_display

improvement_suggestions

improvement_suggestions

error

error

A view selects columns for the table. The full JSON export keeps every field, including nested arrays and objects.

05 / Cost

What this example costs to run.

At most about $0.00505: up to 1 results at $0.005 each (result) plus $0.00005 for the start event at 1 GB of memory. Fewer results cost less. The live Pricing tab on Apify is authoritative.

Prices checked 2026-11-22. Set a run spending limit in Apify when you widen the input.

06 / API

Run the same input from your code.

This call starts a billable run of AI Ad Analyzer: Ad Creative Analysis & Scoring with this example's input and returns the dataset items when it finishes. Synchronous calls wait up to five minutes; for longer runs, POST to /runs instead and read the run's default dataset when it succeeds. Keep the token in an environment variable.

cURL · run and return the results
curl --request POST \
  'https://api.apify.com/v2/acts/whoareyouanas~creative-intelligence/run-sync-get-dataset-items?format=json' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"mode":"batch","provider":"openai","creatives":[{"id":"example-image","brand":"Example Brand","body":"Explore the new collection.","cta":"Learn More","assetUrl":"https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800","assetType":"image"}],"maxAds":1,"analyzeVideos":false}'

Coverage & interpretation

Check the result before relying on it.

Questions

About this example.

What does the "Score an ad creative with your own AI API key" example collect?

Analyze one sample image ad for hooks, visible text, creative attributes and improvement suggestions. Add your own OpenAI API key in the secret apiKey field before running. Provider charges apply in addition to Apify usage; AI scores are not measured ad performance. It runs AI Ad Analyzer: Ad Creative Analysis & Scoring, published by whoareyouanas on Apify.

Which input does this example use?

Execution Mode (mode) set to "batch"; AI Provider (provider) set to "openai"; Creative Rows (JSON) (creatives) set to {"id":"example-image","brand":"Example Brand","body":"Explore the new collection.","cta":"Learn More","assetUrl":"https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800","assetType":"image"}; Max Ads (maxAds) set to 1; Analyze Videos (analyzeVideos) set to false. The full JSON input is shown on this page.

How much does it cost to run this example?

At most about $0.00505: up to 1 results at $0.005 each (result) plus $0.00005 for the start event at 1 GB of memory. Fewer results cost less. The live Pricing tab on Apify is authoritative.

How do I change it for my own research?

Open the example on Apify and select Try for free to copy it into your account, then edit Execution Mode, AI Provider, Creative Rows (JSON), Max Ads, Analyze Videos. Keep the result limit small for the first run and check the output before scaling up.

Can I run it from the API or on a schedule?

Yes. Send the same JSON input to the AI Ad Analyzer: Ad Creative Analysis & Scoring run endpoint with your Apify API token, or save the copied task in your Apify account and add a schedule. Results land in the run's default dataset as JSON, CSV or Excel.

More examples

Related tasks you can copy.

Guides

Read more about this workflow.