Instagram Ads Library Scraper (Meta Ad Library) avatar

Instagram Ads Library Scraper (Meta Ad Library)

Pricing

from $3.00 / 1,000 ad scrapeds

Go to Apify Store
Instagram Ads Library Scraper (Meta Ad Library)

Instagram Ads Library Scraper (Meta Ad Library)

Scrape ads that run on Instagram from the Meta Ad Library by keyword, advertiser page ID or Ad Library URL. Returns ad text, images and videos, carousel cards, links, call to action, start and end dates, days active and all platforms each ad runs on. No login.

Pricing

from $3.00 / 1,000 ad scrapeds

Rating

0.0

(0)

Developer

PulseData

PulseData

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

26 minutes ago

Last modified

Features

Limited permissions

Share

This Instagram ads scraper exports ads that run on Instagram from the Meta Ad Library, which is where Meta publishes Instagram's ad library. Search by keyword, advertiser page ID or a pasted Ad Library URL, and get one row per ad with text, headline, link, call to action, media URLs, carousel cards, run dates, days active and advertiser page. Ads that run only on Facebook, Messenger, Threads or Audience Network are left out.

Features

  • Scrape all Instagram ads of an advertiser by numeric page ID, active and stopped.
  • Search the Instagram ad library by keyword in one country or all countries, or as an exact phrase.
  • Scrape a Meta Ad Library URL you set up in the browser, with the Instagram filter added.
  • Filter Instagram ads by country, status and media type.
  • Download Instagram ad creatives: image URLs, HD and SD video URLs with preview images, and every card of a carousel ad.
  • See how long each Instagram ad has been running with startDate, endDate and daysActive.
  • Track new Instagram ads of a competitor with a scheduled run that returns only ads not delivered before.
  • Export Instagram ads to CSV, Excel or JSON through the Apify dataset or API.

Use cases

  • Competitor and creative research: every creative a competitor runs on Instagram, when it started and whether it is still live, for a swipe file.
  • Agency pitches and audits: a prospect's current Instagram ads and run dates.
  • Influencer and brand monitoring: find ads that mention a brand name, including ads from creators and resellers.
  • Market scans by country: which brands advertise a product category on Instagram in Germany, France or the US right now.
  • Lead generation: check which companies advertise on Instagram at all. Pass a list of page IDs and set maxAdsPerQuery to 1.

Input

FieldWhat it does
queries (required)One search per line. A keyword such as running shoes, "running shoes" for the exact phrase, a numeric page ID such as 15087023444 for every Instagram ad of one advertiser, or a URL copied from facebook.com/ads/library.
countryISO code (US, DE, GB), a country name such as United Kingdom, or ALL. Default ALL.
activeStatusall (default), active or inactive.
mediaTypeall (default), image, video, meme or none (text only).
maxAdsPerQueryStop after this many ads per line. Default 100, 0 for no limit.
proxyConfigurationResidential Apify Proxy by default; Meta blocks datacenter IPs.
onlyNewAdsMonitor mode: output and charge only ads not delivered on an earlier run. Default false.
monitorStoreNameKey-value store that remembers delivered ads. Empty (default) means a name derived from the searches and filters.

Example input:

{
"queries": ["nike", "\"running shoes\"", "15087023444"],
"country": "US",
"activeStatus": "active",
"mediaType": "all",
"maxAdsPerQuery": 200
}

A pasted Ad Library URL keeps its own country, status and media filters. A platform filter in the URL, for example Facebook only, is removed, because this actor always returns Instagram ads.

How to find a page ID

Vanity URLs such as instagram.com/nike cannot be resolved logged out. Open the advertiser in the Ad Library and copy the number after view_all_page_id= in the address bar. Lines the actor cannot use are skipped with a note in the log.

Track new Instagram ads of a competitor

Turn on onlyNewAds to get only the ads an advertiser launched since your last run:

{ "queries": ["15087023444"], "country": "ALL", "maxAdsPerQuery": 0, "onlyNewAds": true }

