{
  "openapi": "3.0.1",
  "info": {
    "title": "Similarweb Scraper - Website Traffic, Ranks & Similar Sites",
    "description": "Monthly visits, engagement, global, country and category ranks, top countries, traffic sources, AI referrals and top keywords of any domain, plus similar sites, deep dive, comparisons, domain age, contacts, tech stack, SEO audit, top website rankings and change monitor. No login.",
    "version": "1.0",
    "x-build-id": "Uw5DTvkcuPE11tcM5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pomlabs~similarweb-website-traffic-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pomlabs-similarweb-website-traffic-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/pomlabs~similarweb-website-traffic-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pomlabs-similarweb-website-traffic-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/pomlabs~similarweb-website-traffic-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pomlabs-similarweb-website-traffic-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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "base_data",
              "similar_sites",
              "aitdk",
              "all",
              "compare",
              "market_map",
              "topWebsites"
            ],
            "type": "string",
            "description": "Traffic of your domains, a ready package, or the ranking of the most visited websites by country and industry.",
            "default": "base_data"
          },
          "domains": {
            "title": "Domains or links",
            "type": "array",
            "description": "One per line: a domain (apify.com), any page address or a Similarweb website page link.",
            "items": {
              "type": "string"
            }
          },
          "websites": {
            "title": "Websites",
            "type": "array",
            "description": "Same list under another name.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "URLs",
            "type": "array",
            "description": "Same list under another name.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Same list under another name.",
            "items": {
              "type": "string"
            }
          },
          "urlsFromFile": {
            "title": "List from a file",
            "type": "string",
            "description": "Link to a .txt or .csv file, Google Sheet or Drive file with one domain per line, or a pasted list."
          },
          "maxItems": {
            "title": "Maximum domains",
            "minimum": 0,
            "type": "integer",
            "description": "Read at most this many domains of the list (in the top websites mode: sites per ranking). 0 = no limit.",
            "default": 0
          },
          "maxDomains": {
            "title": "Maximum domains (second name)",
            "minimum": 0,
            "type": "integer",
            "description": "Same limit under another name; the lower of the two wins."
          },
          "includeDeepDive": {
            "title": "Deep dive",
            "type": "boolean",
            "description": "Company profile, rank history and neighbours, all country changes, search split, social networks, referring and outgoing sites, display ads, demographics, audience interests, technologies, icon and previews. Charged per domain when delivered.",
            "default": false
          },
          "includeSimilarSites": {
            "title": "Similar sites",
            "type": "boolean",
            "description": "Up to 20 similar websites with similarity score, category, rank and visits, plus topic tags and related mobile apps. Charged per domain when delivered.",
            "default": false
          },
          "marketMap": {
            "title": "Market map",
            "type": "boolean",
            "description": "Also report the closest competitors of each domain as their own rows, and add the comparison row.",
            "default": false
          },
          "marketMapMaxCompetitors": {
            "title": "Competitors per domain in the market map",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many similar sites of each domain become rows (up to 20).",
            "default": 10
          },
          "compareDomains": {
            "title": "Compare the domains",
            "type": "boolean",
            "description": "Adds one free comparison row: ranking, leaders of each metric and channel, shared keywords, and how each domain stands against the first one of your list.",
            "default": false
          },
          "includeWhois": {
            "title": "Domain age and registration",
            "type": "boolean",
            "description": "Creation and expiry dates, age, registrar, name servers and status. One site checks charge per domain, whatever number of checks you pick.",
            "default": false
          },
          "includeContacts": {
            "title": "Contacts from the website",
            "type": "boolean",
            "description": "E-mails, phones and social profiles published on the home and contact pages.",
            "default": false
          },
          "includeSiteTechnologies": {
            "title": "Technologies on the home page",
            "type": "boolean",
            "description": "CMS, ecommerce, analytics, advertising, payment and hosting tools detected on the home page, by category.",
            "default": false
          },
          "includeSeoAudit": {
            "title": "On-page SEO audit",
            "type": "boolean",
            "description": "Title, description, headings, canonical, language, structured data, security header, keyword density of 1 to 5 word phrases, issues and a score.",
            "default": false
          },
          "rawOutput": {
            "title": "Include raw source data",
            "type": "boolean",
            "description": "Adds a raw field with the untouched traffic record of each domain.",
            "default": false
          },
          "includeHistory": {
            "title": "Include histories",
            "type": "boolean",
            "description": "Monthly visit and rank histories. Turn off for smaller rows.",
            "default": true
          },
          "excludeEmptyFields": {
            "title": "Drop empty fields",
            "type": "boolean",
            "description": "Leave fields with no value out of each row.",
            "default": false
          },
          "compact": {
            "title": "Compact rows",
            "type": "boolean",
            "description": "Leave out long fields such as histories, descriptions, images and estimates.",
            "default": false
          },
          "outputFields": {
            "title": "Only these fields",
            "type": "array",
            "description": "Keep only these fields in each row (domain, type and status are always kept).",
            "items": {
              "type": "string"
            }
          },
          "rankingCountries": {
            "title": "Top websites: countries",
            "type": "array",
            "description": "Mode Top websites: country names or two letter codes, or worldwide.",
            "items": {
              "type": "string"
            }
          },
          "rankingCategories": {
            "title": "Top websites: industries",
            "type": "array",
            "description": "Mode Top websites: industry or industry/sub-industry as in the website address, for example computers-electronics-and-technology, or all.",
            "items": {
              "type": "string"
            }
          },
          "maxTopSites": {
            "title": "Sites per ranking",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Up to 50 sites per ranking. The public ranking lists 5 sites when a country is combined with an industry.",
            "default": 50
          },
          "enrichTopSites": {
            "title": "Add traffic data to ranked sites",
            "type": "boolean",
            "description": "Reads the traffic record of every ranked site (one domain charge each).",
            "default": false
          },
          "topCountries": {
            "title": "Main audience country is one of",
            "type": "array",
            "description": "Two letter codes or names. With a minimum share below, the shares of the listed countries are added up.",
            "items": {
              "type": "string"
            }
          },
          "minCountrySharePercent": {
            "title": "Minimum share of those countries (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Minimum share of visits coming from the countries above."
          },
          "minVisits": {
            "title": "Minimum monthly visits",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains with at least this many visits in the latest month."
          },
          "maxVisits": {
            "title": "Maximum monthly visits",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains with at most this many visits."
          },
          "minGlobalRank": {
            "title": "Global rank from",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains ranked at this position or lower in popularity."
          },
          "maxGlobalRank": {
            "title": "Global rank up to",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains ranked at this position or better."
          },
          "maxCountryRank": {
            "title": "Country rank up to",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains ranked at this position or better in their main country."
          },
          "maxCategoryRank": {
            "title": "Category rank up to",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains ranked at this position or better in their category."
          },
          "minBounceRatePercent": {
            "title": "Minimum bounce rate (%)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains with at least this bounce rate."
          },
          "maxBounceRatePercent": {
            "title": "Maximum bounce rate (%)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains with at most this bounce rate."
          },
          "minVisitDurationSeconds": {
            "title": "Minimum visit duration (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains whose average visit lasts at least this long."
          },
          "minDirectPercent": {
            "title": "Minimum direct traffic (%)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains with at least this share of direct visits."
          },
          "minOrganicSearchPercent": {
            "title": "Minimum organic search (%)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains with at least this share of organic search."
          },
          "minPaidSearchPercent": {
            "title": "Minimum paid search (%)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains with at least this share of paid search."
          },
          "minReferralPercent": {
            "title": "Minimum referral traffic (%)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains with at least this share of referrals."
          },
          "minSocialPercent": {
            "title": "Minimum social traffic (%)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains with at least this share of organic social."
          },
          "minDisplayAdsPercent": {
            "title": "Minimum display ads (%)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains with at least this share of display advertising."
          },
          "minAiPercent": {
            "title": "Minimum AI assistant traffic (%)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep domains with at least this share of visits from AI assistants."
          },
          "minVisitsChangePercent": {
            "title": "Minimum visit change (%)",
            "type": "integer",
            "description": "Keep domains whose visits changed at least this much against the month before (may be negative)."
          },
          "maxVisitsChangePercent": {
            "title": "Maximum visit change (%)",
            "type": "integer",
            "description": "Keep domains whose visits changed at most this much (may be negative)."
          },
          "minPagesPerVisit": {
            "title": "Minimum pages per visit",
            "type": "string",
            "description": "Keep domains with at least this many pages per visit, for example 2.5."
          },
          "topTrafficChannels": {
            "title": "Largest traffic source is one of",
            "type": "array",
            "description": "direct, organicSearch, paidSearch, referrals, organicSocial, paidSocial, mail, displayAds, genAi or affiliate.",
            "items": {
              "type": "string"
            }
          },
          "includeCategories": {
            "title": "Only these categories",
            "type": "array",
            "description": "Words of the category, for example finance or ecommerce.",
            "items": {
              "type": "string"
            }
          },
          "excludeCategories": {
            "title": "Drop these categories",
            "type": "array",
            "description": "Words of the category to leave out.",
            "items": {
              "type": "string"
            }
          },
          "includeTlds": {
            "title": "Only these domain endings",
            "type": "array",
            "description": "For example com, io, co.uk.",
            "items": {
              "type": "string"
            }
          },
          "excludeTlds": {
            "title": "Drop these domain endings",
            "type": "array",
            "description": "Domain endings to leave out.",
            "items": {
              "type": "string"
            }
          },
          "includeTechnologies": {
            "title": "Uses any of these technologies",
            "type": "array",
            "description": "For example shopify, wordpress, stripe. Turns the technology check on.",
            "items": {
              "type": "string"
            }
          },
          "excludeTechnologies": {
            "title": "Uses none of these technologies",
            "type": "array",
            "description": "Domains using any of these are dropped.",
            "items": {
              "type": "string"
            }
          },
          "minDomainAgeYears": {
            "title": "Minimum domain age (years)",
            "minimum": 0,
            "type": "integer",
            "description": "Turns the registration check on."
          },
          "maxDomainAgeYears": {
            "title": "Maximum domain age (years)",
            "minimum": 0,
            "type": "integer",
            "description": "Turns the registration check on."
          },
          "requireContact": {
            "title": "Must publish an e-mail or phone",
            "type": "boolean",
            "description": "Keep only domains with a contact on the website.",
            "default": false
          },
          "requireContactEmail": {
            "title": "Must publish an e-mail",
            "type": "boolean",
            "description": "Keep only domains with an e-mail on the website.",
            "default": false
          },
          "requireContactPhone": {
            "title": "Must publish a phone",
            "type": "boolean",
            "description": "Keep only domains with a phone on the website.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Give your recurring check a name: each row then says if the domain is new, changed or unchanged since the last run."
          },
          "trackChanges": {
            "title": "Track changes",
            "type": "boolean",
            "description": "Same as giving a monitor name: compare with your previous run.",
            "default": false
          },
          "onlyChanged": {
            "title": "Only what changed",
            "type": "boolean",
            "description": "Deliver (and charge) only new or changed rows.",
            "default": false
          },
          "cacheMaxAgeDays": {
            "title": "Reuse results up to (days)",
            "minimum": 0,
            "maximum": 90,
            "type": "integer",
            "description": "Reuse a result you already received if it is not older than this. 0 = always read again.",
            "default": 0
          },
          "concurrency": {
            "title": "Domains read at once",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Between 1 and 8.",
            "default": 6
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}