Use case

How to Find Winning Facebook Ads for Dropshipping

Dropshippers and e-commerce brands look for the same thing in the Ad Library: products and creatives that are already making money for someone else. Nobody publishes their ROAS, but one signal is public and surprisingly reliable: how long an ad keeps running. This guide explains why, how the winning_score of the API turns it into a number, and how to rank the ads of a niche with a few lines of code.

Published 7 min read

What a "winning ad" really means

A winning ad is one that pays for itself: the advertiser earns more from it than they spend. From the outside you cannot see the spend of a commercial ad (Meta only publishes spend for political and issue ads, see what you can know about competitor spend), and you certainly cannot see the revenue. What you can see is behaviour.

Advertisers switch off ads that lose money, usually within days. Media buyers testing products kill most creatives after a short test, keep the few that convert, and then scale them: they duplicate them into new ad sets, test new versions of the same video, and leave them running for weeks or months. So the public traces of a winner are:

  • Longevity: the ad has been active for a long time. An ad still running after 60 days has survived many budget reviews.
  • Variants: the same creative appears in many ads (the Ad Library groups them, and the API returns the count as variants_count). Duplicating a creative is what you do when it works.
  • Reach: for ads delivered in the EU, the library publishes how many people saw the ad. A large reach means a large budget behind it.

Spy tools sell the same idea under different names ("engagement", "hot", "trending"). The advantage of computing it from the Ad Library yourself is that you know exactly what the number means.

days_active and winning_score

Every ad returned by the Winning Facebook Ads API and the other ad endpoints carries two derived fields, at no extra cost:

  • days_active: whole days from started_at to ended_at, or to today (UTC) while the ad is still active. It is null when the start date is unknown, or for an inactive ad without an end date.
  • winning_score: a number from 0 to 100, null when days_active is null. It is a documented formula, not a black box.

The formula

Longevity weighs most, because it is the strongest of the three signals:

PartFormulaMaximum
Longevity L70 × min(days_active, 90) / 9070 points at 90 days or more
Variants V15 × min(variants_count − 1, 9) / 915 points at 10 versions or more (1 version = 0)
EU reach R15 × min(log10(1 + reach) / 6, 1)15 points at 1,000,000 people reached

The score is L + V + R when the EU reach is known. The reach comes from transparency.eu.reach, so it is only available on the ad details endpoint and only for ads delivered in the EU; when it is missing the score is (L + V) × 100 / 85, so a missing reach never lowers it. The result is rounded to the nearest integer. A few examples: an ad running 90 days or more with 10 or more versions scores 100; 90 days with a single version and no reach scores 82; 30 days with 4 versions scores 33. The same ad can score slightly differently in a list (no reach) and in its detail (with reach).

Find winners in a niche, step by step

You need an API key (create a free account, 65 free calls a month) in the SCRAPEADLIBRARY_API_KEY environment variable. Each call returns up to 30 ads and costs one credit.

1. Search the product keyword with the winning filters

Search the words a store would use in the ad text: the product ("posture corrector", "pet hair remover"), the problem it solves, or the offer ("free shipping", "50% off"). Pick the country you sell to. Then add min_days_active=30 to drop the ads younger than a month and sort=longevity to put the oldest first:

curl -s "https://api.scrapeadlibrary.com/v1/ads/search?q=posture%20corrector&country=US&status=active&min_days_active=30&sort=longevity" \
  -H "X-API-Key: $SCRAPEADLIBRARY_API_KEY"

2. Read a few pages and rank them

This script reads up to five pages of a keyword, keeps the ads running for 30 days or more and prints the top 15 by score, one line per advertiser so a single brand does not fill the list:

import os
import requests

API = "https://api.scrapeadlibrary.com"
HEADERS = {"X-API-Key": os.environ["SCRAPEADLIBRARY_API_KEY"]}
params = {"q": "posture corrector", "country": "US", "status": "active", "min_days_active": 30}

ads, cursor = [], None
for _ in range(5):  # 5 pages = 5 credits
    page_params = {**params, "cursor": cursor} if cursor else params
    page = requests.get(API + "/v1/ads/search", params=page_params, headers=HEADERS, timeout=60).json()
    ads.extend(page["data"])
    if not page["has_more"]:
        break
    cursor = page["next_cursor"]

