Apify example task · whoareyouanas/meta-ad-library-single-ad-lookup

Check a Meta Ad Library ad by ID

Look up one Facebook or Instagram ad by its Meta Ad Library ID. Check the lookup outcome and active state, then inspect available ad copy and media links.

Actor
Facebook Ad Library Video Downloader & Ad Lookup
Result limit
1 (adId)
Estimated cost
Up to $0.00605
Run options
1 GB memory · 300 s timeout

Example updated 2026-11-23 · actor build 1.5.2 · runs in your own Apify account

01 / About the actor

Facebook Ad Library Video Downloader & Ad Lookup

Look up one known Facebook or Instagram ad using its Meta Ad Library ID or URL. Retrieve available creative details and an explicit lookup result for audits and follow-up research.

Known-ad lookup

Start with a Library ID rather than discovering an advertiser's whole inventory.

Creative context

Collect available copy, advertiser, CTA, landing page, images, videos, dates, and platforms.

Explicit outcomes

Review lookupStatus, status, and error fields before interpreting whether an ad is active.

02 / Input

The exact input this example runs.

adId is required and accepts a numeric Library ID or supported Meta Ad Library URL. Page IDs, Facebook post IDs, and Ads Manager campaign IDs are different identifiers. One ad is looked up per run.

input.json · facebook-ad-creative-lookup
{
  "adId": "1075137158633135",
  "country": "US"
}
Input fields used by this example, their values and what they control
FieldValue in this exampleWhat it controls
adIdChange this"1075137158633135"One Meta/Facebook Ad Library ID as a string (for example, 1075137158633135), or an HTTPS facebook.com/ads/library/?id=... URL. Returns that ad only. Keyword searches, advertiser Page URLs and Ads Manager IDs are not supported.
countryChange this"US"Lookup country: ALL (default) or a two-letter country code such as US, GB or DE. Overrides country filters in the supplied URL. Use the country where you viewed the ad when available.

03 / Make it yours

Change these fields for your own research.

  1. 01 · adId

    Ad Library ID or URL

    One Meta/Facebook Ad Library ID as a string (for example, 1075137158633135), or an HTTPS facebook.com/ads/library/?id=... URL. Returns that ad only. Keyword searches, advertiser Page URLs and Ads Manager IDs are not supported.

    Example: "1075137158633135"

  2. 02 · country

    Country

    Lookup country: ALL (default) or a two-letter country code such as US, GB or DE. Overrides country filters in the supplied URL. Use the country where you viewed the ad when available.

    Example: "US"

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.

Selected fields from a run on 2026-11-01, build 1.4.2
{
  "lookupStatus": "success",
  "status": "active",
  "adId": "1075137158633135",
  "active": true,
  "country": "US"
}

Columns in the “Ad creative and details” view

lookupStatus

Lookup outcome

status

Ad activity status

adLibraryUrl

Ad Library URL

adId

Ad ID

brand

Advertiser

body

Ad copy

linkTitle

Headline

images

Images

videos

Videos

linkUrl

Landing page URL

ctaText

CTA

ctaUrl

CTA URL

platforms

Platforms

startDate

Start Date

endDate

End Date

active

Active flag (check errors)

error

Lookup error

libraryID

Library ID

format

Format

scrapedAt

Scraped At

country

Country

extractionMethod

Extraction method

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.00605: up to 1 results at $0.006 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-24. 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 Facebook Ad Library Video Downloader & Ad Lookup 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~meta-ad-library-single-ad-lookup/run-sync-get-dataset-items?format=json' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"adId":"1075137158633135","country":"US"}'

Coverage & interpretation

Check the result before relying on it.

Questions

About this example.

What does the "Check a Meta Ad Library ad by ID" example collect?

Look up one Facebook or Instagram ad by its Meta Ad Library ID. Check the lookup outcome and active state, then inspect available ad copy and media links. It runs Facebook Ad Library Video Downloader & Ad Lookup, published by whoareyouanas on Apify.

Which input does this example use?

Ad Library ID or URL (adId) set to "1075137158633135"; Country (country) set to "US". The full JSON input is shown on this page.

How much does it cost to run this example?

At most about $0.00605: up to 1 results at $0.006 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 Ad Library ID or URL, Country. 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 Facebook Ad Library Video Downloader & Ad Lookup 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.

Can I use my own Facebook or Instagram ad?

The Facebook ad creative lookup accepts one numeric Meta Ad Library ID as a string or an HTTPS Facebook Ad Library link containing ?id=. Replace the example ID and select the lookup country.

Can an AI assistant run this lookup through MCP?

The Facebook ad creative lookup Actor is available through Apify MCP. Connect mcp.apify.com, select whoareyouanas/meta-ad-library-single-ad-lookup, and supply adId and country. Read the completed run dataset.

Does unknown status mean the ad is inactive?

The Facebook ad creative lookup returns active, inactive or unknown status. Unknown activity or a lookup error does not prove an ad stopped running. Check lookupStatus and error before using the result.

Does this task download video files or measure ad performance?

The Facebook ad creative lookup returns available media URLs, which may expire. It does not download or archive media, search for new ads, or return spend, conversions, ROAS or winning-ad scores.

More examples

Related tasks you can copy.

AI Ad Analyzer

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.

View example

Facebook Group & Page Scraper

Collect images and video links from ESA Facebook posts

Sample public ESA Facebook posts with media extraction enabled. Review available image links, video links and source post URLs.

View example

Google Ads Transparency Scraper

Export Samsung UK YouTube ads to CSV

Get up to five Samsung YouTube ads shown in the UK from Google's Ads Transparency Center. Export the available advertiser and creative data to CSV.

View example

Google Maps Reviews Export to CSV, Excel & JSON

Export recent Google Maps reviews to CSV

Collect up to 20 recent Google Maps reviews from a business URL, including ratings, review text and owner replies. Inspect quality status, then export the dataset to CSV.

View example

LinkedIn Profile Scraper

Review public LinkedIn executive career history

Look up Satya Nadella’s public LinkedIn profile to inspect available headline, roles and education fields. Use a different public profile URL for your own research.

View example

Facebook Ads Library API & Instagram Ads Scraper

View a competitor's Facebook ads by Page ID

View and export the active Facebook and Instagram ads of one competitor, Burger King in the United States, by its Facebook Page ID. Swap in your competitor's Page ID to analyze their creatives.

View example

Guides

Read more about this workflow.