# Microsoft Ads Library Scraper & API - Bing Ads Transparency (`scrapewise/microsoft-ads-library-scraper`) Actor

Scrape the Microsoft Ads Library (Bing ads shown in the EU and EEA) by keyword, advertiser, country and date: ad copy, landing URL, who paid, shown dates, impressions and country share. For agencies, PPC and brand protection. Only-new mode. No login.

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

## Pricing

from $1.90 / 1,000 ad delivered with details

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

## Microsoft Ads Library Scraper - Bing Ads Transparency

**Scrape the Microsoft Ads Library (Bing search ads shown in the EU and EEA) by keyword, advertiser, country and date, without a login: ad title, ad text, display URL, landing page, advertiser and its country, who paid for the ad, first and last shown dates, impressions range and the share of impressions per country.**

For PPC managers and SEO teams watching competitors on Bing, agencies preparing pitches and audits, brand-protection teams looking for ads that bid on their name, and researchers studying search advertising in Europe.

### Microsoft ads library scraper at a glance

- **Price:** US$ 2.50 per 1,000 ads with details on the Free plan, US$ 1.00 per 1,000 without details, plus US$ 0.003 per run
- **Search by keyword or by advertiser.** An advertiser name returns every account of that brand (per country, per agency) in one search
- **Details on every ad:** who paid, first and last shown dates, impressions range (also as numbers) and impression share per country
- **Filters:** countries (EU and EEA), shown from and until a date
- **Up to 1,000 ads per search**; split bigger ones by country or date
- **Only-new mode** for daily or weekly schedules: you pay only for ads you have not received before
- **No login, no browser.** Unknown advertisers and empty searches return free error rows

### Quick start

```json
{
  "searchTerms": ["standing desk"],
  "countries": ["de"],
  "maxItems": 50
}
```

Every ad of a competitor in the Netherlands, last 30 days:

```json
{
  "advertisers": ["TripAdvisor"],
  "countries": ["nl"],
  "startDate": "30 days",
  "maxItems": 0
}
```

Weekly alert for new ads on your brand keyword, without details (cheaper):

```json
{
  "searchTerms": ["your brand name"],
  "includeDetails": false,
  "onlyNew": true,
  "maxItems": 0
}
```

### Input

| Field | What it does |
|---|---|
| `searchTerms` | Keywords to find in the ads, one per line. Each line is one search. |
| `advertisers` | Advertiser names, one per line. Every advertiser account whose name contains the line is included. |
| `advertiserIds` | Numeric advertiser IDs from earlier results. |
| `countries` | 2-letter codes (de, fr, nl, es, it, pl, se, ie...) or English names. EU and EEA only. Empty = all. |
| `startDate`, `endDate` | Shown from / until: a date (`2026-09-01`) or a period (`30 days`, `3 months`). |
| `includeDetails` | On (default): paid by, dates, impressions and country share. Off: cheaper summary rows. |
| `maxItems` | Cap per keyword or advertiser name. 0 = every ad (up to 1,000 per search). Default 50. |
| `onlyNew` | Remember what was delivered in earlier runs and skip it, for free. |
| `proxyConfiguration` | Apify Proxy by default. |

### Example output

A real row from a run of 23 Oct 2026 (country shares shortened):

```json
{
  "type": "ad",
  "adId": "75110546455586",
  "advertiserName": "Amazon Europe Core S.à r.l",
  "advertiserId": "4295031035",
  "title": "Stand Laptop Desk - Amazon.de® - Stand Laptop Desk Kaufen",
  "description": "Erhalten  auf Amazon Angebote für Stand Laptop Desk im Bereich Bürobedarf & Schreibwaren. Büromaterial, Schreibwaren, Lehrmittel und mehr. Kostenlose Lieferung möglich",
  "displayUrl": "www.amazon.de/Stand Laptop Desk/shop",
  "destinationUrl": "https://www.amazon.de/s/?ie=UTF8&keywords=stand+laptop+desk&index=aps",
  "paidFor": "Amazon Europe Core S.à r.l",
  "firstShown": "2023-06-01",
  "lastShown": "2026-10-14",
  "impressionsRange": "5K - 10K",
  "impressionsMin": 5000,
  "impressionsMax": 10000,
  "impressionShareByCountry": { "Germany": 69.4, "Austria": 16.2, "Ireland": 11.2, "Luxembourg": 1.1, "Lithuania": 1.0 },
  "search": "standing desk"
}
```

### What data the Microsoft ads scraper returns

| Field | What it is |
|---|---|
| `adId` | Microsoft's ad ID |
| `advertiserName`, `advertiserId` | The advertiser account |
| `advertiserCountry`, `advertiserVerified` | Country and verification of the advertiser (on searches by advertiser name) |
| `title`, `description` | The ad's headline and text |
| `displayUrl`, `destinationUrl` | The URL shown on the ad and the landing page |
| `assets` | Images and other assets, for ad formats that have them |
| `paidFor` | Who paid for the ad, when it differs from the advertiser |
| `firstShown`, `lastShown` | First and last date the ad was shown in the EU or EEA |
| `impressionsRange`, `impressionsMin`, `impressionsMax` | Total EU and EEA impressions, as published and as numbers |
| `impressionShareByCountry` | Percentage of impressions per country (countries with impressions only) |
| `rejection` | Rejection details, for ads that were removed |
| `search` | The keyword or advertiser that found the ad |

With details off, rows have the advertiser, title, text and URLs. Fields that are empty for an ad are left out of its row.

### Pricing

