본문으로 건너뛰기
cccskills
무료GitHub에 공개

apify-facebook-ads-library-scraper

Research Meta Ad Library ads by advertiser or keyword with creative links, dates and disclosed reach or spend through the harshmaur/facebook-ads-library-scraper Apify Actor.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Facebook
설치 방법 보기

포함된 파일(1)

  • SKILL.md5.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Facebook Ads Library Scraper

Turn "what ads does X run" into one run of harshmaur/facebook-ads-library-scraper and return one row per ad. The Actor reads the public Meta Ad Library. It takes two kinds of input: an Ad Library search URL for a keyword, or a Facebook Page for one advertiser. The agent's job is to build the right URL and to cap the ad count.

Disclosure: the Actor is paid per result and is built by the skill author. Links carry no affiliate parameters.

When to Use

Use to research public Meta ads by advertiser or keyword, export ad creative and dates, or review disclosed reach and spending.

Example prompts

Prompts this skill handles:

  • "Pull every active ad Gymshark runs in the US and sort them by how long they have been live."
  • "Find ads for 'protein powder' in the UK that have run for more than 60 days, with their video links."
  • "Export the last 30 days of ads from facebook.com/allbirds to a spreadsheet."
  • "How much did political advertisers in Germany spend on ads about energy?"

Out of scope (the boundary):

  • "Create or pause my Facebook ads" or "show my ad account ROAS" — use the Meta Marketing API with the user's own account.
  • "Find TikTok or Google ads" — other ad libraries; use a different Actor.

Prerequisites

  • Apify account (sign up). The free plan's monthly credit covers about 10,000 ads.
  • Authentication via one of:
  • Apify CLI (npm install -g apify-cli), or the Apify MCP server (see "Calling the Actor").

Workflow

Step 1 — Pick the input type

The user gives youPut in urlsNotes
A brand, an advertiser, a Page linkThe Page URL: https://www.facebook.com/<handle>, a profile.php?id= link, or the numeric Page IDAll ads of that advertiser. Filter with the scrapePageAds.* fields below.
A keyword, product or topicAn Ad Library search URL (build it as shown below)All advertisers whose ads match the words in that country.
An Ad Library URL the user copiedThat URL, unchangedIt keeps every filter the user set on the site.

Build a keyword search URL like this. Change only country, q, active_status and search_type:

https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=protein%20powder&search_type=keyword_unordered&media_type=all
  • country: a 2-letter code (US, GB, DE), or ALL.
  • q: URL-encoded words.
  • search_type: keyword_unordered (all words, any order) or keyword_exact_phrase.
  • active_status: active, inactive or all.
  • ad_type=political_and_issue_ads: political and social-issue ads. Only these carry spend and impressions outside the EU and UK.

Filters for Page URLs only:

FieldValues
scrapePageAds.activeStatusall (default), active, inactive
scrapePageAds.period"" (all time), last24h, last7d, last14d, last30d
scrapePageAds.sortByimpressions_desc (default), most_recent
scrapePageAds.countryCode2-letter code or ALL (default)

Amounts and extras:

FieldMeaning
countMost ads for the whole run, over all URLs. Default 100. 0 means no limit: never send 0 without a cost check.
limitPerSourceMost ads per URL, so one big advertiser does not use up count.
scrapeAdDetailstrue adds the advertiser text and the EU and UK transparency data: reach, age range, gender, countries. It makes the run slower.
runTagA label copied onto every row. Useful when you merge runs.

Step 2 — Build the input

{
  "urls": [{ "url": "https://www.facebook.com/gymshark" }],
  "scrapePageAds.activeStatus": "active",
  "scrapePageAds.countryCode": "US",
  "count": 200
}

Note the field names with a dot, for example "scrapePageAds.activeStatus". They are flat keys, not nested objects. Fetch the live schema when a field is in doubt:

apify actors info "harshmaur/facebook-ads-library-scraper" --input --json \
  --user-agent apify-awesome-skills/apify-facebook-ads-library-scraper 2>/dev/null

Step 3 — Estimate the cost, then run

The price is per ad in the dataset. There is no start fee, and scrapeAdDetails costs nothing extra:

Apify planPer 1,000 ads
Free$0.50
Starter$0.47
Scale$0.43
Business and higher$0.40

cost ≈ count × $0.0005. 1,000 ads cost at most $0.50. Under about 4,000 ads, run it. Above that, or with count: 0, state the estimate and get a yes first.

apify actors call "harshmaur/facebook-ads-library-scraper" \
  -i '{"urls":[{"url":"https://www.facebook.com/gymshark"}],"scrapePageAds.activeStatus":"active","count":200}' \
  --json \
  --user-agent apify-awesome-skills/apify-facebook-ads-library-scraper \
  2>/de

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ranbot-ai/awesome-skills72026년 10월 21일 업데이트

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ranbot-ai/awesome-skills72026년 10월 21일 업데이트

Usar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ranbot-ai/awesome-skills72026년 10월 21일 업데이트

Usar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ranbot-ai/awesome-skills72026년 10월 21일 업데이트

Usar tras definir el sector de un proyecto: prepara un dossier en español con contexto, normas aplicables, patrones UX y riesgos, distinguiendo fuentes verificadas de hipótesis.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ranbot-ai/awesome-skills72026년 10월 21일 업데이트

AI-powered presentation generation via the 2slides API — create slides from text, match a reference image style, summarize documents into decks, add AI voice narration, and export pages/audio. Use f

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ranbot-ai/awesome-skills72026년 10월 21일 업데이트

ranbot-ai의 스킬 모두 보기

이 스킬의 문제 신고