The actor stores the ID of every delivered ad in a key-value store in your Apify account; on later runs those ads are neither output nor charged. The first run returns every ad up to maxAdsPerQuery and fills the store. Save the input as a task, add an Apify schedule and an integration (email, Slack, Google Sheets, Make, Zapier or a webhook).

  • maxAdsPerQuery sets how far down the list a run looks, and ads seen before count towards it. Use 0 to watch every ad.
  • Without monitorStoreName each different input keeps its own history; the run log names the store.
  • An ad cut off by the run timeout or the maximum cost per run is not remembered and comes on the next run.
  • Schedule one run per store; two parallel runs can both deliver the same new ad.

Output

One item per ad:

{
"query": "15087023444",
"country": "ALL",
"adArchiveId": "1702938977100376",
"adLibraryUrl": "https://www.facebook.com/ads/library/?id=1702938977100376",
"pageId": "15087023444",
"pageName": "Nike",
"pageUrl": "https://www.facebook.com/nike/",
"pageLikeCount": 39505027,
"pageCategories": ["Sportswear", "Product/service"],
"isActive": true,
"startDate": "2025-04-07",
"endDate": "2026-10-09",
"daysActive": 550,
"publisherPlatforms": ["FACEBOOK", "INSTAGRAM", "AUDIENCE_NETWORK", "MESSENGER"],
"displayFormat": "DPA",
"body": "Bring sports more fully into your day with the Nike App.",
"caption": "itunes.apple.com",
"linkUrl": "http://itunes.apple.com/app/id1095459556",
"ctaText": "Install now",
"ctaType": "INSTALL_MOBILE_APP",
"imageUrls": [],
"videos": [],
"cards": [
{
"title": "Nike Run Swift 3 Women's Road Running Shoes",
"linkUrl": "https://www.nike.com/ph/t/run-swift-3-road-running-shoes-2fHbzp/DR2698-002",
"linkDescription": "₱3,995",
"ctaText": "Install Now",
"imageUrl": "https://scontent..."
}
],
"spend": null,
"impressions": null,
"currency": null,
"scrapedAt": "2026-10-09T08:21:09.707Z"
}

publisherPlatforms lists every platform the ad runs on. Instagram is always one of them, and many ads also run on Facebook and other Meta platforms. Items also include title, linkDescription, pageProfilePictureUrl, collationId, collationCount, categories, disclaimer, reachEstimate, targetedOrReachedCountries and containsSensitiveContent. Each video has hdUrl, sdUrl and previewImageUrl. collationCount is the number of near-identical versions Meta groups under one ad.

What Meta publishes

Spend, impressions and reach are published as ranges only for political and issue ads; for ordinary commercial ads these fields are null. The actor does not open each ad's detail page, so the EU reach and targeting breakdown is not included, and neither are clicks, conversions or media files. Organic posts, reels and stories are not in the Ad Library.

Pricing

Pay per result:

EventPricePer 1,000
ad-scraped (one ad returned)$0.003$3.00
apify-actor-start (once per run)$0.01

Worked example: 200 ads of one advertiser cost 200 x $0.003 + $0.01 = $0.61. The current price is always shown on the Pricing tab of this page. You can set a maximum cost per run in the run options; the actor then stops cleanly at that amount and keeps everything it collected.

In monitor mode (onlyNewAds) only new ads are charged. A daily run that finds 10 new ads costs 10 x $0.003 + $0.01 = $0.04, and a run that finds nothing new pays only the $0.01 start event.

FAQ

Do I need an Instagram account or a Meta API token? No. The actor reads the public Ad Library logged out, with no cookies, and sees only what a logged-out visitor sees.

Why does it use the Facebook Ad Library? Meta runs one ad library for all its platforms. Instagram ads are listed there with Instagram as a placement, and the actor applies that filter for you.

Can I get all Instagram ads of an advertiser, not just 100? Set maxAdsPerQuery to 0. Large advertisers have thousands of ads.

How fast is it? In our test runs 100 ads took about 40 seconds and 300 ads from two searches took about a minute.

How long do the image and video links work? Meta signs media URLs and they expire after some days, so download files soon after the run.

Can I get only ads that run on Instagram and nowhere else? The actor returns every ad that includes Instagram. Filter the dataset on publisherPlatforms if you want ads with Instagram as the only placement.

Is it legal to use this data? The actor returns public ad data only. If you process ads from individuals, you are responsible for handling that personal data lawfully, for example under the GDPR.

Example pages