Microsoft Ads Library Scraper - Bing Ads & Advertisers avatar

Microsoft Ads Library Scraper - Bing Ads & Advertisers

Pricing

from $1.90 / 1,000 ads

Go to Apify Store
Microsoft Ads Library Scraper - Bing Ads & Advertisers

Microsoft Ads Library Scraper - Bing Ads & Advertisers

Scrape Bing ads from the Microsoft Ad Library by keyword, advertiser or ad URL. Which ads does a competitor run on Bing? Get ad titles, text, landing pages and images, plus run dates, impressions by EU country, targeting and payer. Filter by country and date. No login.

Pricing

from $1.90 / 1,000 ads

Rating

0.0

(0)

Developer

Harish Garg

Harish Garg

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Features

Limited permissions

Share

Microsoft Ads Library Scraper extracts Bing ads from the Microsoft Ad Library, the public repository of ads that Microsoft showed on Bing in the European Union and the EEA. Search by keyword, by advertiser (name, ID or page URL) or by ad URL. For each ad you get the title, ad text, display URL, landing page and images, the advertiser, and on request the first and last shown dates, total impressions, impression share per country, targeting types and who paid.

No Microsoft account, login or API token is needed. Enter your searches and click Start. Then download the data as JSON, CSV or Excel, get it through the API that this Actor gives you, run it on a schedule, or ask an AI assistant such as Claude or ChatGPT to get Bing ad data for you.

Questions this Actor answers

QuestionInput
Which ads does my competitor run on Bing?{"advertisers": ["Nike - EMEA"]} or an advertiser ID such as {"advertisers": ["4295000966"]}
Which Bing ads mention this product, brand or keyword?{"searchQueries": ["running shoes"]}
Which ads ran in Germany last month?{"searchQueries": ["car insurance"], "countries": ["DE"], "dateFrom": "2026-10-01", "dateTo": "2026-10-31"}
How long did an ad run, and where were its impressions?{"adUrls": ["https://adlibrary.ads.microsoft.com/ad/71124924512540"]}, or "includeAdDetails": true for a search
Which landing pages and offers does an advertiser test?{"advertisers": ["4295000966"], "maxAdsPerSearch": 500} — see destination_url, title, description
What is the advertiser ID of a brand?{"advertisers": ["Nike EMEA"]} — when the name is not exact, a notice lists the closest names and their IDs
Bing ads shown outside the EU and EEANot available: the library has only ads shown in the EU and EEA

What is Microsoft Ads Library Scraper?

Microsoft Ads Library Scraper is an unofficial Microsoft Ad Library API and scraper. You give it search words, advertisers or ad links, and it saves one row for each ad:

  • 📝 Ad copy: the title (headline) and the ad text
  • 🔗 Links: the display URL, the landing page and its domain
  • 🖼️ Images: the image links of multimedia and shopping ads, with width and height
  • 🏢 Advertiser: the name, ID and Ad Library page; for advertiser inputs also the country and the verified flag
  • 📅 Run dates (details): the first and last day with impressions in the EU and EEA
  • 📊 Impressions (details): the total impressions range and the share of impressions per country
  • 🎯 Targeting (details): the targeting types (location, age, gender, Microsoft audiences, advertiser audiences) and if each was used to exclude people
  • 💳 Paid for by (details): who paid for the ad, when not the advertiser

The Actor runs on the Apify platform, so you also get API access, scheduling, integrations, monitoring and data export in many formats.

Why scrape the Microsoft Ad Library?

The Microsoft Ad Library is Microsoft's public record of the ads it showed on Bing in the EU and EEA. Use the data for:

  • Competitor research: see every ad, headline and landing page that a competitor runs on Bing.
  • Ad copy ideas: collect the ads of a keyword or product and compare their messages and offers.
  • Market monitoring: run the same searches every week and follow new ads, countries and landing pages.
  • Agency pitches and audits: show a client what its competitors run, with dates and impression ranges.
  • Research and compliance: study ads by country and date, and see who paid for them.

How to scrape the Microsoft Ad Library

  1. Enter search words in Search words, advertisers in Advertisers, or ad links in Ad URLs or IDs.
  2. Optional: choose Countries, a date range, the Max ads per input, and Include ad details.
  3. Click Start, then open the Output tab or export the data.

Input