best = {}
for ad in ads:
    advertiser = ad["page"]["id"]
    if advertiser not in best or ad["winning_score"] > best[advertiser]["winning_score"]:
        best[advertiser] = ad

for ad in sorted(best.values(), key=lambda a: a["winning_score"], reverse=True)[:15]:
    print(f'{ad["winning_score"]:>3}  {ad["days_active"]:>4}d  x{ad["variants_count"]:<3} {ad["page"]["name"]}  {ad["link_url"]}')

3. Open the best ones in full

For the handful of ads that look promising, one more call each to GET /v1/ads/{ad_id} returns the advertiser page, the payer and, for ads delivered in the EU, the reach and its breakdown by country, age and gender. The score then includes the reach part. The EU transparency data guide explains how to read the breakdown, which is often the best clue to who is actually buying the product.

{
  "data": {
    "id": "1550534860016399",
    "days_active": 112,
    "variants_count": 7,
    "winning_score": 92,
    "transparency": { "eu": { "reach": 48210, "age_min": 25, "age_max": 65, "gender": "all" } }
  },
  "credits_used": 1,
  "cached": false
}

What to look at once you have the list

A ranked list is a starting point, not a verdict. For each ad near the top, check:

  1. The landing page (link_url): is it a one-product store, a general store or a big brand? One-product stores with long-running ads are the classic dropshipping signal.
  2. The other ads of the same advertiser: list them with GET /v1/pages/{page_id}/ads (page ads API). A store that has run dozens of creatives for the same product is scaling it.
  3. The creative itself: the hook in the first three seconds, the format (UGC, demo, before and after), the offer in title and body. Save the files: the creatives guide has a downloader.
  4. Other countries: run the same search with another country. A product that wins in the US and has just started in Germany is a different opportunity from one that is everywhere.

Caveats: when longevity lies

Longevity is the best public signal, but it can mislead. Keep these cases in mind:

  • Brand and retargeting ads. Big brands leave always-on ads running for months with small budgets. They score high and tell you little about a product. Filter them out by advertiser, or focus on smaller stores.
  • Forgotten ads. An ad with a tiny budget can run for a long time simply because nobody switched it off. A single version with no EU reach is the typical profile; that is why variants and reach are part of the score.
  • Seasonality. An ad that ran from October to December is a Christmas product. Use active_from and active_to to see when ads ran, and compare with the same window a year earlier.
  • New winners score low. A product launched two weeks ago cannot have a high score yet. To catch trends early, search without min_days_active, sort by started_at yourself and watch which new ads quickly gain variants: the competitor tracking guide shows how to monitor that every day.
  • Running is not profit. Some advertisers keep losing ads alive for brand reasons or by mistake. Treat the score as a way to decide what to look at first.

At one credit per call, scanning 20 product keywords five pages deep costs 100 calls a week: a tenth of what $5 buys (1,000 calls), with errors never billed. If you would rather explore by hand first, the free Ad Library search shows the same ads with their start dates.

Frequently asked questions

What is a good winning_score?
Above 80 usually means an ad running for close to three months or more; above 90 adds many versions or a large EU reach. Compare scores within the same niche and country rather than against a fixed threshold.
Why do I get fewer ads than the limit with min_days_active?
The Ad Library cannot filter by age, so the filter is applied to the page of results that comes back. Ads younger than your threshold are dropped, and ads with an unknown days_active too. Follow next_cursor to read more pages.
Does the score cost extra?
No. days_active and winning_score are computed for every ad in every list and detail, at the normal price of one credit per call.
Can I see how much a winning ad spends?
Not for commercial ads: Meta publishes spend ranges only for political and issue ads. For ads delivered in the EU, the reach is the closest public proxy of the budget.
Does this work for Instagram ads?
Yes. Add platforms=instagram to keep only the ads that run on Instagram; the score is computed the same way.

Related guides

← All guides

Try it on your own competitors

Create a free account and get 65 free calls every month, no credit card. One API key works on every endpoint.