{
  "openapi": "3.0.1",
  "info": {
    "title": "Brand DNA",
    "description": "Extract structured brand identity from any website — colors, fonts, tone, positioning, and reusable marketing templates — using deterministic heuristics with no AI hallucinations.",
    "version": "2.2",
    "x-build-id": "RBSI1IrqX4FPpACzD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solutionssmart~brand-dna/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solutionssmart-brand-dna",
        "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/solutionssmart~brand-dna/runs": {
      "post": {
        "operationId": "runs-sync-solutionssmart-brand-dna",
        "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/solutionssmart~brand-dna/run-sync": {
      "post": {
        "operationId": "run-sync-solutionssmart-brand-dna",
        "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": {
          "startUrl": {
            "title": "Start URL",
            "type": "string",
            "description": "Website to analyze, for example https://www.example.com. Ignored when Start URLs is filled."
          },
          "startUrls": {
            "title": "Start URLs",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Analyze up to 20 websites in one run (one result per website). Overrides Start URL.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "full",
              "fast",
              "core"
            ],
            "type": "string",
            "description": "Full: crawl up to Max pages. Fast: at most 3 pages, no paid language detection or translation. Core: homepage only, quickest and cheapest.",
            "default": "full"
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum pages to crawl per website. 8 pages are included in the base price; see the README for extra-page pricing.",
            "default": 8
          },
          "crawlScope": {
            "title": "Crawl scope",
            "enum": [
              "auto",
              "site",
              "path-prefix",
              "single-page",
              "actor-page"
            ],
            "type": "string",
            "description": "Controls how tightly the crawl stays around the start URL. Auto keeps Apify actor pages focused on the actor path.",
            "default": "auto"
          },
          "output": {
            "title": "Output options",
            "type": "object",
            "description": "Select which outputs are pushed to the dataset.",
            "properties": {
              "brandKit": {
                "title": "Brand kit",
                "type": "boolean",
                "description": "Include the brandKit payload.",
                "default": true
              },
              "templates": {
                "title": "Templates",
                "type": "boolean",
                "description": "Include CTA, social, and ad-copy templates.",
                "default": true
              }
            },
            "default": {
              "brandKit": true,
              "templates": true
            },
            "additionalProperties": false
          },
          "exportFormats": {
            "title": "Export formats",
            "type": "array",
            "description": "Extra files in the key-value store. The HTML report (brand-dna-live.html) is always written.",
            "items": {
              "type": "string",
              "enum": [
                "json",
                "markdown",
                "html",
                "pdf"
              ]
            }
          },
          "outputComparison": {
            "title": "Output comparison",
            "type": "boolean",
            "description": "With 2 to 5 websites, write a side-by-side comparison to comparison.json in the key-value store (no extra dataset item).",
            "default": false
          },
          "outputDiff": {
            "title": "Output historical diff",
            "type": "boolean",
            "description": "Compare each result with the previous run for the same website and settings, and add a delta object with what changed. Needs a second run to show changes.",
            "default": false
          },
          "outputPages": {
            "title": "Output pages",
            "type": "boolean",
            "description": "Add a pages array to each result with per-page title, headings, CTAs and a text preview.",
            "default": false
          },
          "includeContacts": {
            "title": "Include contact details",
            "type": "boolean",
            "description": "Output emails, phone numbers and postal addresses found on the site. Off by default because they can be personal data; when off, only counts are returned.",
            "default": false
          },
          "captureScreenshot": {
            "title": "Capture screenshot",
            "type": "boolean",
            "description": "Save a viewport screenshot of the first page as homepage-screenshot.png in the key-value store.",
            "default": false
          },
          "extractImageColors": {
            "title": "Extract image colors",
            "type": "boolean",
            "description": "Fetch the logo or og:image URL and compute a dominant color for signals.dominantImageColor.",
            "default": false
          },
          "debug": {
            "title": "Debug output",
            "type": "boolean",
            "description": "Add a debug object to each result with scanned URLs and intermediate scores.",
            "default": false
          },
          "includePaths": {
            "title": "Include paths",
            "type": "array",
            "description": "Optional path allowlist. Wildcards are supported, for example /products/*.",
            "items": {
              "type": "string"
            }
          },
          "excludePaths": {
            "title": "Exclude paths",
            "type": "array",
            "description": "Optional path denylist. Wildcards are supported, for example /blog/* or /legal/*.",
            "items": {
              "type": "string"
            }
          },
          "includeBlog": {
            "title": "Include blog",
            "type": "boolean",
            "description": "Prioritize blog pages in the crawl.",
            "default": true
          },
          "sitemapUrl": {
            "title": "Sitemap URL",
            "type": "string",
            "description": "Optional sitemap URL. When set, URLs are taken from the sitemap instead of link discovery."
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Skip URLs disallowed by robots.txt.",
            "default": true
          },
          "timeoutSecs": {
            "title": "Request timeout",
            "minimum": 10,
            "maximum": 300,
            "type": "integer",
            "description": "Timeout per request in seconds.",
            "default": 120
          },
          "language": {
            "title": "Language",
            "enum": [
              "auto",
              "en",
              "de",
              "es",
              "fr",
              "it",
              "pt"
            ],
            "type": "string",
            "description": "Content language for extraction: auto, en, de, es, fr, it, or pt.",
            "default": "auto"
          },
          "useLanguageDetector": {
            "title": "Use language detector",
            "type": "boolean",
            "description": "When Language is Auto and the page has no lang attribute, call the third-party Apify Language Detector Actor. Off by default: it starts a separate paid run. Built-in detection covers en, de, es, fr, it and pt.",
            "default": false
          },
          "useTranslation": {
            "title": "Use translation",
            "type": "boolean",
            "description": "Translate page content to a target language before extraction.",
            "default": false
          },
          "translateToLanguage": {
            "title": "Translate to language",
            "type": "string",
            "description": "Target language code when translation is enabled, for example en or de.",
            "default": "en"
          },
          "translationActorId": {
            "title": "Translation actor ID",
            "type": "string",
            "description": "Apify Actor that translates text, in the form username/actor-name. It runs on your account and is billed separately."
          },
          "translationBatchMode": {
            "title": "Translation batch mode",
            "type": "boolean",
            "description": "When enabled, send all page texts in one batch to the translation actor and fall back to sequential translation if unsupported.",
            "default": true
          },
          "useRenderingFallback": {
            "title": "Use rendering fallback",
            "type": "boolean",
            "description": "Render pages in a headless browser when the HTML is an empty JavaScript app shell (React, Vue, Angular and similar).",
            "default": true
          },
          "renderingTimeoutMs": {
            "title": "JavaScript content wait",
            "minimum": 500,
            "maximum": 10000,
            "type": "integer",
            "description": "How long to wait for the selectors below after a JavaScript-heavy page loads. Page navigation itself may take up to 15 seconds.",
            "default": 1200
          },
          "renderingWaitForSelectors": {
            "title": "Wait for selectors",
            "type": "string",
            "description": "Comma-separated CSS selectors. Rendering continues as soon as any of them appears.",
            "default": "main, h1, button"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy or your own proxies. Datacenter is fastest; switch to Residential if a site blocks the crawler."
          },
          "enableUnblockerFallback": {
            "title": "Escalate blocked requests to Unblocker",
            "type": "boolean",
            "description": "Retry homepage and page requests blocked with 403 or 429 through Apify Unblocker. This can incur separate Unblocker usage charges.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Maximum concurrent requests.",
            "default": 4
          },
          "adaptiveConcurrency": {
            "title": "Adaptive concurrency",
            "type": "boolean",
            "description": "Automatically adjust concurrency based on success rate.",
            "default": true
          },
          "requestDelayMs": {
            "title": "Request delay",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Delay between requests in milliseconds. Set to 0 to disable.",
            "default": 0
          },
          "maxRequestRetries": {
            "title": "Max retries",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum number of retries per request.",
            "default": 3
          },
          "cacheTtlSeconds": {
            "title": "Cache TTL (seconds)",
            "minimum": 0,
            "maximum": 86400,
            "type": "integer",
            "description": "If greater than 0, reuse a persisted cached result for the same URL and settings across runs within this many seconds.",
            "default": 0
          },
          "forceRefresh": {
            "title": "Force refresh",
            "type": "boolean",
            "description": "Skip reading from cache and always perform a fresh crawl.",
            "default": false
          },
          "serp": {
            "title": "Google SERP enrichment",
            "type": "object",
            "description": "Optionally collect Google Search results using Apify Google SERP Proxy. Only Google Search traffic is sent through this proxy.",
            "properties": {
              "enabled": {
                "title": "Enable SERP enrichment",
                "type": "boolean",
                "description": "When enabled, run the configured queries through Apify Google SERP Proxy and emit serpResults dataset items.",
                "default": false
              },
              "queries": {
                "title": "Search queries",
                "type": "array",
                "description": "Up to 20 Google Search queries.",
                "editor": "stringList",
                "minItems": 1,
                "maxItems": 20,
                "items": {
                  "type": "string"
                }
              },
              "country": {
                "title": "Google country",
                "type": "string",
                "description": "Two-letter country code used to select the Google domain, for example us, gb, de, or au.",
                "default": "us",
                "editor": "textfield"
              },
              "maxResultsPerQuery": {
                "title": "Results per query",
                "type": "integer",
                "description": "Maximum number of organic Google results to return for each query.",
                "default": 10,
                "minimum": 1,
                "maximum": 50
              }
            },
            "default": {
              "enabled": false,
              "country": "us",
              "maxResultsPerQuery": 10
            },
            "additionalProperties": false
          },
          "webhook": {
            "title": "Webhook",
            "type": "object",
            "description": "Send started, completed and failed events to your own endpoint.",
            "properties": {
              "url": {
                "title": "Webhook URL",
                "type": "string",
                "description": "Destination URL for webhook events.",
                "editor": "textfield"
              },
              "events": {
                "title": "Events",
                "type": "array",
                "description": "Webhook events to send.",
                "editor": "select",
                "items": {
                  "type": "string",
                  "enum": [
                    "started",
                    "completed",
                    "failed"
                  ]
                }
              },
              "retries": {
                "title": "Retries",
                "type": "integer",
                "description": "Retry attempts on network error or 5xx response.",
                "default": 1,
                "minimum": 0,
                "maximum": 5
              },
              "retryDelayMs": {
                "title": "Retry delay",
                "type": "integer",
                "description": "Delay between retries in milliseconds.",
                "default": 2000,
                "minimum": 250,
                "maximum": 10000,
                "unit": "ms"
              },
              "timeoutMs": {
                "title": "Timeout",
                "type": "integer",
                "description": "Webhook request timeout in milliseconds.",
                "default": 10000,
                "minimum": 1000,
                "maximum": 30000,
                "unit": "ms"
              },
              "secret": {
                "title": "Signing secret",
                "type": "string",
                "description": "Deprecated: stored unencrypted. Use Webhook signing secret.",
                "editor": "hidden"
              },
              "headers": {
                "title": "Headers",
                "type": "object",
                "description": "Deprecated: stored unencrypted. Use Webhook headers.",
                "editor": "hidden"
              }
            },
            "default": {
              "events": [
                "completed",
                "failed"
              ],
              "retries": 1,
              "retryDelayMs": 2000,
              "timeoutMs": 10000
            },
            "additionalProperties": false
          },
          "webhookSecret": {
            "title": "Webhook signing secret",
            "type": "string",
            "description": "Signs each webhook body with HMAC-SHA256 in the x-branddna-signature header. Stored encrypted."
          },
          "webhookHeaders": {
            "title": "Webhook headers",
            "type": "object",
            "description": "Extra HTTP headers for webhook requests, for example an Authorization header. Stored encrypted."
          },
          "useProxy": {
            "title": "Use proxy",
            "type": "boolean",
            "description": "Deprecated. Use Proxy configuration. Used only when Proxy configuration is not set.",
            "default": true
          },
          "proxyGroup": {
            "title": "Proxy group",
            "type": "string",
            "description": "Deprecated. Use Proxy configuration. Used only when Proxy configuration is not set.",
            "default": "DATACENTER"
          },
          "callbackUrl": {
            "title": "Callback URL",
            "type": "string",
            "description": "Deprecated. Use Webhook URL."
          },
          "outputFormat": {
            "title": "Output format",
            "type": "string",
            "description": "Deprecated. Output is always one item per website.",
            "default": "single"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}