{
  "openapi": "3.0.1",
  "info": {
    "title": "Competitor Ads Tracker for Meta and Google Ad Libraries",
    "description": "See your competitors' ads from the Meta Ad Library and Google Ads Transparency Center in one table, with start date, days active, long-running and new-this-week flags, and a per-brand summary. $0.05 per brand; the two upstream Actors' fees are charged on top. Free demo. Works in AI agents via MCP.",
    "version": "0.1",
    "x-build-id": "zncS1SY2Qp2N6DTOF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wisekit~competitor-ads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wisekit-competitor-ads",
        "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/wisekit~competitor-ads/runs": {
      "post": {
        "operationId": "runs-sync-wisekit-competitor-ads",
        "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/wisekit~competitor-ads/run-sync": {
      "post": {
        "operationId": "run-sync-wisekit-competitor-ads",
        "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": [
          "brands"
        ],
        "properties": {
          "brands": {
            "title": "Competitors (brands)",
            "type": "array",
            "description": "Required. Companies to check, one per line: a website (\"allbirds.com\") or a company name (\"Allbirds\"). A website gives the best Google match. For Meta, add the brand's Facebook Page after \" | \", for example \"allbirds.com | https://www.facebook.com/allbirds\"; without it we try facebook.com/<first part of the website or the name squashed> and show which Page matched. For companies' ads only, not for researching individuals. Up to 50 per run (1 on the Apify free plan). Agent example: {\"brands\":[\"allbirds.com | https://www.facebook.com/allbirds\",\"gymshark.com\"]}.",
            "items": {
              "type": "string"
            }
          },
          "platforms": {
            "title": "Ad libraries",
            "uniqueItems": true,
            "type": "array",
            "description": "Which ad libraries to search: \"meta\" (Meta Ad Library, via automation-lab/facebook-ads-library: $0.005 per run + $0.000575 per ad on the free plan until 30 Nov 2026, then $0.0005; $0.0005 on Starter; checked 23 Nov 2026) and \"google\" (Google Ads Transparency Center, via silva95gustavo/google-ads-scraper: $0.0019 per ad at free-plan prices, $0.0016 starter, less on higher plans; $0.004 minimum per run). Each library you tick starts one upstream run per brand in your account. Each upstream run is under that Actor's own terms (see its Store page). Default for API calls: both. The form starts with Meta only for a cheap first run.",
            "items": {
              "type": "string",
              "enum": [
                "meta",
                "google"
              ],
              "enumTitles": [
                "Meta Ad Library",
                "Google Ads Transparency Center"
              ]
            },
            "default": [
              "meta",
              "google"
            ]
          },
          "maxAdsPerPlatform": {
            "title": "Max ads per library per brand",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "The most ads to fetch from each library for each brand (1 to 300). Upstream fees grow with it: 25 ads cost up to about $0.0194 on Meta and $0.0476 on Google per brand at free-plan prices ($0.067 for both). Default 25.",
            "default": 25
          },
          "longRunningDays": {
            "title": "Long-running threshold (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "An ad is flagged longRunning when it has been live at least this many days (start date to end date, or to today while still running). A long run often means the advertiser keeps paying for it, but run length doesn't prove an ad is profitable. Default 30.",
            "default": 30
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code (for example \"US\", \"GB\", \"AU\") to see only ads shown there, or \"ALL\" for every country. Default ALL.",
            "default": "ALL"
          },
          "maxConcurrency": {
            "title": "Brands at the same time",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many brands run in parallel (1 to 5). Each brand starts one upstream run per library in your account (Meta 512 MB, Google 1 GB), so on the Apify free plan keep it at 1 or 2. No extra cost. Default 2.",
            "default": 2
          },
          "demo": {
            "title": "Free demo (fictional sample rows)",
            "type": "boolean",
            "description": "Shows two fictional brands with sample ads, a brand summary and a \"no ads found\" row. No upstream Actor is started and nothing is charged; the brands you entered are ignored. Default off.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}