{
  "openapi": "3.0.1",
  "info": {
    "title": "Semrush All-in-One Scraper — Traffic, Authority, Backlinks",
    "description": "All-in-one Semrush & Moz scraper — no login required. Domain authority, traffic analytics, backlinks, AI traffic (ChatGPT/Gemini/Claude), competitors, top 100 trending websites. 80+ fields per domain, 10\n  parallel workers, unique IP per request. Two modes: Domain Analysis & Top Websites Ranking.",
    "version": "0.1",
    "x-build-id": "hWplJUlVLRTSbOAnv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pro100chok~semrush-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pro100chok-semrush-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/pro100chok~semrush-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pro100chok-semrush-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/pro100chok~semrush-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pro100chok-semrush-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "domain",
              "top_websites"
            ],
            "type": "string",
            "description": "Choose scraping mode.",
            "default": "domain"
          },
          "urls": {
            "title": "Domains",
            "maxItems": 100,
            "type": "array",
            "description": "Domains to analyze (e.g. amazon.com). Each domain triggers a single batched JSON-RPC call covering organic, paid, backlinks, AI search, competitors. Up to 100 per run, 10 in parallel — every request picks a random authenticated cookie set from accounts.db.",
            "items": {
              "type": "string"
            }
          },
          "database": {
            "title": "Database (country)",
            "enum": [
              "worldwide",
              "us",
              "uk",
              "ca",
              "au",
              "ie",
              "nz",
              "za",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "be",
              "ch",
              "at",
              "pt",
              "gr",
              "se",
              "no",
              "dk",
              "fi",
              "is",
              "lu",
              "cz",
              "sk",
              "pl",
              "hu",
              "ro",
              "bg",
              "hr",
              "si",
              "rs",
              "lt",
              "lv",
              "ee",
              "ua",
              "by",
              "ru",
              "kz",
              "am",
              "ge",
              "az",
              "tr",
              "il",
              "ae",
              "sa",
              "eg",
              "jo",
              "lb",
              "kw",
              "qa",
              "bh",
              "om",
              "iq",
              "in",
              "jp",
              "cn",
              "hk",
              "tw",
              "kr",
              "sg",
              "my",
              "ph",
              "id",
              "th",
              "vn",
              "bd",
              "pk",
              "lk",
              "np",
              "mm",
              "mx",
              "br",
              "ar",
              "cl",
              "co",
              "pe",
              "ec",
              "uy",
              "py",
              "bo",
              "sv",
              "hn",
              "ni",
              "gt",
              "pa",
              "cr",
              "do",
              "jm",
              "tt",
              "cu",
              "pr",
              "ng",
              "ke",
              "gh",
              "tz",
              "ug",
              "dz",
              "ma",
              "tn"
            ],
            "type": "string",
            "description": "Semrush regional database — controls which country's organic/adwords data is returned. Worldwide = aggregated global view (uses US for required country-specific calls but global trends are primary).",
            "default": "worldwide"
          },
          "include_moz": {
            "title": "Include Moz Data",
            "type": "boolean",
            "description": "Adds Moz Domain Authority, Spam Score, top pages, top linking domains, ranking distribution, etc. Goes through Residential proxy (Moz is Cloudflare-protected). Off by default — enable if you specifically need Moz metrics; adds 5–10 s and Residential traffic per domain.",
            "default": false
          },
          "country_top_websites": {
            "title": "Country",
            "enum": [
              "global",
              "us",
              "gb",
              "de",
              "fr",
              "es",
              "it",
              "br",
              "ca",
              "au",
              "in",
              "jp",
              "ru",
              "cn",
              "kr",
              "nl",
              "pl",
              "se",
              "no",
              "dk",
              "fi",
              "be",
              "at",
              "ch",
              "pt",
              "ie",
              "nz",
              "za",
              "mx",
              "ar",
              "co",
              "cl",
              "pe",
              "il",
              "ae",
              "sa",
              "tr",
              "eg",
              "ng",
              "ke",
              "ph",
              "id",
              "my",
              "sg",
              "th",
              "vn",
              "tw",
              "hk",
              "ua",
              "cz",
              "ro",
              "hu",
              "bg",
              "hr",
              "sk",
              "si",
              "rs",
              "lt",
              "lv",
              "ee",
              "bd",
              "pk",
              "iq",
              "dz",
              "ma",
              "tn",
              "gh",
              "tz",
              "ug",
              "mm",
              "kz",
              "by",
              "ge",
              "az",
              "am",
              "jo",
              "lb",
              "kw",
              "qa",
              "bh",
              "om",
              "do",
              "ec",
              "gt",
              "pa",
              "cr",
              "uy",
              "py",
              "bo",
              "sv",
              "hn",
              "ni",
              "jm",
              "tt",
              "cu",
              "pr"
            ],
            "type": "string",
            "description": "Filter top websites by country. Global = worldwide ranking.",
            "default": "global"
          },
          "industry_top_websites": {
            "title": "Industry",
            "enum": [
              "all",
              "accounting-and-auditing",
              "adult",
              "advertising-and-marketing",
              "aerospace-and-defense",
              "agriculture",
              "airlines",
              "apparel-and-fashion",
              "architecture",
              "automotive",
              "banking",
              "beauty-and-cosmetics",
              "biotech",
              "computer-and-video-games",
              "computer-hardware",
              "computer-software-and-development",
              "computers-and-electronics",
              "construction-and-maintenance",
              "consulting",
              "consumer-electronics",
              "design",
              "distance-learning",
              "e-commerce-and-retail",
              "ecology-and-environment",
              "education",
              "entertainment",
              "events-services",
              "finance",
              "food-and-beverages",
              "furniture",
              "gambling",
              "government",
              "graphic-design",
              "healthcare",
              "hospitality",
              "human-resources",
              "import-and-export",
              "information-technology",
              "insurance",
              "investment",
              "jewelry-and-luxury-products",
              "legal",
              "machinery",
              "manufacturing",
              "market-research",
              "mass-media",
              "mental-health",
              "metals-and-mining",
              "music",
              "nanotechnology",
              "newspapers",
              "nonprofit-organizations",
              "oil-and-gas",
              "online-services",
              "pharmaceuticals",
              "photography",
              "printing",
              "public-relations",
              "public-safety",
              "publishing",
              "real-estate",
              "recruitment-and-staffing",
              "religion-and-belief",
              "renewable-energy",
              "restaurants",
              "retail",
              "science",
              "security-products-and-services",
              "social-and-charitable-organizations",
              "sporting-goods",
              "sports",
              "telecom",
              "training-and-certification",
              "transportation-and-logistics",
              "travel-and-tourism",
              "tv-and-movies",
              "veterinary",
              "visual-art",
              "wellness",
              "wine-and-spirits"
            ],
            "type": "string",
            "description": "Filter top websites by industry.",
            "default": "all"
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many domains to process in parallel. Default 5 — matches the number of free Datacenter proxy slots Apify gives to free-tier users. Increase if you have a paid plan.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}