How can I reliably scrape the Meta Ads Library for the latest ad launches?
I’m building a scraper to monitor the Meta (Facebook) Ads Library for new ads as soon as they start running. From inspecting network requests, I see that the Ads Library web app uses a GraphQL endpoint: POST https://www.facebook.com/api/graphql/ x-fb-friendly-name: AdLibrarySearchPaginationQuery The request body looks like this (sanitized example): text doc_id=7268381195839281 variables={ "search_input": { "q": "ganancias", "country": "PA", "ad_type": "ALL", "active_status": "ACTIVE", "media_type": "ALL", "search_type": "KEYWORD_UNORDERED" }, "count": 30 } The response includes search_results_
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.