{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Library & Transparency Center: Competitor Ad Scraper",
    "description": "Google Ads Transparency Center scraper, the Google ad library: competitor ads by advertiser or website, including YouTube and Google Shopping ads, with screenshots, dates, variations, country details and readable text where available. Monitor new ads. Trial: 0.01 USD per 1,000 ads until 31 Dec 2026.",
    "version": "1.0",
    "x-build-id": "ZYteusGj1lM9kQ4W5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cozybit~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cozybit-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/cozybit~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cozybit-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/cozybit~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cozybit-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",
        "required": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Advertisers or websites",
            "type": "array",
            "description": "Enter websites such as nike.com (most reliable), names such as Nike, AR IDs, or full https://adstransparency.google.com/advertiser/AR… links, including /creative/CR… links. Both advertiser and creative links return the advertiser's ads under your filters, not only the linked creative. Root search links such as https://adstransparency.google.com/?domain=nike.com are also accepted. A link's region applies only when the run region is empty; region=anywhere means unrestricted. RUN_SUMMARY.resolved records the effective region for that query; output query keeps the original entry. Name ranking prefers bounded prefixes, then bounded occurrences, then substrings; within a tier it prefers your country, then ad count. Free plans return up to 50 ads or 50 advertiser rows per run; paid plans remove this cap.",
            "items": {
              "type": "string"
            }
          },
          "resultType": {
            "title": "Results",
            "enum": [
              "ads",
              "advertisers"
            ],
            "type": "string",
            "description": "ads or advertisers. Ads returns one row per ad. Advertisers returns one row per advertiser per query with filtered approximate ad counts, billing country, legal name, verification and the latest ad. Website discovery scans at most five pages of 40 recent ads, so it may not find every advertiser. Empty discovery produces one free no-data row. Known advertisers with no matching ads are retained with zero counts; zero or failed counts are free. Advertiser mode ignores onlyNewAds, includeAdText, includeDetails and maxAdsPerQuery.",
            "default": "ads"
          },
          "maxAdvertisersPerQuery": {
            "title": "Maximum advertisers per query",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Advertiser mode only. Keep this many distinct advertisers in first-appearance order for websites, or the top ranked name matches. An AR ID selects only that advertiser. Free plans return at most 50 rows per run, including no-data rows.",
            "default": 5
          },
          "region": {
            "title": "Shown in country",
            "type": "string",
            "description": "Two-letter ISO country code where ads were shown, e.g. US, DE, GB or IN. Overrides regions in pasted Transparency Center links. Empty uses each link's region when present, otherwise anywhere. Filters ad delivery, not proxy location.",
            "default": ""
          },
          "platform": {
            "title": "Platform",
            "enum": [
              "",
              "SEARCH",
              "YOUTUBE",
              "SHOPPING",
              "MAPS",
              "PLAY"
            ],
            "type": "string",
            "description": "SEARCH, YOUTUBE, SHOPPING, MAPS or PLAY. Empty includes every Google platform.",
            "default": ""
          },
          "format": {
            "title": "Ad format",
            "enum": [
              "",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "TEXT, IMAGE or VIDEO. Empty includes every ad format.",
            "default": ""
          },
          "dateFrom": {
            "title": "Shown on or after",
            "type": "string",
            "description": "Optional date YYYY-MM-DD. Filters serving dates, not the original creative creation date.",
            "default": ""
          },
          "dateTo": {
            "title": "Shown on or before",
            "type": "string",
            "description": "Optional inclusive date YYYY-MM-DD.",
            "default": ""
          },
          "sortBy": {
            "title": "Ad order",
            "enum": [
              "recent",
              "days_shown"
            ],
            "type": "string",
            "description": "Ads only; ignored in advertiser mode. recent keeps Google's last-shown-first order. days_shown fetches up to five pages of 40 recent creatives per query (at most 200), then sorts those collected ads by Google's served-day count descending before applying maxAdsPerQuery. This is not an all-time longest-running search. Ties keep Google's order; unknown counts come last. Filters and monitoring still apply; enrichment and charging cover only returned rows.",
            "default": "recent"
          },
          "maxAdsPerQuery": {
            "title": "Maximum ads per advertiser or website",
            "minimum": 1,
            "type": "integer",
            "description": "Ignored in advertiser mode. Return up to this many ads per entry in sortBy order. days_shown examines at most 200 recent creatives, even when this limit is higher. In monitoring mode this counts only unseen ads. Free Apify plans return up to 50 ads in total per run across all entries.",
            "default": 40
          },
          "includeAdText": {
            "title": "Extract available ad text",
            "type": "boolean",
            "description": "Ignored in advertiser mode. Fetch text previews, including product titles of Shopping image ads. Text ads without a preview also need a detail lookup. Google sometimes exposes screenshots only, reported as unavailable. No OCR is used.",
            "default": true
          },
          "includeDetails": {
            "title": "Include ad variations and country details",
            "type": "boolean",
            "description": "Ignored in advertiser mode. Include ad variations, serving dates by country and available impression ranges, plus advertiser_country (billing country) and advertiser_verified from one cached lookup per distinct advertiser per run. Failed lookups leave both advertiser fields null and record the failure in RUN_SUMMARY, without adding a row error. Turn off to skip details and advertiser lookups; a creative detail may still be needed to find text. No extra charge event.",
            "default": true
          },
          "onlyNewAds": {
            "title": "Return only ads not collected before",
            "type": "boolean",
            "description": "Ignored in advertiser mode; no monitoring state is read or written. Remember collected ads for each entry, country, platform and format. Later runs skip them before text lookup or charging. The first run collects normally. Use one monitoring run at a time for the same settings. Previously collected ads are not returned again until their IDs leave the 50,000-ad history.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy settings for ad searches and details",
            "type": "object",
            "description": "Keep the default residential proxy for advertiser searches, ads and details. No proxy country is required. Datacenter proxies are not recommended: Google blocks shared datacenter IPs. Text previews normally load directly from the run's server; a blocked preview is retried once through the current proxy session.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}