{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper",
    "description": "Scrape Google Ads Transparency Center ads by advertiser name, website, advertiser ID or URL: format, dates, plus optional platforms, regions, ad text, EU reach and political ad spend. Export to JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "Q0nynyFMlJqcjui5Z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nice_dev~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nice_dev-google-ads-transparency-scraper",
        "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/nice_dev~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nice_dev-google-ads-transparency-scraper",
        "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/nice_dev~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nice_dev-google-ads-transparency-scraper",
        "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": {
          "startUrls": {
            "title": "Transparency Center URLs",
            "maxItems": 1000,
            "type": "array",
            "description": "Links copied from adstransparency.google.com: an advertiser page (`/advertiser/AR…`), a single ad (`/advertiser/AR…/creative/CR…`), a website search (`/?domain=nike.com`) or the political ads page (`/political`). The filters in the link (region, format, platform, dates) are kept. Max 1 000 URLs.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "query": {
            "title": "Advertiser, website or ID",
            "maxLength": 200,
            "type": "string",
            "description": "One target, detected automatically: an advertiser or brand name (`Nike`), a website (`nike.com`), an advertiser ID (`AR16735076323512287233`) or an ad ID (`CR…`, only with an advertiser ID in the same run)."
          },
          "searchQueries": {
            "title": "More advertisers, websites or IDs",
            "maxItems": 500,
            "uniqueItems": true,
            "type": "array",
            "description": "Several targets in one run, one per line, same rules as above. Ads found by several targets are saved once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Websites",
            "maxItems": 500,
            "uniqueItems": true,
            "type": "array",
            "description": "Advertiser websites (`nike.com`): every ad that leads to this site, from every advertiser account behind it.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "advertiserIds": {
            "title": "Advertiser IDs",
            "maxItems": 500,
            "uniqueItems": true,
            "type": "array",
            "description": "Google advertiser IDs (`AR` + 20 digits), as shown in the Transparency Center address bar.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxAdvertisersPerQuery": {
            "title": "Advertisers per name",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "For an advertiser or brand NAME: how many matching advertiser accounts to read, biggest first (a brand often runs one account per country). Websites and IDs are not affected.",
            "default": 1
          },
          "resultType": {
            "title": "What to return",
            "enum": [
              "ads",
              "advertisers",
              "removedAds"
            ],
            "type": "string",
            "description": "`ads` = one row per ad. `advertisers` = one row per advertiser account matching your names / websites (legal name, country, verification, number of ads), no ads. `removedAds` = Google's public feed of ads removed for violating its ad policies (ads shown in the EU): removal date, policy broken, who decided, where it ran; no advertiser name and no search filter in this feed (Google publishes it as one list).",
            "default": "ads"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of rows to save for the whole run (after deduplication and filters). 0 = no limit.",
            "default": 100
          },
          "maxItemsPerQuery": {
            "title": "Max results per target",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Cap for EACH target (name, website, ID or URL) in EACH country, so that the first one cannot use up the whole **Max results** budget: with 2 countries, a target can give up to twice this number. 0 = no per-target cap.",
            "default": 0
          },
          "region": {
            "title": "Country",
            "enum": [
              "anywhere",
              "AF",
              "AL",
              "DZ",
              "AS",
              "AD",
              "AO",
              "AI",
              "AQ",
              "AG",
              "AR",
              "AM",
              "AW",
              "AU",
              "AT",
              "AZ",
              "BH",
              "BD",
              "BB",
              "BY",
              "BE",
              "BZ",
              "BJ",
              "BM",
              "BT",
              "BO",
              "BA",
              "BW",
              "BV",
              "BR",
              "IO",
              "VG",
              "BN",
              "BG",
              "BF",
              "BI",
              "CV",
              "KH",
              "CM",
              "CA",
              "IC",
              "BQ",
              "KY",
              "CF",
              "TD",
              "CL",
              "CN",
              "CX",
              "CC",
              "CO",
              "KM",
              "CK",
              "CR",
              "CI",
              "HR",
              "CW",
              "CY",
              "CZ",
              "CD",
              "DK",
              "DJ",
              "DM",
              "DO",
              "EC",
              "EG",
              "SV",
              "GQ",
              "ER",
              "EE",
              "SZ",
              "ET",
              "FK",
              "FO",
              "FJ",
              "FI",
              "FR",
              "GF",
              "PF",
              "TF",
              "GA",
              "GE",
              "DE",
              "GH",
              "GI",
              "GR",
              "GL",
              "GD",
              "GP",
              "GU",
              "GT",
              "GG",
              "GN",
              "GW",
              "GY",
              "HT",
              "HM",
              "HN",
              "HK",
              "HU",
              "IS",
              "IN",
              "ID",
              "IQ",
              "IE",
              "IM",
              "IL",
              "IT",
              "JM",
              "JP",
              "JE",
              "JO",
              "KZ",
              "KE",
              "KI",
              "XK",
              "KW",
              "KG",
              "LA",
              "LV",
              "LB",
              "LS",
              "LR",
              "LY",
              "LI",
              "LT",
              "LU",
              "MO",
              "MG",
              "MW",
              "MY",
              "MV",
              "ML",
              "MT",
              "MH",
              "MQ",
              "MR",
              "MU",
              "YT",
              "MX",
              "FM",
              "MD",
              "MC",
              "MN",
              "ME",
              "MS",
              "MA",
              "MZ",
              "MM",
              "NA",
              "NR",
              "NP",
              "NL",
              "NC",
              "NZ",
              "NI",
              "NE",
              "NG",
              "NU",
              "NF",
              "MK",
              "MP",
              "NO",
              "OM",
              "PK",
              "PW",
              "PS",
              "PA",
              "PG",
              "PY",
              "PE",
              "PH",
              "PN",
              "PL",
              "PT",
              "PR",
              "QA",
              "CG",
              "RE",
              "RO",
              "RW",
              "SH",
              "KN",
              "LC",
              "MF",
              "PM",
              "VC",
              "WS",
              "SM",
              "ST",
              "SA",
              "SN",
              "RS",
              "SC",
              "SL",
              "SG",
              "SX",
              "SK",
              "SI",
              "SB",
              "SO",
              "ZA",
              "GS",
              "KR",
              "SS",
              "ES",
              "LK",
              "SD",
              "SR",
              "SJ",
              "SE",
              "CH",
              "TW",
              "TJ",
              "TZ",
              "TH",
              "BS",
              "GM",
              "TL",
              "TG",
              "TK",
              "TO",
              "TT",
              "TN",
              "TR",
              "TM",
              "TC",
              "TV",
              "VI",
              "UG",
              "UA",
              "AE",
              "GB",
              "US",
              "UM",
              "UY",
              "UZ",
              "VU",
              "VA",
              "VE",
              "VN",
              "WF",
              "EH",
              "YE",
              "ZM",
              "ZW"
            ],
            "type": "string",
            "description": "Only ads shown in this country. `Anywhere` = all countries.",
            "default": "anywhere"
          },
          "regions": {
            "title": "More countries",
            "maxItems": 244,
            "uniqueItems": true,
            "type": "array",
            "description": "Several countries at once (two-letter codes: `US`, `DE`, `FR`…): ads shown in ANY of them. Added to **Country**.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "platforms": {
            "title": "Platforms",
            "uniqueItems": true,
            "type": "array",
            "description": "Only ads shown on these Google services. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "SEARCH",
                "YOUTUBE",
                "SHOPPING",
                "MAPS",
                "PLAY"
              ],
              "enumTitles": [
                "Google Search",
                "YouTube",
                "Google Shopping",
                "Google Maps",
                "Google Play"
              ]
            },
            "default": []
          },
          "adFormat": {
            "title": "Ad format",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Text, image or video ads only.",
            "default": "ALL"
          },
          "startDate": {
            "title": "Shown from",
            "type": "string",
            "description": "Only ads shown at least once between **Shown from** and **Shown until**: `2026-01-01` or a period before now (`30 days`). Google keeps this calendar for the last 12 months: the end of the period must fall within them."
          },
          "endDate": {
            "title": "Shown until",
            "type": "string",
            "description": "End of the period (the whole day is included). Empty = today."
          },
          "politicalAds": {
            "title": "Political ads only",
            "type": "boolean",
            "description": "Read the election ads library instead (countries where Google publishes it: US, EU, UK, India, Brazil, Australia…). Each political ad comes with Google's spend and impression ranges and its targeting (see **Political ad data** below).",
            "default": false
          },
          "includeDetails": {
            "title": "Ad details (variations, countries, EU reach)",
            "type": "boolean",
            "description": "1 extra request per ad: every A/B variation, every country the ad ran in with its first and last day, the ad category, and for ads shown in the EU the number of times shown per country and per platform plus the audience criteria (EU Digital Services Act data).",
            "default": false
          },
          "includeAdText": {
            "title": "Ad text (headline, description, landing page)",
            "type": "boolean",
            "description": "Reads each ad's preview: headline, description, display URL, final landing URL, call to action, YouTube video ID, Shopping product title and image, store addresses. Ads Google archived as a picture only have their picture (turn on **Text in images** for those).",
            "default": false
          },
          "includeOcr": {
            "title": "Text in images (OCR)",
            "type": "boolean",
            "description": "Reads the words printed inside image ads and text ads archived as a picture.",
            "default": false
          },
          "ocrLanguages": {
            "title": "OCR languages",
            "maxItems": 6,
            "type": "array",
            "description": "Languages printed in the ad images. Used only with **Text in images (OCR)**. Each extra language makes OCR slower.",
            "items": {
              "type": "string",
              "enum": [
                "eng",
                "fra",
                "deu",
                "spa",
                "por",
                "ita"
              ],
              "enumTitles": [
                "English",
                "French",
                "German",
                "Spanish",
                "Portuguese",
                "Italian"
              ]
            },
            "default": [
              "eng"
            ]
          },
          "includePoliticalData": {
            "title": "Political ad data",
            "type": "boolean",
            "description": "For political ads: spend range and currency, impressions range, targeted countries, targeting (places and audience criteria), and the advertiser's tax ID.",
            "default": false
          },
          "includeLandingPage": {
            "title": "Landing page title",
            "type": "boolean",
            "description": "Opens each distinct landing page once and adds its title, description and final address after redirects. Google shows the link of only some ads (mostly app and video ads): the others keep these fields empty and are not charged. Works without **Ad text**: the link of the page is then read from the preview anyway, the ad's text fields stay empty and **Ad text** is not charged.",
            "default": false
          },
          "downloadAssets": {
            "title": "Save ad images",
            "type": "boolean",
            "description": "Copies each ad image (and video thumbnail) into the run's key-value store, so the files outlive Google's links. The row gets the stored file links.",
            "default": false
          },
          "includeAdAnalysis": {
            "title": "AI ad analysis",
            "type": "boolean",
            "description": "An AI looks at the picture of each ad and describes it: what it shows, the tone, who the ad seems made for, the advertiser's sector, the main objects and colors and keywords, plus the brand, the offer, the call to action and the text it reads in the picture. Picture ads only (a text ad Google archived as a picture counts): video ads and ads with no picture are delivered without analysis. Paid Apify plans only. Charged as a separate event, once per ad analyzed; nothing is charged when the analysis is skipped or fails.",
            "default": false
          },
          "maxAdAnalyses": {
            "title": "Max AI ad analyses",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Most analyses made (and charged) in one run. The ads beyond it are delivered without analysis.",
            "default": 100
          },
          "postedAfter": {
            "title": "First shown after",
            "type": "string",
            "description": "Only ads FIRST shown on or after this date (`2026-09-01`, or `7 days`, `2 weeks`, `1 month`): new campaigns only."
          },
          "postedBefore": {
            "title": "First shown before",
            "type": "string",
            "description": "Only ads first shown on or before this date (the whole day is included), or older than a period such as `90 days`."
          },
          "minDaysShown": {
            "title": "Min days shown",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Only ads that ran on at least this many days (a long-running ad is usually a winning ad). 0 = no filter.",
            "default": 0
          },
          "activeOnly": {
            "title": "Still running only",
            "type": "boolean",
            "description": "Only ads Google shows as shown in the last 2 days (not with Removed ads: a removed ad no longer runs).",
            "default": false
          },
          "verifiedOnly": {
            "title": "Verified advertisers only",
            "type": "boolean",
            "description": "Only advertisers whose identity Google verified.",
            "default": false
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Drop the ads whose advertiser name or ad text (with **Ad text** on) contains one of these WHOLE words (case and accents ignored): `art` drops \"Art deco\" but keeps \"Smart watch\". Several words in one entry (`hand made`) must appear together, in that order. Chinese, Japanese, Korean, Thai, Lao, Khmer and Burmese words are found anywhere in the text (no spaces there). The display URL is searched as plain text (`shop` drops `myshop.com`).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new ads",
            "type": "boolean",
            "description": "Skip the ads that a previous run (same **Memory key**) already delivered: they are not saved and not charged. First run = everything is new.",
            "default": false
          },
          "stateKey": {
            "title": "Memory key",
            "pattern": "^[a-zA-Z0-9_-]{1,64}$",
            "maxLength": 64,
            "type": "string",
            "description": "Name of the memory used by **Only new ads**. Give each schedule / task its own key (e.g. `nike-us`) so that they do not share their memory. Letters, digits, `-` and `_`.",
            "default": "default"
          },
          "resetState": {
            "title": "Reset the memory",
            "type": "boolean",
            "description": "Forget everything remembered under this **Memory key** before the run: this run returns (and charges) every ad again. Untick it afterwards.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy or your own proxies. Keep the default: it is included in the price, and an IP that Google slows down is replaced automatically. The residential Apify proxy is not available in this Actor.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of requests processed in parallel.",
            "default": 8
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 10,
            "maximum": 2000,
            "type": "integer",
            "description": "Most requests to Google in any 60 seconds, all of them counted (ad lists, ad details, previews). Lower it if the log shows HTTP 429.",
            "default": 120
          },
          "minRequestIntervalMs": {
            "title": "Min delay between requests",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Smallest gap between two requests, in milliseconds. 0 = no gap.",
            "default": 0
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Retries per request before it is marked as failed. A request Google turns away is also retried on a new proxy session up to 10 times without using up these retries.",
            "default": 5
          },
          "includeRawData": {
            "title": "Include raw Google data",
            "type": "boolean",
            "description": "Adds the untouched Google response of each ad in `rawData` (for your own parsing). Free, but rows get larger.",
            "default": false
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Include debug messages in the run log.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}