Go to example tasks

Scrape Instagram ads for a keyword

Find active ads that ran on Instagram for the keyword skincare in the United States, using a Meta Ad Library search URL filtered to Instagram placements.

Try for free
Facebook Ads Library API & Instagram Ads Scraper
Facebook Ads Library API & Instagram Ads Scraperwhoareyouanas/meta-ad-lite-scraper
Ad ID
Advertiser
Page ID
Active
+12 fields
Text
Number
Boolean
List
Object

Input

Ad Library search URL:https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&publisher_platforms[0]=instagram&q=skincare&search_type=keyword_unordered
Maximum ads:25

Output fields

Ad ID
Advertiser
Page ID
Active
Ad copy
Headline
Call to action
Landing page
Format
Platforms
Started
Ended
Partnership creator
Images
Videos
View ad

How it works

Sign up on Apify or log in

The Facebook Ads Library API & Instagram Ads Scraper Actor is ready to run with the inputs already set for "Scrape Instagram ads for a keyword". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Scrape Instagram ads for a keyword" task

The Facebook Ads Library API & Instagram Ads Scraper Actor will start running based on the input automatically. You can also change all the input fields, like ad library search url and maximum ads, to match your specific use case.

Receive the "Scrape Instagram ads for a keyword" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as ad id, advertiser, page id, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Scrape Instagram ads for a keyword" task via API.

Image

Integrate "Scrape Instagram ads for a keyword" into your workflow

Connect "Scrape Instagram ads for a keyword" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

The Ad Library URL includes publisher_platforms[0]=instagram, the same filter the Ad Library applies when you choose Instagram as the platform. Each ad's platforms field lists every platform it ran on.

Yes. Set up a search in the Meta Ad Library in your browser, copy the address, and paste it as the search URL. Its country, status, platform, language, sort and date filters are kept; tracking parameters such as fbclid are ignored.

No. It returns ads from the Meta Ad Library that ran on Instagram, not organic posts or profile data.

You pay per ad saved to the dataset, at the rate on the Actor's Pricing tab, with no start fee. Lower maxAds to spend less; duplicates and skipped records are never charged.