# Microsoft Ads Library Scraper: Bing Ads, Impressions, Targeting (`kvali/microsoft-ads-library-scraper`) Actor

Returns the ads a company ran on Bing in the EU and EEA, from Microsoft's official Ad Library: ad text, landing page, images, first and last shown dates, impressions range, top countries, targeting and who paid. Search by advertiser, website or keyword. No login.

- **URL**: https://apify.com/kvali/microsoft-ads-library-scraper.md
- **Developed by:** [Kvali Data](https://apify.com/kvali) (community)
- **Categories:** Lead generation, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 ads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does Microsoft Ads Library Scraper do?

**Microsoft Ads Library Scraper** returns the ads a company ran on **Bing** and the Microsoft Advertising network in the **European Union and EEA**, one row per ad, from the [Microsoft Ad Library](https://adlibrary.ads.microsoft.com), Microsoft's official public ad archive. Give it an **advertiser name, a website, an advertiser ID, an Ad Library link or a few words from the ad**. Each ad comes with:

- 📝 the **headline, description, display URL and landing page**, plus **images** for product, multimedia and audience ads
- 📅 **first shown**, **last shown** and **days shown**, so you can see which ads are new and which have run for years
- 📊 the **impressions range** (for example "500K - 1M") and **each country's share of impressions**
- 🎯 the **targeting** the advertiser used (location, age, gender, Microsoft audiences, their own audience lists)
- 💳 **who paid** for the ad, which often reveals the media agency behind a brand
- 🏢 an **Advertisers** mode that returns one row per company: country, verified or not, how many ads, which websites

It reads Microsoft's **official, open Ad Library API**. No login, no Microsoft account, no API key, no browser.

### Why scrape the Microsoft Ad Library?

- **Competitor research on Bing.** See every search ad a competitor runs in Europe, how long each has been live and where it gets its impressions. Ads that run for years are usually the ones that work.
- **Copy and creative ideas.** Collect headlines and descriptions for any market and language, ready for a swipe file or an AI summary.
- **Agency and media buying research.** "Paid by" shows which agency pays for a brand's ads.
- **Lead generation.** Check a list of companies in *Advertisers* mode to see which ones advertise on Bing in Europe.
- **Brand protection.** Search the ad text for your brand name to find resellers, coupon sites and affiliates bidding on it.
- **Regulatory and academic research.** The library exists because of the EU Digital Services Act; this Actor turns it into a dataset.

### Use it together with Google Ads Transparency Scraper

The output uses the same field names as our [Google Ads Transparency Scraper](https://apify.com/kvali/google-ads-transparency-scraper) wherever the meaning is the same (`advertiserId`, `advertiserName`, `creativeId`, `format`, `domain`, `adText`, `imageUrl`, `firstShown`, `lastShown`, `daysShown`, `regions`, `regionCount`, `adUrl`, `query`, `region`), and every row says `"source": "microsoft-ads-library"`. Run both for the same competitor and put the rows in one table to compare their Google and Bing advertising.

### How to scrape Bing ads from the Microsoft Ad Library

1. Click **Try for free**.
2. Under **Advertisers, websites, IDs or links**, enter one or more of:
   - a website: `nike.com` (ads whose landing page is on nike.com)
   - an advertiser name: `HelloFresh` (matched to the advertiser accounts with that name)
   - an advertiser ID: `4295000966`
   - a link copied from adlibrary.ads.microsoft.com (an advertiser page or an ad page)
3. Or search **the ad text**: `meal kit`, `"black friday"` (quotes match the exact phrase).
4. Optionally pick **countries** and **dates**.
5. Leave **Ad details** on for dates, impressions, countries, targeting and payer, or turn it off for speed.
6. Click **Start**, then download the data as JSON, CSV, Excel or HTML, or get it through the API.

### How much does it cost to scrape the Microsoft Ad Library?

Pay per result. There's **no start fee** and no monthly rental. Ad details are included in the price:

| Event | Price |
|---|---|
| Ad (text, landing page, images, and with details: dates, impressions, countries, targeting, payer) | **$1.00 per 1,000 ads** |
| Advertiser summary row (*Advertisers* mode) | **$3.00 per 1,000 advertisers** |

Examples:

- 200 ads from a competitor, with details: **$0.20**
- Checking 100 companies in *Advertisers* mode: **$0.30**

Higher Apify plans get a discount (10% on Silver, 20% on Gold and up). On the Apify Free plan, the monthly credits are enough to try it with thousands of ads.

### How fast is it?

Microsoft lets anyone use the Ad Library API without a key, but then allows only about **4 to 5 requests a minute**. The Actor keeps to that pace instead of hammering the API, so runs don't fail:

- **Without ad details:** about **90 ads a minute** (24 ads per request).
- **With ad details:** about **4 ads a minute**, because Microsoft gives the details only one ad at a time. 100 ads take about 25 minutes.

Tip: run a first pass without details to see what's there, then a second run with details for the advertisers or ads you care about. Or schedule the run and let it work in the background.

### Input

| Field | What it does |
|---|---|
| `queries` | Advertiser names, websites, advertiser IDs or Ad Library links, one per line. |
| `keywords` | Words to find in the ad text, from any advertiser. |
| `resultType` | `ads` (one row per ad, default) or `advertisers` (one summary row per advertiser). |
| `maxAdsPerQuery` | Stop after this many ads per line (per advertiser for names). Default 10, maximum 1,000. |
| `includeDetails` | Dates, impressions, countries, targeting and payer. On by default; one extra request per ad. |
| `countries` | Only ads shown in these EU/EEA countries (`DE`, `FR`, `NL`, ...). Empty = all 30. |
| `dateFrom`, `dateTo` | Only ads shown in this period (YYYY-MM-DD). |
| `maxAdvertisersPerQuery` | For names: how many matching advertiser accounts to use. For websites: how many advertisers found there to go through. Default 3. |
| `proxyConfiguration` | Not needed. If the run's address keeps getting rate-limited, the Actor moves to one Apify Proxy address by itself, at the same pace. |

Example input:

```json
{
    "queries": ["nike.com", "HelloFresh", "4295000966"],
    "keywords": ["meal kit"],
    "countries": ["DE", "AT"],
    "dateFrom": "2026-01-01",
    "maxAdsPerQuery": 50,
    "includeDetails": true
}
```

### Output

One row per ad. A real example with *Ad details* on (the country list is shortened):

```json
{
    "query": "nike.com",
    "region": "DE,AT",
    "source": "microsoft-ads-library",
    "advertiserId": "4295000966",
    "advertiserName": "Nike - EMEA",
    "creativeId": "73255237735509",
    "format": "TEXT",
    "domain": "nike.com",
    "title": "Ropa para mujer en Nike.com - Compra ropa Nike",
    "description": "Muévete con libertad. Disfruta de la comodidad. Descubre ropa Nike para cualquier deporte.. Descubre la colección de ropa Nike, diseñada pensando en tu rendimiento.",
    "adText": "Ropa para mujer en Nike.com - Compra ropa Nike\nMuévete con libertad. Disfruta de la comodidad. ...",
    "displayUrl": "www.nike.com/Mujer/Mono",
    "destinationUrl": "https://www.nike.com/es/w/womens-clothing-5e1x6z6ymx6",
    "imageUrl": null,
    "imageWidth": null,
    "imageHeight": null,
    "assets": [],
    "assetCount": 0,
    "adUrl": "https://adlibrary.ads.microsoft.com/ad/73255237735509",
    "firstShown": "2023-06-01T00:00:00.000Z",
    "lastShown": "2026-11-03T00:00:00.000Z",
    "daysShown": 1252,
    "paidBy": "INITIATIVE MEDIA B.V. / DPC",
    "impressionsRange": "500K - 1M",
    "impressionsMin": 500000,
    "impressionsMax": 1000000,
    "regions": [
        { "region": "IE", "country": "Ireland", "impressionShare": 78.7 },
        { "region": "ES", "country": "Spain", "impressionShare": 21.1 },
        { "region": "RO", "country": "Romania", "impressionShare": 0.1 },
        { "region": "AT", "country": "Austria", "impressionShare": 0 }
    ],
    "regionCount": 27,
    "targeting": [
        { "type": "Location", "excluded": false },
        { "type": "MicrosoftAudiences", "excluded": false }
    ],
    "removedReason": null,
    "detailsStatus": "ok",
    "scrapedAt": "2026-11-05T19:38:56.934Z"
}
```

Product and multimedia ads also have `imageUrl` and an `assets` list with every image and its size.

In *Advertisers* mode, one row per advertiser (`approxTotalAds` 1000 means 1,000 or more):

```json
{
    "source": "microsoft-ads-library",
    "query": "HelloFresh",
    "region": null,
    "advertiserId": "4295006578",
    "advertiserName": "HelloFresh SE",
    "country": "Germany",
    "verified": true,
    "approxTotalAds": 1000,
    "adsFound": 24,
    "adsFoundLimitReached": true,
    "formats": { "TEXT": 23, "IMAGE": 1, "VIDEO": 0 },
    "domains": [
        "hellofresh.de",
        "hellofresh.fr",
        "hellofresh.be",
        "hellofresh.nl"
    ],
    "advertiserUrl": "https://adlibrary.ads.microsoft.com/advertiser/4295006578",
    "scrapedAt": "2026-11-05T19:41:54.486Z"
}
```

### FAQ

#### Which countries are covered?

Only ads shown in the **EU and EEA** (27 EU countries plus Iceland, Liechtenstein and Norway). Microsoft built the library for the EU Digital Services Act, so ads shown only in the UK, the US or elsewhere are not in it. Advertisers from anywhere are included if their ads reached Europe.

#### How far back does it go?

Microsoft keeps an ad for **one year after it last ran**. Ads still running can go back to 2023 (impression data starts in June 2023).

#### What does "0.0%" in a country's impression share mean?

Microsoft only lists countries where the ad was shown. 0.0% means a share below 0.05%, not zero.

#### How many ads can I get per search?

Microsoft returns at most about **1,000 ads per search**. For a bigger advertiser, split the work: one run per country (`countries`) or per date range.

#### How does a website search work?

The Actor searches the ad text for the website, keeps only ads whose landing page or display URL is on that site (so an Amazon ad that mentions "nike.com" is left out), and then goes through the ads of the advertisers it found that way. Many ads never spell out the website, so when that finds too little, it also tries the advertisers named like the website ("HelloFresh" for hellofresh.de), again keeping only their ads that lead to that site.

#### How are advertiser names matched?

Microsoft's search also matches inside words ("nike" finds "Kliniken"). The Actor uses exact names first, then names that contain the word, and skips partial matches when there are better ones. Set `maxAdvertisersPerQuery` to choose how many accounts to use, or paste the advertiser ID or link to be exact.

#### Is "format" exact?

Microsoft doesn't publish the ad type. `format` is TEXT for search ads without images, IMAGE when the ad has images (product, multimedia, audience ads) and VIDEO when it has a video.

#### Is it legal to scrape the Microsoft Ad Library?

The Ad Library is public by law, and Microsoft offers this API to everyone without sign-up. The Actor reads only that public data at the pace Microsoft allows, and stores nothing beyond what the library shows. Some advertiser names belong to sole traders; treat names as personal data where your local rules say so. If you're unsure about your use, ask a lawyer.

#### Can I run it on a schedule or through the API?

Yes. Use Apify **Schedules** to run it daily or weekly, and the Apify API, webhooks or integrations (Make, Zapier, Google Sheets, Slack) to send the results where you need them.

### Other Actors by Kvali Data

- [Google Ads Transparency Scraper](https://apify.com/kvali/google-ads-transparency-scraper): every Google ad a company runs, with text, videos and countries.
- [Google News Scraper](https://apify.com/kvali/google-news-scraper): news articles with full text.
- [Google Trends Scraper](https://apify.com/kvali/google-trends-scraper): compare any number of keywords on one scale.
- [Bulk Domain Availability Checker](https://apify.com/kvali/domain-availability-checker): check thousands of domain names at once.

Found a problem or need a field? Open an issue on the **Issues** tab and we'll look at it quickly.

If this Actor helped you, a rating on the Store helps others find it.

# Actor input Schema

## `queries` (type: `array`):

What to get ads for, one per line. Mix freely: an advertiser name ("Nike"), a website ("nike.com": ads whose landing page is on that site), a Microsoft advertiser ID ("4295000966") or a link copied from adlibrary.ads.microsoft.com (advertiser or ad page).

## `keywords` (type: `array`):

Find ads by what they say, from any advertiser, for example "meal kit" or "vpn". Put words in quotes to match the exact phrase.

## `resultType` (type: `string`):

"Ads" returns one row per ad. "Advertisers" returns one summary row per advertiser (country, verified, ads found, formats, websites): a quick way to see which companies advertise on Bing in Europe.

## `maxAdsPerQuery` (type: `integer`):

Stop after this many ads for each line above (for an advertiser name, for each matching advertiser). Microsoft returns at most about 1,000 ads per search; narrow it down with countries or dates to get others.

## `includeDetails` (type: `boolean`):

Adds first and last shown dates, the impressions range, each country's share of impressions, the targeting used (location, age, gender, audiences) and who paid for the ad. Needs one extra request per ad, and Microsoft allows only about 4 requests a minute without a key, so expect about 4 ads a minute. Turn off for about 90 ads a minute. Same price either way.

## `countries` (type: `array`):

Only ads shown in these countries (two-letter codes). Leave empty for all. The Ad Library covers only the EU and EEA, 30 countries: DE, FR, IT, ES, NL, PL, SE, BE, AT, IE, DK, FI, NO, PT, CZ, RO, GR, HU, SK, BG, HR, SI, LT, LV, EE, LU, CY, MT, IS, LI.

## `dateFrom` (type: `string`):

Only ads shown on or after this date (YYYY-MM-DD). Microsoft keeps ads for one year after they last ran.

## `dateTo` (type: `string`):

Only ads shown on or before this date (YYYY-MM-DD).

## `maxAdvertisersPerQuery` (type: `integer`):

A name can match several advertiser accounts ("Nike - EMEA", "Nike Retail BV", ...). Use this many of the best matches. For a website: how many of the advertisers found there to go through for more ads.

## `proxyConfiguration` (type: `object`):

Not needed. If the run's address keeps getting rate-limited by Microsoft, the Actor moves to one Apify Proxy address by itself and keeps the same slow pace.

## Actor input object example

```json
{
  "queries": [
    "nike.com",
    "HelloFresh",
    "4295000966"
  ],
  "keywords": [
    "meal kit",
    "\"black friday\""
  ],
  "resultType": "ads",
  "maxAdsPerQuery": 5,
  "includeDetails": true,
  "countries": [],
  "dateFrom": "2026-01-01",
  "dateTo": "2026-06-30",
  "maxAdvertisersPerQuery": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `ads` (type: `string`):

One row per ad: advertiser, ad text, landing page, image, dates, impressions and countries (or one row per advertiser in Advertisers mode).

## `advertisers` (type: `string`):

Advertiser summaries (Advertisers mode).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "nike.com"
    ],
    "maxAdsPerQuery": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("kvali/microsoft-ads-library-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "queries": ["nike.com"],
    "maxAdsPerQuery": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("kvali/microsoft-ads-library-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "nike.com"
  ],
  "maxAdsPerQuery": 5
}' |
apify call kvali/microsoft-ads-library-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kvali/microsoft-ads-library-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/9Tupyw6E2KLn9uxID/builds/sxCQK4zeP9pZwhv06/openapi.json
