{
  "openapi": "3.0.1",
  "info": {
    "title": "Similarweb Scraper API — Website Traffic Checker",
    "description": "Website traffic checker with Similarweb data for any list of sites: 3 months of visits, global, country and category rank, engagement, every traffic source, top countries, keywords with volume and CPC, AI traffic from ChatGPT and Gemini, competitors, audience, company. Pay only for sites with data.",
    "version": "0.1",
    "x-build-id": "UFX2V3vTh3oUY2ZaE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/anuarbakty~similarweb-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-anuarbakty-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/anuarbakty~similarweb-scraper/runs": {
      "post": {
        "operationId": "runs-sync-anuarbakty-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/anuarbakty~similarweb-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-anuarbakty-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": "Websites",
            "type": "array",
            "description": "Domains or URLs, one per line: mayoclinic.org, https://www.zocdoc.com/ or a Similarweb link such as https://www.similarweb.com/website/kp.org/. Repeats are read once. Leave it empty to read only Top Websites lists.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum websites",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many website rows. 0 reads the whole list.",
            "default": 0
          },
          "metricsOnly": {
            "title": "Traffic metrics only (faster, cheaper)",
            "type": "boolean",
            "description": "On (default): each site gets visits of three months, ranks, engagement, every traffic channel, top countries, keywords with search volume and AI traffic, charged as website metrics. Off: the full profile adds similar sites, referring sites, social, ads, audience, technologies and company, charged as a website profile. Choosing one of those in Data blocks reads the full profile.",
            "default": true
          },
          "topWebsitesCategories": {
            "title": "Top Websites categories",
            "type": "array",
            "description": "Similarweb's Top Websites lists to read: up to 50 most visited sites of a category, one row per site with its place, rank change, category and engagement. Top level or subcategory: health, health/medicine, medicine, e-commerce-and-shopping. Combined with the countries below; empty with a country set: all categories.",
            "items": {
              "type": "string"
            }
          },
          "topWebsitesCountries": {
            "title": "Top Websites countries",
            "type": "array",
            "description": "Countries of the Top Websites lists, as two-letter codes (US, GB, DE) or worldwide. Every country is combined with every category above; empty with a category set: worldwide.",
            "items": {
              "type": "string"
            }
          },
          "topWebsitesProfiles": {
            "title": "Website row for every listed site",
            "type": "boolean",
            "description": "On: after the lists, every listed site also gets its website row: traffic metrics, or the full profile when Traffic metrics only is off, charged as such. Off: only the list rows.",
            "default": false
          },
          "compareToFirst": {
            "title": "Compare with the first site",
            "type": "boolean",
            "description": "On: the first site of the list is the benchmark, and every other row gets a comparison block (visits ratio and difference, rank, engagement, shared countries, and with the full profile shared similar sites). Off: rows have no comparison.",
            "default": false
          },
          "includeWhois": {
            "title": "WHOIS",
            "type": "boolean",
            "description": "On: each site also gets its registrar, creation and expiry dates, status and name servers from the registry's public RDAP service, charged as a separate WHOIS event. Off: no WHOIS.",
            "default": false
          },
          "includeContacts": {
            "title": "Contacts from the homepage",
            "type": "boolean",
            "description": "On: the site's own homepage is read for its title, description, emails, phone links and social profiles (Facebook, Instagram, LinkedIn, X, YouTube, TikTok, Pinterest), charged as a homepage event. Off: the homepage is not read.",
            "default": false
          },
          "includeKeywordDensity": {
            "title": "Keyword density of the homepage",
            "type": "boolean",
            "description": "On: the top 10 phrases of 1, 2 and 3 words on the site's homepage with counts and density, charged as a homepage event (one per site, also when contacts are on). Off: no keyword density.",
            "default": false
          },
          "minMonthlyVisits": {
            "title": "Minimum monthly visits",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only sites with at least this many visits a month. Sites that do not pass are not saved and not charged."
          },
          "maxMonthlyVisits": {
            "title": "Maximum monthly visits",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only sites with at most this many visits a month, for example to find small competitors."
          },
          "maxGlobalRank": {
            "title": "Best global rank to keep",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only sites ranked this high or higher worldwide (rank 1 is the most visited site). Sites without a rank do not pass."
          },
          "countries": {
            "title": "Top country",
            "type": "array",
            "description": "Keep only sites whose biggest audience is in one of these countries, as two-letter codes: US, GB, DE.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Category",
            "type": "array",
            "description": "Keep only sites in these Similarweb categories. A part of the category is enough: health, health/medicine, e_commerce_and_shopping.",
            "items": {
              "type": "string"
            }
          },
          "minVisitsChange3MonthsPercent": {
            "title": "Minimum visits change in 3 months, %",
            "minimum": -100,
            "type": "integer",
            "description": "Keep only sites whose visits changed at least this much from the first to the last of the three months, for example 10 for growing sites or -10 to drop sites that fell harder. Sites without three months of visits do not pass."
          },
          "monitorMode": {
            "title": "Only sites that changed since the last run",
            "type": "boolean",
            "description": "On: the run remembers each site's month, visits and rank under the memory name below and saves only sites that are new or changed since the last run with that memory; unchanged sites are not charged. Run it monthly to see when Similarweb publishes a new month. Off: every site is saved.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Memory name",
            "type": "string",
            "description": "Name of the memory of monitor mode, a key-value store in your account. Use one name per list you watch.",
            "default": "similarweb-monitor"
          },
          "monitorVisitsChangePercent": {
            "title": "Visits change that counts, %",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Monitor mode: a site counts as changed when its visits moved at least this much since the last saved state; a new month or a new global rank always counts. 0 counts any move.",
            "default": 0
          },
          "cacheTtlHours": {
            "title": "Reuse reads of the last hours",
            "minimum": 0,
            "maximum": 744,
            "type": "integer",
            "description": "A site read in your account within this many hours comes from the cache (similarweb-scraper-cache store) in a second, at the same price. Similarweb publishes new numbers once a month. 0 turns the cache off.",
            "default": 72
          },
          "forceFresh": {
            "title": "Always read fresh",
            "type": "boolean",
            "description": "On: every site is read from Similarweb again, the cache is only written. Off: recent reads come from the cache.",
            "default": false
          },
          "compact": {
            "title": "Compact rows",
            "type": "boolean",
            "description": "On: one flat line per site with the main numbers and simple lists (for spreadsheets and AI agents). Off: every block of the site's page.",
            "default": false
          },
          "blocks": {
            "title": "Data blocks",
            "type": "array",
            "description": "Which parts of each site's row to return; leave empty for all of them. The domain, month, category and the extras turned on above always come. competitors, referrals, social, ads, technologies, audience and company come with the full profile: choosing one of them reads the full profile, at its price.",
            "items": {
              "type": "string",
              "enum": [
                "ranks",
                "traffic",
                "channels",
                "countries",
                "keywords",
                "ai",
                "competitors",
                "referrals",
                "social",
                "ads",
                "technologies",
                "audience",
                "company",
                "images"
              ],
              "enumTitles": [
                "Ranks (global, country, category, history)",
                "Traffic (visits, 3 months, engagement)",
                "Traffic channels",
                "Countries",
                "Search and keywords",
                "AI traffic (chatbots, visits, prompts)",
                "Similar sites and competitors",
                "Referring and outgoing sites",
                "Social networks",
                "Ads",
                "Technologies",
                "Audience (age, gender, interests)",
                "Company (name, size, revenue)",
                "Icon and screenshots"
              ]
            },
            "default": []
          },
          "includeRawData": {
            "title": "Raw data",
            "type": "boolean",
            "description": "On: each row also carries Similarweb's page data as it came, in rawData, and the sites are read fresh rather than from the cache. Off: only the parsed fields.",
            "default": false
          },
          "includeErrorRows": {
            "title": "Rows for sites without data",
            "type": "boolean",
            "description": "On: a free row says why a site gave nothing (not tracked by Similarweb, failed, not read in time, not a domain). Off: such sites are only in the run summary.",
            "default": true
          },
          "label": {
            "title": "Your label",
            "type": "string",
            "description": "Any text, copied to every row, for example a client or a project name."
          },
          "fastMode": {
            "title": "Fast mode",
            "type": "boolean",
            "description": "On: the run answers within about 30 seconds, for 1-5 sites from an AI agent or an automation; sites not read in time get a free time_limit row. Off: the run takes as long as the list needs.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Sessions at once",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Similarweb sessions open at once. Each passes the bot check once and then reads site after site; Similarweb starts asking new sessions for a captcha when too many open in a few minutes, so a few are faster than many.",
            "default": 3
          },
          "failIfAllInputsFail": {
            "title": "Mark the run failed when no site could be read",
            "type": "boolean",
            "description": "On: when no website gives a row (all failed, not read in time or not domains), the run ends with the status Failed, so an automation can react. Off: such a run ends as Succeeded with free rows that say why.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Similarweb answers datacenter addresses with 403, so the run uses Apify's residential proxy (US unless you pick a country), also when another group is chosen here. Your own proxy URLs are used as given. Proxy traffic is included in the price.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}