inputobject · requiredProvider-specific public source, URL or search criteria.
Collect ads from a Meta Ad Library search or Facebook page.
by ApifyReady to run$0.0025 per result · $0.25 per 100 results
“Find 10 active Facebook ads in the US that mention coffee.”
Your agent works out the exact inputs, such as IDs, dates and settings, from what you ask.
{
"tool_id": "apify.curious-coder-facebook-ads-library-scraper",
"input": {
"input": {
"url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=coffee&search_type=keyword_unordered&media_type=all"
},
"maxItems": 10
}
}{
"items": [
{
"url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=coffee&search_type=keyword_unordered&media_type=all",
"total": 50001,
"page_id": "119900441421720",
"end_date": 1795248000,
"position": 9,
"snapshot": {
"body": {
"text": "Rise, shine, and scramble. From fresh coffee to your morning favorites, our in-suite kitchens let you cook up comfort every day. \n\nWant more stays with your own kitchen? Download the IHG app at IHG.com/DownloadNow and start planning your next suite stay."
},
"page_id": "119900441421720",
"page_name": "Candlewood Suites",
"page_is_deleted": false,
"page_profile_uri": "https://www.facebook.com/CandlewoodSuites/"
},
"ads_count": 1,
"is_active": true,
"page_name": "Candlewood Suites",
"categories": [
"UNKNOWN"
],
"gated_type": "ELIGIBLE",
"start_date": 1770796800,
"ad_archive_id": "1235897841583167",
"ad_library_url": "https://www.facebook.com/ads/library/?id=1235897841583167",
"is_aaa_eligible": false,
"page_is_deleted": false,
"hide_data_status": "NONE",
"has_user_reported": false,
"end_date_formatted": "2026-11-21 08:00:00",
"publisher_platform": [
"INSTAGRAM"
],
"start_date_formatted": "2026-02-11 08:00:00",
"impressions_with_index": {
"impressions_index": -1
},
"regional_regulation_data": {
"finserv": {
"is_deemed_finserv": false,
"is_limited_delivery": false
},
"tw_anti_scam": {
"is_limited_delivery": false
}
},
"contains_sensitive_content": false,
"contains_digital_created_media": false
}
],
"item_count": 10
}Copy the prompt and paste it into your agent, then tell it what you need.
Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use Facebook Ad Library Scraper (tool ID: apify.curious-coder-facebook-ads-library-scraper). Ask me for the details you need, then show me the result.
Provider access is included. If your agent isn't connected to Scrollport yet, it will help you set that up.
No agent yet? Create your account on the web and connect one from your dashboard later.
Scrollport has no free tier: it costs $0.0025 per result ($0.25 per 100 results), paid per use from a prepaid wallet with no subscription. Connecting your first agent adds $1 of trial credit, so you can try it before adding funds.
No. Your agent runs it through your Scrollport connection (MCP, the Scrollport CLI or the HTTP API), and Scrollport handles access to Apify, so you don't sign up with Apify or manage an API key.
Collect ads from one Meta Ad Library search URL, with keyword, country and filters set in the URL, or from one Facebook page URL. Each ad includes the advertiser page, creative text, publisher platforms, active status and start and end dates. maxItems is 10 to 100. You're charged per ad returned. The worked example shows selected fields: long text is shortened, nested lists keep one item and expiring media links are left out.
inputobject · requiredProvider-specific public source, URL or search criteria.
maxItemsinteger · optionalMaximum number of records to return.
minimum: 10 · maximum: 100
item_countnumberitemsarrayResult records.
upstream_error: The scraper could not return usable results; the wallet was not charged.Check the input and limits, or retry later.