FieldTypeDescription
searchQuerieslist of textWords to find in the ad title, ad text or advertiser name. One search per line.
advertiserslist of textThe exact advertiser name as the library lists it (for example Nike - EMEA), an advertiser ID (4295000966) or an advertiser page (https://adlibrary.ads.microsoft.com/advertiser/4295000966).
adUrlslist of textAn ad page (https://adlibrary.ads.microsoft.com/ad/71124924512540) or an ad ID. These ads always have details.
countrieslist of textOnly ads shown in these countries: ISO codes or English names of EU and EEA countries. Empty = all.
dateFrom, dateTodateOnly ads shown in this date range (YYYY-MM-DD). The library starts on 2023-06-01.
maxAdsPerSearchnumberThe most ads for each search word or advertiser. Default 100.
includeAdDetailstrue/falseAdd run dates, impressions, impression share per country, targeting and payer. Default false.

Input example

{
"searchQueries": ["running shoes"],
"advertisers": ["Nike - EMEA"],
"countries": ["DE", "FR"],
"dateFrom": "2026-10-01",
"maxAdsPerSearch": 200,
"includeAdDetails": false
}

Output

Each ad is one row with type: "ad". An example row with details:

{
"type": "ad",
"ad_id": "71124924512540",
"ad_url": "https://adlibrary.ads.microsoft.com/ad/71124924512540",
"advertiser_name": "Groupe COURIR",
"advertiser_id": "4295002191",
"advertiser_url": "https://adlibrary.ads.microsoft.com/advertiser/4295002191",
"advertiser_country": null,
"advertiser_verified": null,
"title": "Retrouvez les dernières collections de vêtements et sneakers Nike dispos sur Courir.com",
"description": "Commandez dès maintenant vos Nike préférées sur le site Courir. La marque et le style",
"display_url": "www.courir.com",
"destination_url": "https://www.courir.com/fr/c/marques/nike/",
"landing_domain": "courir.com",
"image_urls": ["https://www.bing.com/th?id=OADD2.7696659001613_1SXY30BGQPUHWVCE19&pid=21.2"],
"assets": [{"type": "image", "url": "https://www.bing.com/th?id=OADD2.7696659001613_1SXY30BGQPUHWVCE19&pid=21.2", "width": 1080, "height": 1080}],
"paid_for_by": null,
"first_shown_date": "2024-07-26",
"last_shown_date": "2026-11-03",
"total_impressions": "2.5M - 5M",
"impressions_by_country": [{"country": "France", "country_code": "FR", "share_percent": 100.0}],
"targeting": [{"parameter": "Location", "used_for_exclusion": true}],
"restriction_reason": null,
"details_scraped": true,
"details_error": null,
"position": 1,
"source": "https://adlibrary.ads.microsoft.com/ad/71124924512540",
"source_type": "ad_url",
"scraped_at": "2026-11-06T12:00:00+00:00"
}

Without details, the detail fields (paid_for_by to restriction_reason) are null, so every row has the same columns.

Output fields

FieldDescription
typead for an ad, notice for an item that explains an empty result.
ad_id, ad_urlThe Microsoft Ad Library ID of the ad and its page in the library.
advertiser_name, advertiser_id, advertiser_urlThe advertiser. Use the ID in advertisers to get every ad of this advertiser.
advertiser_country, advertiser_verifiedWhere the advertiser is registered, and true when Microsoft verified its identity. Filled for inputs in advertisers only.
title, descriptionThe headline and the ad text. For ads with several versions, a recent version.
display_url, destination_url, landing_domainThe URL shown in the ad, the landing page, and the landing page's domain.
image_urls, assetsThe image links. assets also gives the width and height. Empty for text ads.
paid_for_byDetails only. Who paid for the ad, when not the advertiser.
first_shown_date, last_shown_dateDetails only. The first and last day with impressions in the EU and EEA (YYYY-MM-DD).
total_impressionsDetails only. The range of impressions in the EU and EEA, for example 250K - 500K.
impressions_by_countryDetails only. The share of impressions for each country, largest first.
targetingDetails only. The targeting types (Location, Age, Gender, MicrosoftAudiences, AdvertiserAudiences) and if each was used to exclude people.
restriction_reasonDetails only. Why Microsoft stopped or restricted the ad, when it did.
details_scraped, details_errortrue when the row has details, and the reason when the details failed.
position, source, source_typeThe position of the ad in the results of its input, the input value, and the input type (keyword, search_url, advertiser_name, advertiser_id, advertiser_url, ad_url or ad_id).
scraped_atWhen the Actor saved the ad.

Empty results and notices

When an input gives no ad, the dataset gets a free type: "notice" item with a reason, a message, a suggestion and the input:

reasonMeaning
no_resultsThe library has no ads for this input and these filters.
advertiser_not_foundNo advertiser has exactly this name. The suggestion lists the closest names and their IDs.
not_foundThe library has no ad with this ID.
input_rejectedThe value is not a search, an advertiser or a Microsoft Ad Library link.
rate_limited, network, http_errorMicrosoft did not answer. Run again later.
charge_limitThe run stopped at your maximum cost per run.

The run's status message always says how many ads were saved and why any input gave fewer. A run that saves no ads because Microsoft failed ends as Failed.

How to use the Microsoft Ad Library scraper

You can run the Actor from Apify Console, from the Apify API, from your own JavaScript or Python code, or from an AI assistant.

Apify Console (no code)

  1. Open the Actor and fill in the Input tab.
  2. Click Start. Follow the progress in the Log tab.
  3. Open the Output tab to see the table, or click Export to download the data.
  4. To repeat the same run, click Save as a new task. Add a Schedule to the task to follow the same advertisers every week.

Microsoft Ad Library API (HTTP)

Run the Actor and get the ads in one request. Replace YOUR_API_TOKEN with your token from Settings → API & Integrations in Apify Console.

curl -X POST "https://api.apify.com/v2/acts/hgservices~microsoft-ads-library-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchQueries": ["running shoes"], "maxAdsPerSearch": 50}'

The response is a JSON array with one object for each ad. Add &format=csv or &format=xlsx to the URL to get CSV or Excel.

This request waits for the run to finish, for up to 5 minutes. For large runs, start the run with POST https://api.apify.com/v2/acts/hgservices~microsoft-ads-library-scraper/runs. When the run is finished, get the ads from GET https://api.apify.com/v2/datasets/{defaultDatasetId}/items.

Scrape Bing ads with JavaScript

Install the client with npm install apify-client, then run this code:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('hgservices/microsoft-ads-library-scraper').call({
advertisers: ['Nike - EMEA'],
maxAdsPerSearch: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const ad of items.filter((item) => item.type === 'ad')) {
console.log(ad.advertiser_name, ad.title, ad.destination_url);
}

Scrape Bing ads with Python

Install the client with pip install apify-client (version 3.0 or later), then run this code:

from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("hgservices/microsoft-ads-library-scraper").call(
run_input={"searchQueries": ["running shoes"], "countries": ["DE"], "maxAdsPerSearch": 100}
)
if run is None:
raise RuntimeError("The run was not found.")
for ad in client.dataset(run.default_dataset_id).iterate_items():
if ad["type"] == "ad":
print(ad["advertiser_name"], ad["title"], ad["destination_url"])

Claude, ChatGPT and other AI assistants (MCP)

Connect your AI assistant to the Apify MCP server. The assistant can then run this Actor for you and answer from the results. Use this server URL to give the assistant this Actor as a tool:

https://mcp.apify.com?tools=hgservices/microsoft-ads-library-scraper

Claude (claude.ai and Claude Desktop)

  1. Open Settings → Connectors.
  2. Click Add, then Add custom connector.
  3. Enter a name, for example Apify, and paste the server URL above.
  4. Click Continue, keep the detected settings, and click Add.
  5. Sign in to Apify in the browser window that opens.

ChatGPT

  1. Open Settings → Apps & Connectors and click Create. If you do not see Create, turn on Developer mode.
  2. Enter a name, for example apify-mcp, and paste the server URL above as the MCP Server URL.
  3. Select OAuth for authentication and click Create.
  4. Sign in to Apify and allow access.
  5. In a new chat, click +, select More, and select your Apify connector.

Claude Code, Cursor, VS Code and Codex

  • Claude Code: run claude mcp add --transport http apify "https://mcp.apify.com?tools=hgservices/microsoft-ads-library-scraper", then run /mcp and sign in to Apify.
  • Apify CLI: run apify mcp install claude-code --tools hgservices/microsoft-ads-library-scraper. You can use cursor, vscode or codex in place of claude-code.
  • Other MCP clients: add the server URL as a remote (HTTP) MCP server.

Then ask in plain language, for example:

  • "Which ads does Nike run on Bing in Germany? Show the headlines and landing pages."
  • "Find Bing ads for 'car insurance' in France from last month and group them by advertiser."

Integrations

Send the results to Google Sheets, Slack, email, Zapier, Make, n8n, Airbyte or any webhook from the Actor's Integrations tab.

Tips for scraping the Microsoft Ad Library

  • Find the advertiser ID first. Advertiser names must match exactly. Put a brand name in advertisers: if it does not match, the notice item lists the library's closest names with their IDs. Then use the ID.
  • Use words for a market, advertisers for a competitor. searchQueries finds ads from every advertiser that mention the words. advertisers gives every ad of one account.
  • Ask for details only when you need them. Details make the run much slower. Get the ads first, then get the details of the ads you want with adUrls.
  • Follow advertisers over time. Run the same input every week. Each row has ad_id and scraped_at, so you can see which ads are new.

Limits

  • EU and EEA only. The library holds only ads that Microsoft showed in the EU and EEA, since June 2023.
  • Run time. Without details, 100 ads take about 30 seconds. Details add about 6 to 20 seconds for each ad, so 100 ads with details can take 10 to 30 minutes.
  • Large searches. Above 1,000 ads for one input, the Actor splits the search by date and then by country, and removes the duplicates. Very large searches can take hours.
  • Representative ad copy. For ads with several versions, the library shows one recent version.
  • Ranges, not exact numbers. Impressions are ranges (for example 2.5M - 5M), as the library gives them. The library does not show spend or clicks.
  • No image files. The Actor saves the image links, not the files.

FAQ, disclaimers and support

Do I need a Microsoft account or an API token?

No. The Actor reads the public Microsoft Ad Library, which needs no login and no token.

Do I need a proxy?

No. You do not need to set a proxy.

Why do I get fewer ads than I asked for?

The input has fewer ads for your filters, or the run reached maxAdsPerSearch or your maximum cost per run. The status message and the notice items give the reason.

The Microsoft Ad Library is a public transparency tool that the EU Digital Services Act requires. The Actor collects only what the library shows to everyone. You are responsible for how you use the data. If you are not sure, ask a lawyer.

I found a problem or need a feature

Open an issue on the Actor's Issues tab.