{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper — Landing Pages, 46 Markets",
    "description": "Search Google Ads by keyword, domain, advertiser URL or advertiser ID. Type a brand name and the scraper finds the matching advertisers, then scrapes every creative with real landing pages (OCR), dates, formats and multi-region coverage.",
    "version": "2.16",
    "x-build-id": "OsDnstuaXTgXumVfS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/t2solutions~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-t2solutions-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/t2solutions~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-t2solutions-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/t2solutions~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-t2solutions-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": "Brand names or search terms",
            "type": "array",
            "description": "One or more brand names or search terms. Each query resolves its own advertisers in the same run (up to 10 queries, deduplicated across them). Use this instead of the comma-separated form when a name contains a comma, such as \"Nike, Inc.\".",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Domain, advertiser URL or advertiser ID",
            "type": "string",
            "description": "A website (nike.com), a full Transparency Center URL, or an advertiser ID (AR...). Keyword search also accepts a single term here, and a comma-separated batch for backwards compatibility — but prefer the list above, because a name with a comma (\"Nike, Inc.\") would be split into two queries."
          },
          "searchType": {
            "title": "Search by",
            "enum": [
              "",
              "keyword",
              "domain",
              "advertiserUrl",
              "advertiserId"
            ],
            "type": "string",
            "description": "How to look up the input. Auto-detect is the safe default: a bare website goes to Domain, an AR... id to Advertiser ID, a Transparency link to Advertiser URL, and anything else to Keyword (brands from the list above).",
            "default": ""
          },
          "resultsLimit": {
            "title": "Maximum creatives per run",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on delivered creatives. Applied before landing-page extraction, so it also caps OCR time and the per-result charge. Empty or null means unlimited (bounded only by Max pages)."
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Pages to fetch per query (~100 creatives per page, so 5 pages covers ~500 creatives). In multi-region mode this is pages *per region*. The page walk stops as soon as Maximum creatives is reached.",
            "default": 1
          },
          "maxAdvertisers": {
            "title": "Max advertisers (keyword search only)",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "When searching by keyword, how many matching advertisers to pull ads from (biggest first). Each additional advertiser is fetched like a separate advertiser-ID search, so higher values cost more and run longer. With several queries in one run this applies per query (50 advertisers max in total). Ignored for domain / URL / ID searches.",
            "default": 1
          },
          "region": {
            "title": "Region",
            "enum": [
              "",
              "US",
              "GB",
              "CA",
              "AU",
              "VN",
              "DE",
              "FR",
              "IT",
              "ES",
              "NL",
              "SE",
              "PL",
              "JP",
              "KR",
              "SG",
              "IN",
              "ID",
              "TH",
              "PH",
              "MY",
              "HK",
              "TW",
              "BR",
              "MX",
              "AR",
              "CO",
              "CL",
              "AE",
              "SA",
              "ZA",
              "NG",
              "EG",
              "TR",
              "IL",
              "RU",
              "CN",
              "NZ",
              "CH",
              "AT",
              "BE",
              "IE",
              "PT",
              "NO",
              "DK",
              "FI"
            ],
            "type": "string",
            "description": "Limit results to a single country (ISO 3166 alpha-2 code). Leave empty for all regions. Ignored when Multi-region scan is on.",
            "default": ""
          },
          "multiRegion": {
            "title": "Multi-region scan (find every country an ad runs in)",
            "type": "boolean",
            "description": "Scan ~46 major markets and tag each creative with every country it appears in. Great for spotting which ads a brand is scaling globally. Ignores the single Region above. Slower but far more complete.",
            "default": false
          },
          "format": {
            "title": "Ad format",
            "enum": [
              "",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Filter by creative format. Leave as 'All' to include text, image and video ads.",
            "default": ""
          },
          "presetDate": {
            "title": "Date range (preset)",
            "enum": [
              "",
              "Last 7 days",
              "Last 30 days",
              "Last 90 days"
            ],
            "type": "string",
            "description": "Only include creatives shown within this recent window. Overridden by custom start/end dates below if those are set.",
            "default": ""
          },
          "startDate": {
            "title": "Custom start date",
            "type": "string",
            "description": "Only include creatives active on/after this date. Overrides the preset date range."
          },
          "endDate": {
            "title": "Custom end date",
            "type": "string",
            "description": "Only include creatives active on/before this date. Overrides the preset date range."
          },
          "extractLandingPages": {
            "title": "Extract landing pages (recommended)",
            "type": "boolean",
            "description": "Resolve the real destination/landing page for each ad — including OCR on image ads where the URL is only visible in the creative. This is the main differentiator; disable for a faster, cheaper run. Preview URLs and video metadata are still resolved with this off.",
            "default": true
          },
          "resolveRedirects": {
            "title": "Follow redirects (final landing URL)",
            "type": "boolean",
            "description": "For each landing page, follow its redirect chain and record where it finally lands as 'landing_page_final' — this exposes affiliate hops and tracker redirects that the first URL hides. Costs one extra HTTP request per ad with a landing page; failures fall back to the original URL, never a lost result.",
            "default": false
          },
          "downloadAssets": {
            "title": "Download ad assets as ZIP",
            "type": "boolean",
            "description": "Download the actual creative media files (images and text-ad artwork) and store them as one ZIP in the run's key-value store under the key ASSETS (open it from the run page → Storage → Key-value store). Capped at 400 files / 80 MB per run so big brands can't stall the run. Video ads are skipped — Google does not expose their file URLs here.",
            "default": false
          },
          "includeAdDetails": {
            "title": "Include ad details (regions, impressions, targeting)",
            "type": "boolean",
            "description": "One extra request per ad for Google's own disclosure record: which markets the ad ran in, first/last date per market, impression ranges and serving surfaces (EU/EEA markets only), audience-targeting flags, ad category, and the number of creative variations with their preview URLs. Costs about 0.65 s per ad; turn it off for the leanest possible run.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}