
Fast Facebook Ads Library Scraper (Richest output)
Pricing
$16.00/month + usage

Fast Facebook Ads Library Scraper (Richest output)
Stealthily decode competitors' Facebook ad strategies in real-time—scrape active campaigns, creatives, and audience targeting data with residential proxies. Gain actionable insights, track trends, and optimize your ads using their winning tactics, undetected.
0.0 (0)
Pricing
$16.00/month + usage
12
Total users
143
Monthly users
30
Runs succeeded
>99%
Issues response
5.5 hours
Last modified
2 days ago
TypeError: Cannot read properties of null (reading 'length') at routes.js:57
Closed
Hi, I encountered a runtime error that causes the actor to crash when json.data.adsLibrary.edges
is null.
Error message: TypeError: Cannot read properties of null (reading 'length') at file:///usr/src/app/dist/routes.js:57:16
The issue seems to occur when the Facebook Ads Library response does not include valid JSON, or the edges
field is missing or null. This causes an unhandled exception during execution.
Suggested fix:
Please add a null check around the edges
field, such as:
if (json?.data?.adsLibrary?.edges && Array.isArray(json.data.adsLibrary.edges)) { // proceed } else { log.warning("Skipping: edges array is null or invalid"); return; }
Without this check, batch runs over many URLs fail unpredictably. Thank you for your help!
https://console.apify.com/actors/3853UUZQG6pjjdw11/runs/OKS7YepbIC9CS4FlZ#log

Hey mate, thanks for pointing it out, I’ll see to fix it, let me know if you have other suggestions or even need for a new scraper
benow_support
😘

hey mate, pushed some changes, please try it and let me know