{
  "openapi": "3.0.1",
  "info": {
    "title": "Tech Stack & Ad Pixel Detector: CMS, GTM Tags, DNS",
    "description": "Detect any website's tech stack: CMS, ecommerce, analytics, ad pixels (Meta, Google Ads, TikTok, LinkedIn), tag managers, CDN, hosting, payments, chat, email & SaaS tools via DNS. Reads Google Tag Manager tags, extracts tracking IDs, flags changes since last run.",
    "version": "0.1",
    "x-build-id": "swLfU7HWNhkR8Rzqk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lasting_bonnethead~tech-stack-detector/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lasting_bonnethead-tech-stack-detector",
        "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/lasting_bonnethead~tech-stack-detector/runs": {
      "post": {
        "operationId": "runs-sync-lasting_bonnethead-tech-stack-detector",
        "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/lasting_bonnethead~tech-stack-detector/run-sync": {
      "post": {
        "operationId": "run-sync-lasting_bonnethead-tech-stack-detector",
        "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": [
          "websites"
        ],
        "properties": {
          "websites": {
            "title": "Websites",
            "type": "array",
            "description": "Domains or URLs to analyze, one per line (e.g. example.com, https://shop.example.com/pricing). The given page is analyzed (homepage if you pass a bare domain).",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Detection mode",
            "enum": [
              "http",
              "auto",
              "browser"
            ],
            "type": "string",
            "description": "HTTP (fast, cheapest): reads HTML, headers, cookies, scripts, DNS and the tags configured in Google Tag Manager. Auto: HTTP first, then a headless browser only for pages that are JavaScript-rendered or blocked. Browser: always render with headless Chrome to catch every tag that fires on page load (slower, priced higher).",
            "default": "http"
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "domain",
              "flat",
              "rows"
            ],
            "type": "string",
            "description": "Domain: one rich item per website (technologies with category, version, confidence and evidence + summary fields). Flat: one row per website with only text columns (best for CSV / Google Sheets / Clay). Rows: one row per website × technology.",
            "default": "domain"
          },
          "monitorChanges": {
            "title": "Track changes since last run",
            "type": "boolean",
            "description": "Remembers each website's stack (in a named key-value store) and reports technologies added, removed or upgraded since the previous run. Schedule the Actor to get a tech-change feed.",
            "default": false
          },
          "onlyChanges": {
            "title": "Output only websites that changed",
            "type": "boolean",
            "description": "With change tracking on, skip websites whose stack did not change (first-time checks are also skipped). Every analyzed website is still billed.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store that keeps the last known stack per website. Use different names for different watchlists.",
            "default": "tech-stack-detector-state"
          },
          "inspectGtm": {
            "title": "Read Google Tag Manager containers",
            "type": "boolean",
            "description": "Download the site's public GTM container (the same file every visitor's browser loads) and list the pixels and tags configured in it, without a browser.",
            "default": true
          },
          "includeDns": {
            "title": "DNS signals",
            "type": "boolean",
            "description": "Look up MX, SPF/TXT, NS and reverse DNS to detect email providers, sending tools (SendGrid, Mailchimp...), SaaS tools that verified the domain (Atlassian, Slack, Zoom, OpenAI...), DNS and hosting providers.",
            "default": true
          },
          "fingerprintSets": {
            "title": "Fingerprint sets",
            "type": "array",
            "description": "core = this Actor's own fingerprints (marketing tags, DNS, hosting). community = the open-source webappanalyzer fingerprint data (~7,600 technologies, GPL-3.0).",
            "items": {
              "type": "string",
              "enum": [
                "core",
                "community"
              ],
              "enumTitles": [
                "Core",
                "Community (webappanalyzer)"
              ]
            },
            "default": [
              "core",
              "community"
            ]
          },
          "minConfidence": {
            "title": "Minimum confidence (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Hide detections below this confidence.",
            "default": 50
          },
          "includeEvidence": {
            "title": "Include evidence",
            "type": "boolean",
            "description": "Show what matched (script URL, header, cookie, DNS record, GTM tag...) for every technology.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Websites processed in parallel. Each website is fetched politely (robots.txt respected, at most one request per second per site). In browser mode the concurrency is also capped by memory.",
            "default": 10
          },
          "perSiteTimeoutSecs": {
            "title": "Per-website timeout (seconds)",
            "minimum": 15,
            "maximum": 180,
            "type": "integer",
            "description": "Give up on a website step after this many seconds (the site is then reported with status \"timeout\" and not billed). Leave empty for the default: 30 s in HTTP mode, 60 s in Auto and Browser mode."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Not needed for most websites.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}