{
  "openapi": "3.0.1",
  "info": {
    "title": "Similarweb [$1.49💰] AI Traffic·Rank·Visits·Keywords",
    "description": "Similarweb data plus AI-assistant traffic: what % of a domain's visits come from ChatGPT, Claude & Gemini, and which ones. Plus rank, monthly visits + 3-month trend, bounce rate, traffic sources, top keywords. From $1.49/1k domains (plan discounts to $0.70), empty domains free.",
    "version": "0.0",
    "x-build-id": "bQUisjtAHXBmJrl9k"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~similarweb-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-similarweb-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/memo23~similarweb-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-similarweb-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/memo23~similarweb-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-similarweb-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": {
          "domains": {
            "title": "Website domains",
            "type": "array",
            "description": "List of domains (or URLs) to fetch traffic data for. One kept domain with data = one result row.",
            "items": {
              "type": "string"
            }
          },
          "websites": {
            "title": "Websites (drop-in alias for domains)",
            "type": "array",
            "description": "Drop-in compatibility alias for `domains` (matches `tri_angle` Similarweb scraper inputs). Combined and de-duplicated with `domains`.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Input Apify Dataset ID (pipeline mode)",
            "type": "string",
            "description": "Optional Apify Dataset ID to read domains from directly. Automatically extracts `domain`, `website`, `url`, `websiteUrl`, or `companyWebsite` fields from each item, normalizes, and de-duplicates."
          },
          "maxItems": {
            "title": "Maximum domains per run",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on how many domains are looked up in this run. Each kept domain that returns data is one paid result; domains Similarweb has no data for (or dropped by filters) are not charged. Default 1000. Runs on the free Apify plan are capped at 15 domains.",
            "default": 1000
          },
          "maxDomains": {
            "title": "Maximum domains (alias for maxItems)",
            "minimum": 1,
            "type": "integer",
            "description": "Optional alias for `maxItems`. If both are provided, the lower limit applies."
          },
          "datasetMode": {
            "title": "Dataset mode",
            "enum": [
              "base_data",
              "similar_sites",
              "aitdk",
              "all"
            ],
            "type": "string",
            "description": "base_data = traffic + AI. similar_sites = also competitors (~+$1/1k). aitdk = also WHOIS/RDAP + homepage keyword density (~+$2/1k). all = base_data + similar_sites + aitdk merged per domain. The toggles below still stack.",
            "default": "base_data"
          },
          "marketMapMaxCompetitors": {
            "title": "Max competitors / similar sites per domain",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Optional cap on the number of entries returned in `competitors`, `similarSites`, and `topCompetitors` per domain."
          },
          "includeSimilarSites": {
            "title": "Include similar sites / competitors — billed extra (~+$1/1k)",
            "type": "boolean",
            "description": "If enabled, each kept domain that returns data is also enriched with competitors (similar sites with category rank + affinity). Billed 1 premium-data unit per domain (≈ +$1 per 1,000 on the base plan); only charged when competitors are returned. Skip this if you turn on in-depth below — that already includes competitors.",
            "default": false
          },
          "includeInDepth": {
            "title": "Include in-depth data (demographics + competitors + top countries) — billed extra",
            "type": "boolean",
            "description": "If enabled, each kept domain that returns data is also enriched with: audienceGender (male/female split), audienceAgeDistribution (age brackets), competitors (similar sites with category rank + affinity), and geographyCountries (top 5 countries with traffic share and change) plus geographyCountriesTotal (how many countries the site gets traffic from). Billed 4 premium-data units per in-depth domain (≈ +$4 per 1,000 on the base plan); a domain with competitors but no audience data pays 1 unit instead, and one with neither pays nothing. Audience data is often missing for sites under about 100,000 monthly visits. Includes similar sites, so you do not need includeSimilarSites as well.",
            "default": false
          },
          "enrichEmails": {
            "title": "Enrich with contact emails (experimental, billed per email)",
            "type": "boolean",
            "description": "If enabled, finds a contact email for each kept result from its own website (or by discovering it from the name). Adds contactEmail + contactWebsite columns plus a detailed emailEnrichment object. Billed 5 premium-data units per email found (≈ $5 per 1,000 emails on the base plan, cheaper on higher plans); never charged for misses.",
            "default": false
          },
          "minMonthlyVisits": {
            "title": "Min monthly visits",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep domains with estimated monthly visits at or above this threshold."
          },
          "maxMonthlyVisits": {
            "title": "Max monthly visits",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep domains with estimated monthly visits at or below this threshold."
          },
          "maxGlobalRank": {
            "title": "Max global rank",
            "minimum": 1,
            "type": "integer",
            "description": "Only keep domains ranked at or better than this worldwide rank (e.g. 100000 keeps top 100k sites)."
          },
          "maxCountryRank": {
            "title": "Max country rank",
            "minimum": 1,
            "type": "integer",
            "description": "Only keep domains ranked at or better than this rank in their top country."
          },
          "maxCategoryRank": {
            "title": "Max category rank",
            "minimum": 1,
            "type": "integer",
            "description": "Only keep domains ranked at or better than this rank in their Similarweb category."
          },
          "maxBounceRatePercent": {
            "title": "Max bounce rate (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Only keep domains with bounce rate at or below this percentage (0–100, e.g. 60 for <= 60%)."
          },
          "minPagesPerVisit": {
            "title": "Min pages per visit",
            "minimum": 0,
            "type": "number",
            "description": "Only keep domains with average pages per visit at or above this number (e.g. 2.5)."
          },
          "minTimeOnSiteSeconds": {
            "title": "Min time on site (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep domains with average visit duration at or above this many seconds (e.g. 60)."
          },
          "minTrafficChangePercent": {
            "title": "Min month-over-month traffic change (%)",
            "type": "number",
            "description": "Only keep domains whose latest month-over-month traffic change is at or above this percentage (e.g. 5 for >= +5%, -10 for >= -10%)."
          },
          "maxTrafficChangePercent": {
            "title": "Max month-over-month traffic change (%)",
            "type": "number",
            "description": "Only keep domains whose latest month-over-month traffic change is at or below this percentage (e.g. -5 to find declining sites)."
          },
          "topCountries": {
            "title": "Allowed top countries (ISO-2 codes)",
            "type": "array",
            "description": "Only keep domains where at least one top traffic country matches one of these ISO-2 codes (e.g. `US`, `GB`, `DE`).",
            "items": {
              "type": "string"
            }
          },
          "includeCategories": {
            "title": "Include categories",
            "type": "array",
            "description": "Only keep domains whose Similarweb category matches at least one of these terms (case-insensitive substring, e.g. `finance`, `ecommerce`, `computers_electronics_and_technology`).",
            "items": {
              "type": "string"
            }
          },
          "excludeCategories": {
            "title": "Exclude categories",
            "type": "array",
            "description": "Drop domains whose Similarweb category matches any of these terms (case-insensitive substring).",
            "items": {
              "type": "string"
            }
          },
          "includeTlds": {
            "title": "Include TLDs",
            "type": "array",
            "description": "Only keep domains ending in one of these TLDs (e.g. `.com`, `.io`, `co.uk`). Evaluated pre-fetch to save runtime.",
            "items": {
              "type": "string"
            }
          },
          "excludeTlds": {
            "title": "Exclude TLDs",
            "type": "array",
            "description": "Drop domains ending in any of these TLDs (e.g. `.gov`, `.edu`, `.ru`). Evaluated pre-fetch to save runtime.",
            "items": {
              "type": "string"
            }
          },
          "minOrganicSearchPercent": {
            "title": "Min organic search share (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Only keep domains whose organic search traffic share of total visits is at or above this percentage (0–100)."
          },
          "minPaidSearchPercent": {
            "title": "Min paid search share (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Only keep domains whose paid search traffic share of total visits is at or above this percentage (0–100)."
          },
          "minAiTrafficPercent": {
            "title": "Min AI traffic share (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Only keep domains whose AI-assistant traffic share (`trafficGenAi` / `aiReferralTraffic`) is at or above this percentage (0–100, e.g. 0.5 for >= 0.5%)."
          },
          "includeTechnologies": {
            "title": "Include technologies",
            "type": "array",
            "description": "Only keep domains using at least one matching technology name or category (e.g. `Shopify`, `Google Analytics`, `PayPal`). Technology data is extracted on website-profile lookups (`includeSimilarSites`, `includeInDepth`, or `datasetMode` = `similar_sites` / `all`).",
            "items": {
              "type": "string"
            }
          },
          "excludeTechnologies": {
            "title": "Exclude technologies",
            "type": "array",
            "description": "Drop domains using any matching technology name or category when technology data is present.",
            "items": {
              "type": "string"
            }
          },
          "requireContactEmail": {
            "title": "Require contact email",
            "type": "boolean",
            "description": "Only keep domains where a contact email was found (requires `enrichEmails: true`). Domains without an email are dropped before dataset/add-on billing.",
            "default": false
          },
          "trackChanges": {
            "title": "Track changes across runs",
            "type": "boolean",
            "description": "Persists a lightweight per-domain snapshot (`monthlyVisits`, `globalRank`, `bounceRate`, `seenAt`) in a named Apify KV store and adds `changeType` (`new`, `traffic_up`, `traffic_down`, `unchanged`), `previousMonthlyVisits`, `visitsChangePercent`, `previousGlobalRank`, `rankChange`, and `previousSeenAt` to each kept row.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name (KV store namespace)",
            "type": "string",
            "description": "Optional name for the monitoring Key-Value Store (stored as `similarweb-monitor-<name>`). Use different names to isolate separate watchlists. Defaults to `default`."
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Emit a concise, high-signal subset of fields per row (identity, ranks, visits, engagement, core channels, AI summary, top countries/keywords/competitors, plus any enabled add-on and change-tracking fields).",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields",
            "type": "boolean",
            "description": "Recursively omit keys whose values are `null`, `undefined`, `\"\"`, `[]`, or `{}` from each output row (while preserving `false` and `0`).",
            "default": false
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Residential proxies are recommended, and the default works out of the box.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}