{
  "openapi": "3.0.1",
  "info": {
    "title": "Ad Repository Scraper",
    "description": "⚡ Fast Ad Repository scraper for 12 ad platforms: Facebook, Instagram, X, Google, YouTube, Bing, Amazon, TikTok, Reddit, Pinterest, LinkedIn and display. No login, no API key. Search by keyword or URL: ad text, images, videos, landing pages, advertisers, engagement, countries.",
    "version": "1.0",
    "x-build-id": "os6BsSa5tUk4cJeSP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aboo.script~adsrepository-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aboo.script-adsrepository-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/aboo.script~adsrepository-scraper/runs": {
      "post": {
        "operationId": "runs-sync-aboo.script-adsrepository-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/aboo.script~adsrepository-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-aboo.script-adsrepository-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Ad Repository URLs: the ad list with any filters (https://www.adsrepository.com/ads?platform=facebook-ads&country=US), an advertiser page (https://www.adsrepository.com/advertisers/google-search/temu.com), a platform page (https://www.adsrepository.com/platforms/tiktok) or a single ad (https://www.adsrepository.com/ads/<id>). Filters in the URL are kept.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords, advertiser names or domains to search for, for example nike. The filters below apply to search queries only.",
            "items": {
              "type": "string"
            }
          },
          "platform": {
            "title": "Platform",
            "enum": [
              "facebook-ads",
              "instagram-ads",
              "twitter-ads",
              "google-search-ads",
              "display-ads",
              "youtube-ads",
              "bing-search-ads",
              "amazon-ads",
              "tiktok-ads",
              "reddit-ads",
              "pinterest-ads",
              "linkedin-ads"
            ],
            "type": "string",
            "description": "Only ads from this platform. Leave empty for all platforms."
          },
          "mediaType": {
            "title": "Media type",
            "enum": [
              "text",
              "image",
              "video",
              "carousel"
            ],
            "type": "string",
            "description": "Only ads with this kind of creative."
          },
          "country": {
            "title": "Country",
            "enum": [
              "AE",
              "AL",
              "AM",
              "AO",
              "AR",
              "AT",
              "AU",
              "AZ",
              "BB",
              "BD",
              "BE",
              "BF",
              "BG",
              "BJ",
              "BO",
              "BR",
              "BY",
              "CA",
              "CD",
              "CG",
              "CH",
              "CI",
              "CL",
              "CM",
              "CN",
              "CO",
              "CR",
              "CY",
              "CZ",
              "DE",
              "DK",
              "DO",
              "DZ",
              "EC",
              "EE",
              "EG",
              "ES",
              "ET",
              "FR",
              "GB",
              "GE",
              "GH",
              "GP",
              "GR",
              "GT",
              "HK",
              "HN",
              "HR",
              "HT",
              "HU",
              "ID",
              "IE",
              "IL",
              "IN",
              "IR",
              "IS",
              "IT",
              "JM",
              "JO",
              "JP",
              "KE",
              "KG",
              "KH",
              "KR",
              "KW",
              "KZ",
              "LA",
              "LB",
              "LT",
              "LV",
              "LY",
              "MA",
              "MD",
              "ME",
              "MG",
              "ML",
              "MN",
              "MU",
              "MX",
              "MY",
              "MZ",
              "NA",
              "NE",
              "NG",
              "NL",
              "NO",
              "NZ",
              "OM",
              "PA",
              "PE",
              "PH",
              "PK",
              "PL",
              "PR",
              "PS",
              "PT",
              "QA",
              "RO",
              "RS",
              "RU",
              "RW",
              "SA",
              "SE",
              "SG",
              "SI",
              "SK",
              "SL",
              "SN",
              "SO",
              "SV",
              "TG",
              "TH",
              "TN",
              "TR",
              "TT",
              "TW",
              "TZ",
              "UA",
              "UG",
              "US",
              "UZ",
              "VN",
              "XK",
              "ZA",
              "ZM",
              "ZW"
            ],
            "type": "string",
            "description": "Only ads seen in this country."
          },
          "domain": {
            "title": "Domain",
            "type": "string",
            "description": "Only ads that lead to this domain, for example amazon.com."
          },
          "network": {
            "title": "Display network",
            "enum": [
              "google-display",
              "taboola",
              "outbrain"
            ],
            "type": "string",
            "description": "Only display ads from this ad network."
          },
          "adFormat": {
            "title": "Search ad format",
            "enum": [
              "search",
              "shopping"
            ],
            "type": "string",
            "description": "Only search engine ads of this format."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "newest",
              "recent",
              "engagement"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": "newest"
          },
          "includeDynamic": {
            "title": "Include dynamic product ads",
            "type": "boolean",
            "description": "Also return dynamic (catalog) ads, which are hidden by default.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of ads per start URL or search query. Set 0 for no limit.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}