{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Center Scraper",
    "description": "Google Ads scraper for the Ads Transparency Center. Get any advertiser's ads by domain, name or URL: creatives, formats, first/last shown dates and days running. No API key. Export to JSON, CSV or Excel.",
    "version": "0.3",
    "x-build-id": "0j2xiG6j5F1jMVc1X"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rastriq~google-ads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rastriq-google-ads-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/rastriq~google-ads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rastriq-google-ads-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/rastriq~google-ads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rastriq-google-ads-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": "🔗 Ads Transparency URLs",
            "type": "array",
            "description": "Paste one or more URLs directly from <b>Google Ads Transparency Center</b>. The scraper auto-detects the type:<br><br><code>https://adstransparency.google.com/?domain=nike.com</code> — domain search<br><code>https://adstransparency.google.com/advertiser/AR12345</code> — advertiser page<br><code>https://adstransparency.google.com/advertiser/AR12345/creative/CR67890</code> — specific creative<br><code>https://adstransparency.google.com/?q=nike&region=US</code> — keyword search<br><br>💡 Region and search mode are extracted automatically from the URL.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "domains": {
            "title": "🌐 Advertiser domains",
            "type": "array",
            "description": "One or more advertiser domains to scrape. <b>Max ads applies per domain.</b><br><br>Examples: <code>leroymerlin.es</code>, <code>ikea.com</code>, <code>amazon.es</code><br><br>💡 Domain mode is the recommended way to start and the most reliable one.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "🔍 Advertiser name",
            "type": "string",
            "description": "Search by advertiser name instead of domain. Finds matching advertisers on the Transparency Center and scrapes their ads.<br><br>Use when you don't know the exact domain. Ignored if domains or URLs are provided above."
          },
          "maxAdvertisers": {
            "title": "Max advertisers to scrape",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many matching advertisers to scrape in keyword mode. Ignored in domain and URL modes.",
            "default": 3
          },
          "region": {
            "title": "📍 Region",
            "enum": [
              "ANY",
              "ES",
              "US",
              "GB",
              "FR",
              "DE",
              "IT",
              "PT",
              "BR",
              "MX",
              "NL",
              "PL",
              "AR",
              "CO",
              "CL",
              "AT",
              "BE",
              "BG",
              "HR",
              "CY",
              "CZ",
              "DK",
              "EE",
              "FI",
              "GR",
              "HU",
              "IS",
              "IE",
              "LV",
              "LI",
              "LT",
              "LU",
              "MT",
              "NO",
              "RO",
              "SK",
              "SI",
              "SE",
              "CH"
            ],
            "type": "string",
            "description": "Filter ads by the country where they were shown: all EU/EEA countries, the UK, Switzerland and key Americas markets. Use <b>Any region</b> for the broadest results. Applies to domain and advertiser-name searches.<br><br>💡 When using URLs, the region is extracted from the URL and this setting is ignored.",
            "default": "ANY"
          },
          "platform": {
            "title": "📱 Platform",
            "enum": [
              "ALL",
              "SEARCH",
              "YOUTUBE",
              "SHOPPING",
              "MAPS",
              "PLAY"
            ],
            "type": "string",
            "description": "Filter ads by the Google product where they were shown. Use <b>All platforms</b> for the broadest results.<br><br>💡 Platform filtering only applies to ads shown on or after <b>2023-09-04</b>.",
            "default": "ALL"
          },
          "startDate": {
            "title": "📅 Start date",
            "type": "string",
            "description": "Filter ads shown from this date onward. Format: <b>YYYY-MM-DD</b> (e.g. <code>2026-08-01</code>).<br><br>Leave empty to include all dates. Works with all modes (URLs, domains, keyword)."
          },
          "endDate": {
            "title": "📅 End date",
            "type": "string",
            "description": "Filter ads shown up to this date. Format: <b>YYYY-MM-DD</b> (e.g. <code>2026-08-31</code>).<br><br>Leave empty to include up to today."
          },
          "maxResults": {
            "title": "Max ads",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of ads to extract. Applies per domain/URL in batch mode.<br>Start low (10–20) for your first run.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy",
            "type": "object",
            "description": "Usually leave as is. The scraper calls Google directly and, if Google rate-limits that IP (HTTP 429), switches to Apify datacenter proxy sessions automatically. Set an Apify proxy here only to use it from the first request."
          },
          "headless": {
            "title": "Headless browser",
            "type": "boolean",
            "description": "Run browser without a visible window. Disable only for local debugging.",
            "default": true
          },
          "engine": {
            "title": "Engine",
            "enum": [
              "auto",
              "browser"
            ],
            "type": "string",
            "description": "<b>Auto</b> reads the Transparency Center's own data API over plain HTTP — the same data the web page loads, without starting a browser — and falls back to Chromium for any target where that fails. <b>Browser</b> forces the previous Chromium-only behaviour.",
            "default": "auto"
          },
          "domain": {
            "title": "domain (legacy)",
            "type": "string",
            "description": "Deprecated: use 'domains' array or paste URLs instead."
          },
          "fetchDetails": {
            "title": "📝 Fetch ad text from detail pages",
            "type": "boolean",
            "description": "Visit each ad's detail page to extract headline and description text. The grid view only returns thumbnails — enable this to get the actual ad copy.<br><br>⚠️ <b>Slower:</b> adds ~3 seconds per ad. For 500 ads, expect ~25 min extra.",
            "default": false
          },
          "detailDelayMin": {
            "title": "Min delay between detail pages (seconds)",
            "minimum": 0.5,
            "maximum": 10,
            "type": "number",
            "description": "Minimum delay between detail page visits. Lower = faster but riskier. Default: 2.0",
            "default": 2
          },
          "detailDelayMax": {
            "title": "Max delay between detail pages (seconds)",
            "minimum": 1,
            "maximum": 15,
            "type": "number",
            "description": "Maximum delay between detail page visits. Default: 4.0",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}