{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper: Competitor Ads & EU Reach",
    "description": "Scrape Google Ads Transparency Center creatives by domain, brand or Advertiser ID (AR...). Extracts Search, YouTube & Display previews, A/B variations, active days, evergreen winners & EU DSA impression stats in <2s. Zero proxies needed ($1.20/1k in Rust 128 MB).",
    "version": "0.1",
    "x-build-id": "49RyAyR9UiQ59Lkzx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cetus~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cetus-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/cetus~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cetus-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/cetus~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cetus-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": {
          "queries": {
            "title": "Competitor Domains, Brand Names, URLs or Advertiser IDs (AR...)",
            "type": "array",
            "description": "Enter any mix of competitor domains ('shopify.com', 'booking.com'), brand names ('Stripe', 'Airbnb'), full Transparency URLs, or Google Advertiser IDs ('AR16951989901585285121').",
            "default": [
              "shopify.com",
              "Stripe"
            ],
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Target Country / Region",
            "type": "string",
            "description": "Use 'anywhere' for worldwide coverage or a 2-letter ISO country code (e.g. US, IT, DE, GB, FR, ES, NL, CA, AU, BR, JP). Use an EU country code (e.g. IT, DE, FR) to surface EU Digital Services Act impression counts.",
            "default": "anywhere"
          },
          "adFormatFilter": {
            "title": "Ad Format Filter",
            "enum": [
              "all",
              "text",
              "image",
              "video"
            ],
            "type": "string",
            "description": "Filter by Google ad creative format.",
            "default": "all"
          },
          "minDaysActive": {
            "title": "Minimum Days Active (Evergreen Winning Ads Filter)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep only ads that have been actively served for at least N days (e.g. set 30 or 90 to isolate proven, profitable evergreen campaigns).",
            "default": 0
          },
          "activeWithinDays": {
            "title": "Served Within Last N Days (0 = Any Time)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep only ads shown within the last N days (e.g. 7 for active this week, 30 for active this month; 0 disables filtering).",
            "default": 0
          },
          "includeCreativeDetails": {
            "title": "Include Full Creative Variations & EU DSA Impression Breakdown",
            "type": "boolean",
            "description": "Fetches per-creative A/B variations, EU DSA impression ranges, Google Search/YouTube/Shopping surface breakdown, and audience targeting signals at NO extra event surcharge.",
            "default": true
          },
          "maxAdsPerQuery": {
            "title": "Max Ads per Competitor / Query",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of ad creatives to extract per target query.",
            "default": 30
          },
          "maxTotalAds": {
            "title": "Max Total Ads Across Run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Global cap on total ad creatives returned in this run.",
            "default": 60
          },
          "concurrency": {
            "title": "Parallel RPC Streams",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Concurrent async Rust HTTP/2 RPC workers (1 to 24).",
            "default": 12
          },
          "maxTotalChargeUsd": {
            "title": "Max Spend Cap (USD)",
            "type": "string",
            "description": "Optional hard spending limit in USD (e.g. '2.00'). Run stops cleanly before exceeding this cap."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}