{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper",
    "description": "Scrapes Google’s Ad Transparency Center with image/video extraction, OCR, and multi-region support. Includes presets, cost preview, and enterprise features. Fair pricing: usage-based for ads, domains, and runs.",
    "version": "2.0",
    "x-build-id": "rwLqBWR7kAA4h5sey"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shashankms2580~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shashankms2580-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/shashankms2580~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-shashankms2580-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/shashankms2580~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-shashankms2580-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": [
          "targets"
        ],
        "properties": {
          "preset": {
            "title": "🚀 Quick Start Presets",
            "enum": [
              "quick_start",
              "competitive_analysis",
              "keyword_monitoring",
              "custom"
            ],
            "type": "string",
            "description": "Choose a preset configuration to get started quickly",
            "default": "quick_start"
          },
          "targets": {
            "title": "🎯 Targets to Scrape",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Enter domains, advertiser IDs, or URLs",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "🌍 Target Region",
            "enum": [
              "AL",
              "US",
              "IN",
              "GB",
              "DE",
              "FR",
              "CA",
              "AU",
              "BR",
              "JP",
              "KR",
              "SG",
              "MX",
              "NL",
              "SE",
              "NO",
              "DK",
              "RU",
              "TR",
              "SA",
              "EG",
              "NG",
              "KE",
              "TH",
              "VN",
              "ID",
              "MY",
              "PH",
              "CH",
              "AT",
              "BE",
              "PT",
              "GR",
              "CZ",
              "HU",
              "RO",
              "BG",
              "HR",
              "SK",
              "SI",
              "LT",
              "LV",
              "EE",
              "LU",
              "MT",
              "CY",
              "IE",
              "FI",
              "IS",
              "RS",
              "BA",
              "ME",
              "MK",
              "XK"
            ],
            "type": "string",
            "description": "Select the region where ads were shown. Use 'AL' for worldwide coverage (region=anywhere)",
            "default": "US"
          },
          "platform": {
            "title": "📱 Platform Filter",
            "enum": [
              "all",
              "YOUTUBE",
              "MAPS",
              "SEARCH",
              "DISPLAY",
              "SHOPPING"
            ],
            "type": "string",
            "description": "Select specific platform or 'all' for all platforms. Maps=MAPS, Search=SEARCH, Shopping=SHOPPING, YouTube=YOUTUBE",
            "default": "all"
          },
          "timePeriod": {
            "title": "⏰ Time Period",
            "enum": [
              "all_time",
              "last_30_days",
              "last_7_days",
              "last_90_days",
              "custom"
            ],
            "type": "string",
            "description": "Select the time period for ad search. 'All Time' gives maximum coverage, custom dates will be used if specified below",
            "default": "all_time"
          },
          "startDate": {
            "title": "📅 Start Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Custom start date (YYYY-MM-DD format). Leave empty to use time period preset"
          },
          "endDate": {
            "title": "📅 End Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Custom end date (YYYY-MM-DD format). Leave empty to use time period preset"
          },
          "mode": {
            "title": "⚙️ Processing Mode",
            "enum": [
              "LITE",
              "FULL"
            ],
            "type": "string",
            "description": "LITE mode is fast and cost-effective, FULL mode provides comprehensive analysis",
            "default": "LITE"
          },
          "ocrEnabled": {
            "title": "📝 Enable OCR Text Extraction",
            "type": "boolean",
            "description": "Extract text from images using OCR",
            "default": false
          },
          "maxConcurrency": {
            "title": "🔄 Concurrency Level",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Number of targets to process simultaneously (1-50)",
            "default": 20
          },
          "deltaSinceLastRun": {
            "title": "🔄 Delta Mode",
            "type": "boolean",
            "description": "Only process new ads since last run",
            "default": true
          },
          "outputFormat": {
            "title": "📤 Output Format",
            "enum": [
              "dataset",
              "csv",
              "jsonl"
            ],
            "type": "string",
            "description": "Choose how you want to receive your data",
            "default": "dataset"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}