Search Ads Library
facebook.ads-library.search
Searches the Facebook Ads Library for active and inactive ads by advertiser or keyword.
Request
curl -X POST https://data.upscrape.com/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"query":"Meta AI"},"capability":"facebook.ads-library.search"}'
Input
| Field | Type | Required | Description |
|---|---|---|---|
cursor
| string | optional | Pagination cursor from previous response |
limit
| integer | optional | Maximum number of results to return |
query
| string | required | Search query string |
Output
| Field | Type | Required | Description |
|---|---|---|---|
items
| — | optional | |
next_cursor
| string | optional | Next page cursor |
query
| string | optional | Search query |
summary
| — | optional | |
total_count
| integer | optional | Total ads found |