{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper",
    "description": "Every ad an advertiser runs on Google, from the Ads Transparency Center (Google's ad library): by advertiser, id, domain or link, with format, creative preview, first and last shown, per-region impressions. Export ad data to JSON, CSV or Excel, or via API. Empty answers are free.",
    "version": "1.0",
    "x-build-id": "4jlDDnUvlcDSyzm3F"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-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/steadyscrape~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-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/steadyscrape~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-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": {
          "advertisers": {
            "title": "Advertisers",
            "type": "array",
            "description": "One per line: an advertiser name (<code>Nike, Inc.</code>), an advertiser id (<code>AR16735076323512287233</code>), a domain the ads point at (<code>nike.com</code>), or a link copied from the Transparency Center (an advertiser page, a single ad page or a domain search). A name is looked up and the advertisers with most ads are taken. <code>startUrls</code>, <code>domains</code>, <code>advertiserIds</code> and <code>queries</code> sent by API are read the same way.",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Region",
            "pattern": "^\\s*([aA][nN][yY][wW][hH][eE][rR][eE]|[aA][lL][lL]|[wW][oO][rR][lL][dD][wW][iI][dD][eE]|[uU][kK]|[aA][fF]|[aA][xX]|[aA][lL]|[dD][zZ]|[aA][sS]|[aA][dD]|[aA][oO]|[aA][iI]|[aA][qQ]|[aA][gG]|[aA][rR]|[aA][mM]|[aA][wW]|[aA][uU]|[aA][tT]|[aA][zZ]|[bB][sS]|[bB][hH]|[bB][dD]|[bB][bB]|[bB][yY]|[bB][eE]|[bB][zZ]|[bB][jJ]|[bB][mM]|[bB][tT]|[bB][oO]|[bB][qQ]|[bB][aA]|[bB][wW]|[bB][vV]|[bB][rR]|[iI][oO]|[bB][nN]|[bB][gG]|[bB][fF]|[bB][iI]|[cC][vV]|[kK][hH]|[cC][mM]|[cC][aA]|[kK][yY]|[cC][fF]|[tT][dD]|[cC][lL]|[cC][nN]|[cC][xX]|[cC][cC]|[cC][oO]|[kK][mM]|[cC][gG]|[cC][dD]|[cC][kK]|[cC][rR]|[cC][iI]|[hH][rR]|[cC][uU]|[cC][wW]|[cC][yY]|[cC][zZ]|[dD][kK]|[dD][jJ]|[dD][mM]|[dD][oO]|[eE][cC]|[eE][gG]|[sS][vV]|[gG][qQ]|[eE][rR]|[eE][eE]|[sS][zZ]|[eE][tT]|[fF][kK]|[fF][oO]|[fF][jJ]|[fF][iI]|[fF][rR]|[gG][fF]|[pP][fF]|[tT][fF]|[gG][aA]|[gG][mM]|[gG][eE]|[dD][eE]|[gG][hH]|[gG][iI]|[gG][rR]|[gG][lL]|[gG][dD]|[gG][pP]|[gG][uU]|[gG][tT]|[gG][gG]|[gG][nN]|[gG][wW]|[gG][yY]|[hH][tT]|[hH][mM]|[vV][aA]|[hH][nN]|[hH][kK]|[hH][uU]|[iI][sS]|[iI][nN]|[iI][dD]|[iI][rR]|[iI][qQ]|[iI][eE]|[iI][mM]|[iI][lL]|[iI][tT]|[jJ][mM]|[jJ][pP]|[jJ][eE]|[jJ][oO]|[kK][zZ]|[kK][eE]|[kK][iI]|[kK][pP]|[kK][rR]|[kK][wW]|[kK][gG]|[lL][aA]|[lL][vV]|[lL][bB]|[lL][sS]|[lL][rR]|[lL][yY]|[lL][iI]|[lL][tT]|[lL][uU]|[mM][oO]|[mM][gG]|[mM][wW]|[mM][yY]|[mM][vV]|[mM][lL]|[mM][tT]|[mM][hH]|[mM][qQ]|[mM][rR]|[mM][uU]|[yY][tT]|[mM][xX]|[fF][mM]|[mM][dD]|[mM][cC]|[mM][nN]|[mM][eE]|[mM][sS]|[mM][aA]|[mM][zZ]|[mM][mM]|[nN][aA]|[nN][rR]|[nN][pP]|[nN][lL]|[nN][cC]|[nN][zZ]|[nN][iI]|[nN][eE]|[nN][gG]|[nN][uU]|[nN][fF]|[mM][kK]|[mM][pP]|[nN][oO]|[oO][mM]|[pP][kK]|[pP][wW]|[pP][sS]|[pP][aA]|[pP][gG]|[pP][yY]|[pP][eE]|[pP][hH]|[pP][nN]|[pP][lL]|[pP][tT]|[pP][rR]|[qQ][aA]|[rR][eE]|[rR][oO]|[rR][uU]|[rR][wW]|[bB][lL]|[sS][hH]|[kK][nN]|[lL][cC]|[mM][fF]|[pP][mM]|[vV][cC]|[wW][sS]|[sS][mM]|[sS][tT]|[sS][aA]|[sS][nN]|[rR][sS]|[sS][cC]|[sS][lL]|[sS][gG]|[sS][xX]|[sS][kK]|[sS][iI]|[sS][bB]|[sS][oO]|[zZ][aA]|[gG][sS]|[sS][sS]|[eE][sS]|[lL][kK]|[sS][dD]|[sS][rR]|[sS][jJ]|[sS][eE]|[cC][hH]|[sS][yY]|[tT][wW]|[tT][jJ]|[tT][zZ]|[tT][hH]|[tT][lL]|[tT][gG]|[tT][kK]|[tT][oO]|[tT][tT]|[tT][nN]|[tT][rR]|[tT][mM]|[tT][cC]|[tT][vV]|[uU][gG]|[uU][aA]|[aA][eE]|[gG][bB]|[uU][sS]|[uU][mM]|[uU][yY]|[uU][zZ]|[vV][uU]|[vV][eE]|[vV][nN]|[vV][gG]|[vV][iI]|[wW][fF]|[eE][hH]|[yY][eE]|[zZ][mM]|[zZ][wW])?\\s*$",
            "type": "string",
            "description": "A country code (<code>US</code>, <code>DE</code>, <code>BR</code>) to keep only ads shown there, or <code>anywhere</code>.",
            "default": "anywhere"
          },
          "formats": {
            "title": "Formats",
            "uniqueItems": true,
            "type": "array",
            "description": "Which ad formats to fetch. Empty: all.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "image",
                "video"
              ],
              "enumTitles": [
                "Text",
                "Image",
                "Video"
              ]
            },
            "default": [
              "text",
              "image",
              "video"
            ]
          },
          "platforms": {
            "title": "Platforms",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only ads shown on these Google surfaces. Empty: all. Google only knows the platform of ads shown since September 2023.",
            "items": {
              "type": "string",
              "enum": [
                "search",
                "youtube",
                "shopping",
                "maps",
                "play"
              ],
              "enumTitles": [
                "Google Search",
                "YouTube",
                "Google Shopping",
                "Google Maps",
                "Google Play"
              ]
            },
            "default": []
          },
          "shownFrom": {
            "title": "Shown from",
            "pattern": "^\\s*((\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|02-(0[1-9]|1\\d|2[0-8])))|((\\d{2}(0[48]|[2468][048]|[13579][26])|([02468][048]|[13579][26])00)-02-29))?\\s*$",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>. Keep only ads still shown on or after this day."
          },
          "shownTo": {
            "title": "Shown to",
            "pattern": "^\\s*((\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|02-(0[1-9]|1\\d|2[0-8])))|((\\d{2}(0[48]|[2468][048]|[13579][26])|([02468][048]|[13579][26])00)-02-29))?\\s*$",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>. Keep only ads first shown on or before this day."
          },
          "maxAdsPerAdvertiser": {
            "title": "Max ads per advertiser",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Newest first, 40 per request.",
            "default": 100
          },
          "maxAdvertisersPerName": {
            "title": "Max advertisers per name",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "When a line is a name, how many of the matching advertisers (most ads first) to scrape.",
            "default": 3
          },
          "includeDetails": {
            "title": "Include ad details",
            "type": "boolean",
            "description": "One more request per ad: every region the ad was shown in with first/last day, impression ranges and platforms where Google publishes them (EU ads), the ad's topic, and every variant's preview. Priced as an ad with details.",
            "default": false
          },
          "residentialFallback": {
            "title": "Fall back to residential proxies",
            "type": "boolean",
            "description": "When Google refuses the run's own IP and the datacenter proxies, retry through residential proxies (included in the price: you pay per row, not per proxy byte). Off: those targets come back with status <code>blocked</code>, unpaid.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}