{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper — Ad Copy, Video & B2B Leads",
    "description": "Extract full Google Ads creatives (Search text headlines & descriptions, YouTube video URLs, images, A/B variations, EU reach, active days) plus advertiser emails, MX grade & Meta/TikTok pixel gaps.",
    "version": "2.0",
    "x-build-id": "ZcGLyetXo1Ugx1orB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bantoi_200311~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bantoi_200311-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/bantoi_200311~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bantoi_200311-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/bantoi_200311~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bantoi_200311-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": {
          "targets": {
            "title": "Targets (Domains, Brand Names, Advertiser IDs, or Transparency URLs)",
            "type": "array",
            "description": "Enter websites (e.g. 'hubspot.com'), brand names (e.g. 'Shopify'), Advertiser IDs ('AR...'), or full Google Ads Transparency URLs.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Exact Domains (Optional)",
            "type": "array",
            "description": "Exact website domains to find all Google Ads pointing to those domains.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Brand Names / Search Terms (Optional)",
            "type": "array",
            "description": "Brand or company names resolved via Google Ads Transparency autocomplete.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "advertiserIds": {
            "title": "Google Advertiser IDs (AR...)",
            "type": "array",
            "description": "Verified Google Advertiser IDs starting with AR (e.g. 'AR01625195283841286145').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Ads Transparency URLs (Optional)",
            "type": "array",
            "description": "Paste advertiser, creative, or domain-filtered URLs copied from adstransparency.google.com.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "use_seed_targets": {
            "title": "Use Seed Targets When Inputs Are Empty",
            "type": "boolean",
            "description": "Automatically run on verified seed SaaS/e-commerce advertisers when no targets are supplied.",
            "default": true
          },
          "result_mode": {
            "title": "Result Mode",
            "enum": [
              "ads",
              "advertisers",
              "competitor_summary"
            ],
            "type": "string",
            "description": "Choose 'ads' for full creative & copy records, 'advertisers' for fast B2B ad-check qualification, or 'competitor_summary' for one strategic dossier per brand.",
            "default": "ads"
          },
          "region": {
            "title": "Country / Region Code",
            "type": "string",
            "description": "2-letter ISO country code (US, GB, DE, FR, CA, AU, NL, ES, IT, SE, BR, IN, SG, JP, VN, etc.) or ALL / ANYWHERE.",
            "default": "US"
          },
          "ad_format": {
            "title": "Ad Format Filter",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Filter extracted creatives by format.",
            "default": "ALL"
          },
          "platforms": {
            "title": "Google Surface Filter (EU / Detailed Ads)",
            "type": "array",
            "description": "Optional platform filter when surface serving metadata is present: SEARCH, YOUTUBE, SHOPPING, MAPS, PLAY.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "include_details": {
            "title": "Extract Deep Creative Details, Ad Copy, Video & Variations ($0 Extra Fee)",
            "type": "boolean",
            "description": "Calls LookupService/GetCreativeById + decodes protobuf overlays & content.js renderers for headlines, descriptions, CTAs, YouTube URLs, A/B variations, and EU reach at NO extra event surcharge.",
            "default": true
          },
          "enrich_landing_page_leads": {
            "title": "Enrich Advertiser B2B Emails, MX Grade & Ad Pixel Gaps ($0 Extra Fee)",
            "type": "boolean",
            "description": "Crawls each unique advertiser domain once to attach live contact emails, DNS MX/SPF/DMARC deliverability grade, Meta/TikTok/LinkedIn pixels, and missing paid-social channels.",
            "default": true
          },
          "only_evergreen_winners": {
            "title": "Only Evergreen Winning Ads (>= 30 Days Active)",
            "type": "boolean",
            "description": "Keep only proven profitable ads running for 30+ days.",
            "default": false
          },
          "min_longevity_days": {
            "title": "Minimum Active Longevity (Days)",
            "minimum": 0,
            "type": "integer",
            "description": "Filter out ads active fewer than this number of days.",
            "default": 0
          },
          "start_date": {
            "title": "Shown On or After (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional ISO start date filter (e.g. '2026-01-01').",
            "default": ""
          },
          "end_date": {
            "title": "Shown On or Before (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional ISO end date filter (e.g. '2026-12-31').",
            "default": ""
          },
          "only_new_ads": {
            "title": "Monitor Mode: Emit Only Newly Launched Ads",
            "type": "boolean",
            "description": "Stores seen creative IDs in a named Key-Value Store so scheduled runs emit only brand-new competitor ads.",
            "default": false
          },
          "monitor_store_name": {
            "title": "Monitor State Key-Value Store Name",
            "type": "string",
            "description": "Key-Value Store name used when Monitor Mode is enabled.",
            "default": "ads-transparency-monitor"
          },
          "detail_concurrency": {
            "title": "Detail Extraction Concurrency",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Parallel workers for GetCreativeById & creative asset decoding (1-15).",
            "default": 6
          },
          "max_pages_per_target": {
            "title": "Max Cursor Pages Per Target",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum SearchCreatives cursor pages fetched per target (up to 60 ads/page).",
            "default": 2
          },
          "include_raw_data": {
            "title": "Include Raw Google RPC Payloads",
            "type": "boolean",
            "description": "Attach raw SearchCreatives and GetCreativeById JSON objects for debugging.",
            "default": false
          },
          "max_items": {
            "title": "Maximum Output Records",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum records returned across all targets. Free Apify plan is capped at 15 preview records.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Uses fast rotating Apify Datacenter proxies by default on Cloud to prevent 429 rate limits at negligible cost.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}