# Scrape the Meta ad library by Page or search URL

Provider: Apify
Final price: $0.005/result
Success rate: n/a

Scrape publicly running Facebook and Instagram ads for a page or Ad Library search

## Parameters

- timeout (integer, optional)
- maxItems (integer, optional)
- maxTotalChargeUsd (number, optional)

## Example

```curl
curl -X POST 'https://toolswitch.dev/v1/tools/apify.meta-ads.library.search?timeout=90&maxItems=1&maxTotalChargeUsd=0.05' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"onlyTotal":true,"startUrls":[{"url":"https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=project%20management"}],"activeStatus":"active","resultsLimit":1,"isDetailsPerAd":false,"enrichWithEcommerceData":false}'
```

[View on Toolswitch](https://toolswitch.dev/ko/tools/apify.meta-ads.library.search)
