Facebook Ads Library Scraper ๐ŸŽฏ๐Ÿ“ˆ - Fast & cheap ๐Ÿ’ฌโญ avatar
Facebook Ads Library Scraper ๐ŸŽฏ๐Ÿ“ˆ - Fast & cheap ๐Ÿ’ฌโญ

Pricing

$18.99/month + usage

Go to Store
Facebook Ads Library Scraper ๐ŸŽฏ๐Ÿ“ˆ - Fast & cheap ๐Ÿ’ฌโญ

Facebook Ads Library Scraper ๐ŸŽฏ๐Ÿ“ˆ - Fast & cheap ๐Ÿ’ฌโญ

Developed by

Storm_Scraper

Storm_Scraper

Maintained by Community

๐Ÿš€ Extract Facebook (Meta) Ads Data ๐Ÿ“Š from one or multiple Pages! Gather page details, reach estimates, impressions, ad IDs, and more ๐Ÿ“…. Download in JSON, CSV, or Excel formats ๐Ÿ”ฝ for seamless integration into apps, spreadsheets, and reports. Perfect for analysis and insights ๐Ÿ“ˆ๐Ÿ’ป.

5.0 (3)

Pricing

$18.99/month + usage

16

Total users

253

Monthly users

76

Runs succeeded

>99%

Issues response

0.38 hours

Last modified

5 days ago

SI

publisher_platforms string is iterated into individual characters

Closed

siralogic opened this issue
6 days ago

Description

sql Kopiรฉr Rediger What happened
When I set "publisher_platforms": "facebook" in the input JSON, the scraperโ€™s logs show:

โ€ฆ&publisher_platform=f,a,c,e,b,o,o,kโ€ฆ

yaml Kopiรฉr Rediger

instead of the expected:

โ€ฆ&publisher_platform=facebookโ€ฆ

csharp Kopiรฉr Rediger

Because the code treats the string as an iterable and pushes each character, no valid platform is matched and zero ads are returned.

What I expected
Passing "publisher_platforms": "facebook" should result in a single query parameter publisher_platform=facebook, returning only Facebook ads.

Reproduction steps

  1. Run actor with input:
    {
    "active_status": "active",
    "ad_type": "all",
    "country_name": "United Kingdom GB",
    "keyword": "real estate",
    "maxitems": 3,
    "media_type": "all",
    "publisher_platforms": "facebook",
    "start_date_min": "2025-03-05",
    "start_date_max": "2025-03-18"
    }

Observe the run logs: publisher_platform=f,a,c,e,b,o,o,k

No ads are returned.

Suggested fix In the request-building code, wrap input.publisher_platforms into an array if itโ€™s a string:

js Kopiรฉr Rediger const platforms = Array.isArray(input.publisher_platforms) ? input.publisher_platforms : [input.publisher_platforms]; for (const p of platforms) { params.publisher_platform.push(p); }

ScrapeStorm avatar

Thanks for reaching out ! Got it

SI

siralogic

5 days ago

Can you let me know when it will be working?

ScrapeStorm avatar

It works perfectly. Please see the last comment on the other issue section you created. Thanks