facebook.com
Search the Meta (Facebook) Ad Library
Input
limit optionalMaximum ads to return (default 25, about one page). Above that, further pages are loaded; Facebook may rate-limit those from datacenter browsers.
query optionalKeyword or advertiser name to search for. Required unless pageId is given.
adType optionalDefault all.
pageId optionalNumeric Facebook page id to list all ads of one advertiser (the pageId returned by this script).
country optional2-letter ISO country code where the ads ran (e.g. FR, US), or ALL. Default ALL.
mediaType optionalDefault all.
exactPhrase optionalMatch the query as an exact phrase instead of any of its words.
activeStatus optionalDefault active.
Output
ads requiredcount requiredquery optionalpageId optionalcountry optionalhasMore optionaltotalApprox optionalMeta's own approximate result count.
activeStatus optional