· Sales data · 4 min read

4 Best Google Ad Library APIs for Competitor Ads (2026)

How to get a competitor's Google ads by API. Google offers no API for its Ads Transparency Center. Here are four APIs that get them, with prices.

Summarize
›In this post · 4 sections
  1. Google's Ads Transparency Center
  2. Four APIs that read the Ads Transparency Center
  3. What a company's Google ads tell you
  4. Get Google ads in pipe0

In this post, we'll walk you through how to get a company's Google ads through an API. This includes the ads a company runs on Google Search, YouTube and Google's other sites. Companies often use these ads to research their competitors: which products they push, which messages they test, and how long a campaign runs. Others use them for inspiration for their own ads, or to see which companies are paying for ads right now.

Google shows every advertiser's ads on a public website, but it offers no API for them. We explain what Google does publish and where it stops. Then we walk you through four APIs for Google ads: pipe0, LeadMagic, SerpApi and Apify. We compare what you send them, what comes back and what it costs. So keep reading.

Google's Ads Transparency Center

Google publishes its ads in the Ads Transparency Center, a website where anyone can search the ads of any advertiser. It covers Google Search, YouTube, Display and Gmail. You search by advertiser or website, then filter by date and location.

Google offers no API for the Ads Transparency Center.

Next to the website, Google publishes two datasets you can download or query in BigQuery. One holds election ads. The other holds ads shown in the European Economic Area and Turkey, without their text or landing page.

Ads that fall into neither category don't show up in these datasets.

Four APIs that read the Ads Transparency Center

The third-party APIs in this post get their data from the Ads Transparency Center website.

pipe0 finds a company's Google ads from its domain. You run the lookup in a pipe0 sheet (visually), through the API or from an AI agent.

The lookup runs on LeadMagic and returns each ad's text in the list, read off the ad's preview image. That saves a call per ad, but the text can carry reading errors, such as "Al" for "AI". It returns up to 25 ads by default, newest first, and charges per ad. A company with no ads costs nothing.

One contract, used three ways: as a table, as an API and by an agent.

LeadMagic

leadmagic.io

LeadMagic is a B2B data API for work emails, mobile numbers and company data. Its Google ads search takes a company's domain or name and returns up to 100 ads, with their text.

It charges one credit per ad returned and nothing when a company runs no ads.

A list goes through a closed box. The rows that come back filled are paid for; the empty one costs nothing.

SerpApi is an API for Google search results. Its Ads Transparency Center API takes a domain or an advertiser ID and returns 40 ads per search by default. A filter narrows the list to one platform, such as YouTube.

Each ad's text takes one more search. SerpApi counts a search that finds no ads.

An agent sends a batch of records to one database. The answers come back in batches and fill the agent.

Apify is a marketplace of web scrapers. Its most-used Ads Transparency Center scraper takes domains, advertiser IDs or search terms.

It charges per ad scraped, plus a little more per ad for the text.

A query goes out over many pages of the open web. Three pages match, and each becomes a row of a list.

Notable tools beyond this list

ToolWhat it is
SearchApiA search results API. Takes a domain or an advertiser ID, from $40 a month.
DataForSEOA search data API. Cheapest per list, with a preview image instead of the text.
AdyntelAn ad data API for Google, Meta, LinkedIn and TikTok, from $44 a month.

What a company's Google ads tell you

A company's Google ads can be used to analyze its customer acquisition strategy, messages, and budget. The dates show whether it still advertises.

One company can advertise from several advertiser accounts. Apollo's ads came from five, all linking to apollo.io.

A lookup by domain returns the ads that link to that domain. For most companies, those are their own ads. For a marketplace, they are often its users' ads. When we looked up craigslist.org, the newest ads came from two businesses selling auto repair and towing, not from Craigslist. For marketplaces and app stores, look up the advertiser ID instead.

For sales teams, a company running Google ads is paying for growth right now. Our post on sales signals explains the different types of signals and how to turn them into campaigns.

Meta keeps its ads in a separate library. The same question for Facebook and Instagram is answered in the best Meta Ad Library APIs.

Get Google ads in pipe0

You can run the Google ads lookup on a list in a pipe0 sheet (visually), or call it through the API. To check whether a company still advertises, set the limit to 1: pipe0 returns the newest ad first. The request, for two domains:

import { Pipe0 } from "@pipe0/client";

const pipe0 = new Pipe0({ apiKey: process.env.PIPE0_API_KEY });

const result = await pipe0.pipes.pipe({
  config: { environment: "sandbox" },
  pipes: [
    {
      pipe_id: "ads:google:waterfall@1",
      config: { limit: 1 },
    },
  ],
  input: [
    { id: "1", company_domain: "basecamp.com" },
    { id: "2", company_domain: "linear.app" },
  ],
});
console.log(result);
import os
import requests

response = requests.post(
    "https://api.pipe0.com/v1/pipes/run/sync",
    headers={"Authorization": f"Bearer {os.environ['PIPE0_API_KEY']}"},
    json={
        "config": {"environment": "sandbox"},
        "pipes": [
            {
                "pipe_id": "ads:google:waterfall@1",
                "config": {"limit": 1},
            }
        ],
        "input": [
            {"id": "1", "company_domain": "basecamp.com"},
            {"id": "2", "company_domain": "linear.app"},
        ],
    },
)
print(response.json())
curl -X POST "https://api.pipe0.com/v1/pipes/run/sync" \
  -H "Authorization: Bearer $PIPE0_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "config": { "environment": "sandbox" },
  "pipes": [
    {
      "pipe_id": "ads:google:waterfall@1",
      "config": { "limit": 1 }
    }
  ],
  "input": [
    { "id": "1", "company_domain": "basecamp.com" },
    { "id": "2", "company_domain": "linear.app" }
  ]
}'

Frequently asked questions

How do I get a company's YouTube ads by API?

YouTube ads sit in the Google Ads Transparency Center as video creatives under the advertiser's account. SerpApi and SearchApi take a platform filter set to YouTube. pipe0's Google ads lookup returns them with the format video, next to the company's search and image ads.

Where can I download Google's political ad data?

Google publishes election ads from verified advertisers in its Political Ads Transparency Report, also available as the BigQuery public dataset google_political_ads. It starts in 2018 and keeps ads for seven years. It holds no commercial ads.

Next-gen enrichment & search.

Build revenue systems that scale. For humans, agents, and apps. Replace tools like Clay, n8n, Hightouch, etc.

selectedRun
InputHDFind work email
NameWork email
Ada ByrneHa.byrne@acme.io
Leo CostaDl.costa@northbeam.co
Mia ChenRunning...
New empty row
Using pipe0 at work?