{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Center Scraper & API + MCP",
    "description": "[$1 per 1,000 ads, ad copy included, errors free] Google Ads Transparency Center scraper & API: give a website, get its Google ads as flat rows: headline, CTA, YouTube URL, days active, winning ads, new launches, promo codes, stopped-ad alerts, EU impressions. MCP, Clay, n8n ready.",
    "version": "2.1",
    "x-build-id": "jldU6PAmFB7XMdLXJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xsi~google-ads-transparency/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xsi-google-ads-transparency",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/xsi~google-ads-transparency/runs": {
      "post": {
        "operationId": "runs-sync-xsi-google-ads-transparency",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/xsi~google-ads-transparency/run-sync": {
      "post": {
        "operationId": "run-sync-xsi-google-ads-transparency",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "domain": {
            "title": "Competitor website",
            "type": "string",
            "description": "One website whose Google ads you want, e.g. \"nike.com\" (no https:// needed). Also accepts an advertiser name (\"HubSpot\"), an advertiser ID (\"AR16735076323512287233\") or a URL copied from adstransparency.google.com. Use this OR \"domains\"."
          },
          "domains": {
            "title": "Competitor websites (list)",
            "type": "array",
            "description": "Several websites at once, e.g. [\"nike.com\", \"adidas.com\", \"puma.com\"]. Same formats as \"domain\". Each website gets at least one output row (status \"no_ads_found\" when it runs no ads, never billed).",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Countries",
            "type": "array",
            "description": "ISO 3166-1 alpha-2 country codes, e.g. [\"US\"], [\"GB\", \"DE\"]. Empty = all countries (\"anywhere\"). EU/EEA countries also return Google's official impression ranges with includeDetails.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxAdsPerQuery": {
            "title": "Max ads per website & country",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Exact cap per website and country; the run never returns or bills more. Empty = 25 (a default run takes about 15–40 s), or 500 ads scanned per check in monitor mode."
          },
          "includeAdText": {
            "title": "Include ad copy (headline, description, CTA, YouTube URL)",
            "type": "boolean",
            "description": "Reads Google's official ad preview: headline, description, visible URL, call-to-action and the YouTube URL of video ads. Included in the $0.001 ad price. Text ads that Google keeps only as an image stay without copy unless you turn on OCR (next option, opt-in).",
            "default": true
          },
          "onlyNewSince": {
            "title": "Only ads first shown since (YYYY-MM-DD)",
            "type": "string",
            "description": "Delta mode: only ads whose first shown date is on or after this date, e.g. \"2026-11-01\". Older ads that are still running are skipped and not billed. Stable key for de-duplication: adId."
          },
          "daysBack": {
            "title": "Only ads first shown in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Delta mode, relative: e.g. 7 = only ads first shown in the last 7 days (ideal for a weekly schedule). If both are set, the later of onlyNewSince and daysBack wins."
          },
          "winningAdMinDays": {
            "title": "Winning ad = running for at least N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "isWinningAd is true when an ad is still running (seen in the last 2 days) and has been running for at least this many days. Advertisers keep ads that convert, so long-running ads are a common proxy for winners (a heuristic, not a Google metric).",
            "default": 30
          },
          "compactOutput": {
            "title": "Compact flat output",
            "type": "boolean",
            "description": "true = one flat row per ad with fixed keys (inputDomain, adId, format, headline, description, cta, landingUrl, firstShownDate, lastShownDate, daysActive, isWinningAd, isNewLaunch, detectedPromoCodes, detectedDiscounts…), ideal for AI agents, Clay, n8n, Make and Sheets. false = same keys plus every raw field (all variants, EU DSA breakdowns, sitelinks).",
            "default": true
          },
          "includeDomainSummary": {
            "title": "Add one summary row per website",
            "type": "boolean",
            "description": "Adds one free row per website & country (status \"domain_summary\") after its ads: adsReturned, activeAdsCount, winningAdsCount, newLaunchesCount, formatSplit, oldestAdDays, topEuCountries (with includeDetails), promoCodes, discounts. Never billed. Also saved as the DOMAIN_SUMMARY record. Ideal for Clay (1 row = 1 website) and AI agents.",
            "default": true
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "advertiser",
              "details",
              "monitor"
            ],
            "type": "string",
            "description": "search = list ads; advertiser = find advertiser IDs; details = full data for ad URLs; monitor = only ads first shown since the previous run ($0.001 per target checked; the first run stores a baseline and sends no alerts).",
            "default": "search"
          },
          "queries": {
            "title": "Advanced: more queries (names, IDs, URLs)",
            "type": "array",
            "description": "Optional extra inputs merged with domain/domains: advertiser names in any script (HubSpot, 株式会社ルミネ), advertiser IDs (AR…), or URLs copied from the Ads Transparency Center (ad URLs are required in details mode). One per line.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include EU DSA details for each ad",
            "type": "boolean",
            "description": "Adds per-country impressions (EU/EEA), per-platform breakdown, audience-selection criteria, topic and all variants. Billed as 'ad-detail' instead of 'ad'. In monitor mode, new-ad alerts always include these details (included in the alert price).",
            "default": false
          },
          "ocrImageAds": {
            "title": "OCR for image-only text ads (opt-in, +$0.001 when text is found)",
            "type": "boolean",
            "description": "Off by default (fast, 256 MB, price = ads only). Google stores some Search ads only as a picture of the ad (no preview text). Turn this on to read their headline and description with local OCR (no external service): rows get textFromImage: true and are billed 'ad-text' ($0.001) only when readable text is found (confidence ≥ 60 %, Latin scripts). Runs with OCR on get 1 GB of memory automatically (about 5 s per image).",
            "default": false
          },
          "ocrTimeBudgetSecs": {
            "title": "OCR time budget (seconds)",
            "minimum": 0,
            "maximum": 3600,
            "type": "integer",
            "description": "OCR is CPU-heavy (about 5 s per image at the default 1 GB). After this many seconds per website & country, remaining image-only ads are returned without OCR (headline null, not billed) so the run stays fast; the number skipped is in OUTPUT.timing.ocrSkippedForSpeed. 0 = no limit.",
            "default": 40
          },
          "ocrWorkers": {
            "title": "OCR parallel workers",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many images are read by OCR at the same time. Empty = automatic: one per CPU core (on Apify 4 GB of memory = 1 core, so 1 worker at the default 1 GB). More workers than cores is not faster (measured on 26 Nov 2026). Each worker uses about 40–90 MB."
          },
          "downloadMedia": {
            "title": "Download images & video thumbnails",
            "type": "boolean",
            "description": "Saves each ad's image (or rendering), Shopping product images and the YouTube thumbnail of video ads to the run's key-value store and returns public links in <code>media[]</code>. $0.002 per file actually saved (re-used files are free). YouTube video files themselves are not downloaded (YouTube's Terms forbid it): you get the thumbnail + the YouTube link.",
            "default": false
          },
          "maxMediaPerAd": {
            "title": "Max media files per ad",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Upper limit of files saved per ad when downloading media.",
            "default": 3
          },
          "format": {
            "title": "Ad format",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Only this ad format.",
            "default": "ALL"
          },
          "platform": {
            "title": "Platform",
            "enum": [
              "ALL",
              "GOOGLE_SEARCH",
              "YOUTUBE",
              "GOOGLE_SHOPPING",
              "GOOGLE_MAPS",
              "GOOGLE_PLAY"
            ],
            "type": "string",
            "description": "Only ads shown on this Google platform.",
            "default": "ALL"
          },
          "dateFrom": {
            "title": "Shown from (YYYY-MM-DD)",
            "type": "string",
            "description": "Only ads shown on or after this date."
          },
          "dateTo": {
            "title": "Shown until (YYYY-MM-DD)",
            "type": "string",
            "description": "Only ads shown on or before this date."
          },
          "maxItems": {
            "title": "Max items for the whole run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap across all queries (together with your 'Max cost per run').",
            "default": 1000
          },
          "maxAdvertisersPerQuery": {
            "title": "Advertisers per name query",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "When a query is a name, how many matching advertisers to include. Empty = 3 in search/advertiser mode, 1 in monitor mode (each monitored advertiser is a billed check)."
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Separate memory per watch list, e.g. 'client-a'."
          },
          "alertOnStopped": {
            "title": "Monitor: also report stopped ads",
            "type": "boolean",
            "description": "Monitor mode: besides NEW_AD alerts, writes one STOPPED_AD row for each ad that was running at the previous check and is no longer running (last shown over 2 days ago, or gone from a complete scan). Free: included in the $0.001 check.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Parallel requests. Keep low; Google rate-limits aggressively.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential (default) is what Google's Transparency Center tolerates; it is used only for the small Transparency Center requests (about 1 KB per ad). Ad previews and media files go through Apify datacenter proxy, so the proxy cost stays tiny. Datacenter-only works too but Google often blocks shared datacenter IPs with CAPTCHA pages.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "assetProxyConfiguration": {
            "title": "Proxy for ad previews & media (advanced)",
            "type": "object",
            "description": "Optional. By default ad previews, images and thumbnails use Apify datacenter proxy when the main proxy is Residential (much cheaper, same data)."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}