{
  "openapi": "3.0.1",
  "info": {
    "title": "[PRO] Similarweb Top Websites: Rankings by Country",
    "description": "Pro-level Similarweb Top Websites scraper: top sites per industry in 66 markets, desktop or mobile, up to the number you set, each with its position and, when available, visits, traffic share, users, bounce rate and visit time; plus climbers, fallers, new entrants and worldwide channel leaders.",
    "version": "1.0",
    "x-build-id": "XPXnBCewQKUzQbHqV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/agentx~similarweb-top-websites/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-agentx-similarweb-top-websites",
        "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/agentx~similarweb-top-websites/runs": {
      "post": {
        "operationId": "runs-sync-agentx-similarweb-top-websites",
        "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/agentx~similarweb-top-websites/run-sync": {
      "post": {
        "operationId": "run-sync-agentx-similarweb-top-websites",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "rankings"
        ],
        "properties": {
          "rankings": {
            "title": "🏆 Rankings",
            "minItems": 1,
            "type": "array",
            "description": "Leaderboards to read. all_traffic ranks websites by total visits. search, social, display, referral, direct, email, gen_ai and affiliates rank them by visits from that traffic channel. top_climbers, top_fallers and new_entrants are Similarweb's lists of the month's top climbers, top fallers and new entrants in the all-traffic ranking. Each ranking returns up to max_items websites as Similarweb lists them.",
            "items": {
              "type": "string",
              "enum": [
                "all_traffic",
                "search",
                "social",
                "display",
                "referral",
                "direct",
                "email",
                "gen_ai",
                "affiliates",
                "top_climbers",
                "top_fallers",
                "new_entrants"
              ],
              "enumTitles": [
                "all_traffic",
                "search",
                "social",
                "display",
                "referral",
                "direct",
                "email",
                "gen_ai",
                "affiliates",
                "top_climbers",
                "top_fallers",
                "new_entrants"
              ]
            }
          },
          "industries": {
            "title": "🏷 Industries",
            "type": "array",
            "description": "Choose broad industries to rank, such as Finance or E-commerce_and_Shopping. Each selected industry is ranked separately. Leave empty, or choose All, for all industries combined.",
            "items": {
              "type": "string",
              "enum": [
                "All",
                "AI_Chatbots_and_Tools",
                "Arts_and_Entertainment",
                "Business_and_Consumer_Services",
                "Community_and_Society",
                "Computers_Electronics_and_Technology",
                "Crypto_and_Blockchain",
                "E-commerce_and_Shopping",
                "Finance",
                "Food_and_Drink",
                "Gambling",
                "Games",
                "Health",
                "Heavy_Industry_and_Engineering",
                "Hobbies_and_Leisure",
                "Home_and_Garden",
                "Jobs_and_Career",
                "Law_and_Government",
                "Lifestyle",
                "News_and_Media",
                "Pets_and_Animals",
                "Reference_Materials",
                "Science_and_Education",
                "Sports",
                "Travel_and_Tourism",
                "Vehicles",
                "Adult"
              ],
              "enumTitles": [
                "All",
                "AI_Chatbots_and_Tools",
                "Arts_and_Entertainment",
                "Business_and_Consumer_Services",
                "Community_and_Society",
                "Computers_Electronics_and_Technology",
                "Crypto_and_Blockchain",
                "E-commerce_and_Shopping",
                "Finance",
                "Food_and_Drink",
                "Gambling",
                "Games",
                "Health",
                "Heavy_Industry_and_Engineering",
                "Hobbies_and_Leisure",
                "Home_and_Garden",
                "Jobs_and_Career",
                "Law_and_Government",
                "Lifestyle",
                "News_and_Media",
                "Pets_and_Animals",
                "Reference_Materials",
                "Science_and_Education",
                "Sports",
                "Travel_and_Tourism",
                "Vehicles",
                "Adult"
              ]
            }
          },
          "country": {
            "title": "🌍 Country",
            "enum": [
              "Argentina",
              "Australia",
              "Austria",
              "Belgium",
              "Brazil",
              "Bulgaria",
              "Canada",
              "Chile",
              "Colombia",
              "Costa Rica",
              "Croatia",
              "Czech Republic",
              "Denmark",
              "Dominican Republic",
              "Ecuador",
              "Egypt",
              "Finland",
              "France",
              "Germany",
              "Greece",
              "Guatemala",
              "Hong Kong",
              "Hungary",
              "India",
              "Indonesia",
              "Iraq",
              "Ireland",
              "Israel",
              "Italy",
              "Japan",
              "Korea, Republic of",
              "Kuwait",
              "Malaysia",
              "Mexico",
              "Morocco",
              "Netherlands",
              "New Zealand",
              "Norway",
              "Pakistan",
              "Panama",
              "Peru",
              "Philippines",
              "Poland",
              "Portugal",
              "Puerto Rico",
              "Qatar",
              "Romania",
              "Russia",
              "Saudi Arabia",
              "Serbia",
              "Singapore",
              "Slovakia",
              "South Africa",
              "Spain",
              "Sweden",
              "Switzerland",
              "Taiwan",
              "Thailand",
              "Turkey",
              "Ukraine",
              "United Arab Emirates",
              "United Kingdom",
              "United States",
              "Uruguay",
              "Venezuela",
              "Vietnam"
            ],
            "type": "string",
            "description": "Full country name, such as United States, United Kingdom or Germany (66 markets). Applies to all_traffic, top_climbers, top_fallers and new_entrants. The traffic-channel rankings are worldwide in every run, and each row's country field shows the market it describes. Leave empty for worldwide."
          },
          "device": {
            "title": "📱 Device",
            "enum": [
              "desktop",
              "mobile"
            ],
            "type": "string",
            "description": "desktop or mobile. Applies to all_traffic, top_climbers, top_fallers and new_entrants; the traffic-channel rankings cover all devices. Leave empty for all traffic."
          },
          "max_items": {
            "title": "📊 Max Items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum websites per ranking record, that is per selected ranking for each industry (default 100). Set any integer of 1 or more; websites keep Similarweb's ranking order."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}