{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Scraper - Ads Transparency & Library API",
    "description": "Scrape competitor ads from Google Ads Transparency Center by domain, brand, or ID. Extract Text, Image, and Video creatives with active dates, targeting, and media assets. [$0.95 / 1,000 ads - No start fee]",
    "version": "1.1",
    "x-build-id": "6xhbOjVTyhiEcMPAg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vnx0~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vnx0-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/vnx0~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vnx0-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/vnx0~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vnx0-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": {
          "advertiserDomains": {
            "title": "🌐 Competitor Website Domains",
            "type": "array",
            "description": "Competitor website domains to search automatically (e.g., 'nike.com', 'monday.com', 'shopify.com').",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "🏷️ Brand Names / Keywords",
            "type": "array",
            "description": "Company or brand names to look up directly in the Google Ads Transparency Center (e.g., 'Nike', 'Shopify', 'Monday').",
            "items": {
              "type": "string"
            }
          },
          "advertiserIds": {
            "title": "🆔 Google Advertiser IDs (AR...)",
            "type": "array",
            "description": "Direct Google Advertiser IDs starting with AR (e.g., 'AR14188379519798214657').",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Direct Transparency Center URLs",
            "type": "array",
            "description": "Direct Google Ads Transparency Center URLs (e.g. 'https://adstransparency.google.com/advertiser/AR...'). Fully backward-compatible.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "format": {
            "title": "🎨 Ad Format Filter",
            "enum": [
              "ALL",
              "IMAGE",
              "VIDEO",
              "TEXT"
            ],
            "type": "string",
            "description": "Filter ads by format: ALL formats, or restrict strictly to IMAGE, VIDEO, or TEXT creatives.",
            "default": "ALL"
          },
          "region": {
            "title": "🌍 Target Country / Region",
            "type": "string",
            "description": "Geographic region to scope ads (e.g., 'anywhere', 'US', 'GB', 'DE', 'FR', 'CA', 'AU', 'IN', 'JP'). Use 'anywhere' for global ads.",
            "default": "anywhere"
          },
          "resultsLimit": {
            "title": "🔢 Results Limit per Target",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of ads to scrape per target. Leave empty for unlimited.",
            "default": 100
          },
          "dateFrom": {
            "title": "📅 Active From Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Filter for ads active on or after this date (format: YYYY-MM-DD)."
          },
          "dateTo": {
            "title": "📅 Active To Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Filter for ads active on or before this date (format: YYYY-MM-DD)."
          },
          "deduplicateCreatives": {
            "title": "✨ Deduplicate Creatives",
            "type": "boolean",
            "description": "Automatically remove duplicate creatives sharing the same Creative ID to save cost and avoid duplicate rows.",
            "default": true
          },
          "detailedMode": {
            "title": "🔬 Deep Detail Inspection Mode",
            "type": "boolean",
            "description": "Enable to visit individual ad detail pages for deep targeting disclosures, regional impression ranges, and all creative variations. Leave disabled (Fast Mode) for rapid grid extraction at lowest compute cost.",
            "default": false
          },
          "shouldDownloadAssets": {
            "title": "💾 Download Media Files to Key-Value Store",
            "type": "boolean",
            "description": "Download image and video thumbnail files directly into your Apify Key-Value Store for permanent offline storage.",
            "default": false
          },
          "shouldDownloadPreviews": {
            "title": "🌐 Download HTML Previews to Key-Value Store",
            "type": "boolean",
            "description": "Save full HTML ad preview snapshots to Apify Key-Value Store.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. Apify Proxy (Automatic / Residential) is recommended to prevent Google rate limits.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "🚀 Maximum Concurrency",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Maximum parallel pages or detail tabs to process simultaneously (1 to 15).",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}