Pay per event, no monthly fee.

| Event | Free plan price |
|---|---|
| Ad delivered with details | US$ 0.0025 (US$ 2.50 per 1,000) |
| Ad delivered (summary, details off) | US$ 0.001 (US$ 1.00 per 1,000) |
| Actor start | US$ 0.003 per run |

| Job | Cost at the Free plan price |
|---|---|
| 50 ads with details for one keyword | about US$ 0.13 |
| 1,000 ads of a competitor, with details | about US$ 2.50 |
| Weekly only-new watch of 5 keywords without details, ~100 new ads a week | about US$ 0.45 a month |

Error rows, duplicates and ads skipped by only-new are never charged. When the details of an ad cannot be opened, it is delivered and charged as a summary.

### Errors

| `errorCode` | Meaning |
|---|---|
| `NO_ADS` | No ads match the keyword and filters |
| `NO_ADVERTISER` | No advertiser with that name; try part of the name or search it as a keyword |
| `INVALID_COUNTRY` | The country is not in the library (only EU and EEA) |
| `INVALID_INPUT` | A value in the input is not valid |
| `BLOCKED` | The library did not answer after several tries; run again |
| `NOT_REACHED` | The run stopped (time, spending limit) before this search |

### Integrations, scheduling and AI agents

- **Schedules:** save a Task with your keywords or competitors and `onlyNew` on, then schedule it daily or weekly in Apify Console.
- **Export** to JSON, CSV, Excel or HTML from the dataset, or read it through the Apify API.
- **Make, n8n, Zapier** and webhooks: post new competitor ads to Slack, Google Sheets or your reporting tool after each run.
- **AI agents:** the Actor works through the Apify MCP server, so an agent can ask "which advertisers bid on this keyword on Bing in Germany?" and get structured rows back.

### FAQ

**Which ads are in the Microsoft Ads Library?** Ads served on Bing and the Microsoft Advertising network to people in the EU and EEA, with impressions recorded since mid-2023.

**Can I get US ads?** No. The library only covers ads shown in Europe. Many advertisers run the same copy worldwide, so it is still a good view of their messaging.

**Why at most 1,000 ads per search?** That is the library's limit for one search. Add countries or a date range to split a big search into several smaller ones.

**Are impressions exact?** Microsoft publishes a range (for example 10K - 25K) and a percentage per country. `impressionsMin` and `impressionsMax` are that range as numbers, for sorting and charts.

**Does it need a Microsoft Advertising account?** No.

**Is it legal to scrape the Microsoft Ads Library?** The library is published by Microsoft for advertising transparency and is open to everyone. You are responsible for how you use the data.

### Limitations

- EU and EEA ads only.
- Up to 1,000 ads per search.
- Ad details are opened one ad at a time, so runs with details take longer than summary runs.

If this Actor saves you time, a short review on the Store page helps other people find it.

### Related scrapers

- [Google Ads Transparency Scraper](https://apify.com/scrapewise/google-ads-transparency): Google search, display and YouTube ads.
- [Meta Ad Library Scraper](https://apify.com/scrapewise/meta-ad-library-scraper): Facebook and Instagram ads.
- [LinkedIn Ad Library Scraper](https://apify.com/scrapewise/linkedin-ad-library-scraper): LinkedIn ads.

### Changelog

- **23 Oct 2026, 0.1:** first release. Search by keyword, advertiser or advertiser ID, country and date filters, details with impressions per country, only-new mode.

This Actor collects only publicly available data from the Microsoft Ads Library. Independent tool, not affiliated with Microsoft.

# Actor input Schema

## `searchTerms` (type: `array`):

Words to find in the ads (title, text, URL or advertiser), one per line, for example standing desk or car insurance. Each line is one search.

## `advertisers` (type: `array`):

Advertiser names, one per line, for example Zalando. Every advertiser whose name contains the line is searched, so one brand with several accounts (per country or agency) returns all of them.

## `advertiserIds` (type: `array`):

Optional: numeric advertiser IDs from earlier results (advertiserId field), one per line.

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

Countries where the ads were shown: 2-letter codes (de, fr, nl, es, it, pl, se...) or English names (Germany). The library covers the EU and EEA. Empty = all of them.

## `startDate` (type: `string`):

Optional: only ads shown on or after this date. A date (2026-09-01) or a period such as 30 days or 3 months.

## `endDate` (type: `string`):

Optional: only ads shown on or before this date (2026-10-20).

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

On: each ad comes with who paid, first and last shown dates, impressions range and impression share per country. Off: faster and cheaper summary rows (title, text, URLs, advertiser).

## `maxItems` (type: `integer`):

Cap for each keyword or advertiser. 0 = every ad the search has (the library returns up to 1,000 per search; add countries or dates to split bigger ones).

## `onlyNew` (type: `boolean`):

On: remembers the ads delivered in earlier runs of the same search (in your account) and delivers only ads not seen before. Skipped ads are free.

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

Apify Proxy by default. Change it only if you know you need to.

## Actor input object example

```json
{
  "searchTerms": [
    "standing desk"
  ],
  "includeDetails": true,
  "maxItems": 50,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `resultsCsv` (type: `string`):

No description

# 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 = {
    "searchTerms": [
        "standing desk"
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/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 = {
    "searchTerms": ["standing desk"],
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/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 '{
  "searchTerms": [
    "standing desk"
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapewise/microsoft-ads-library-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapewise/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/6rPdmhO61a3SPsbRj/builds/Fw4h4mPGQawJG7OGC/openapi.json
