{
  "openapi": "3.0.1",
  "info": {
    "title": "Semrush Domain Overview Scraper",
    "description": "Semrush Domain Overview Scraper returns Semrush website statistics for any domain: Authority Score, visits, global/country/category rank, backlinks, referring domains, organic and paid traffic, top keywords, countries, AI traffic, competitors.",
    "version": "1.0",
    "x-build-id": "pEAbiHUfJvx5LmD6B"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~semrush-domain-overview-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-semrush-domain-overview-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/neuro-scraper~semrush-domain-overview-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-semrush-domain-overview-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/neuro-scraper~semrush-domain-overview-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-semrush-domain-overview-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": "Mode",
            "enum": [
              "domain_overview",
              "top_websites"
            ],
            "type": "string",
            "description": "domain_overview = full statistics for each domain you enter. top_websites = the ranking of the most visited websites for a country and industry (optionally enriched with the full domain overview).",
            "default": "domain_overview"
          },
          "domains": {
            "title": "Domains",
            "type": "array",
            "description": "Domains to analyse, e.g. github.com or https://www.nike.com/ (the protocol, www. and paths are removed). Used in domain_overview mode.",
            "items": {
              "type": "string"
            }
          },
          "includeCompetitors": {
            "title": "Include competitors with their metrics",
            "type": "boolean",
            "description": "Adds the top competitors of each domain with their global / country / category rank, Authority Score, visits, pages per visit and bounce rate (one extra page per domain).",
            "default": true
          },
          "includeKeywords": {
            "title": "Include top organic keywords",
            "type": "boolean",
            "description": "Adds the top organic keywords (keyword, intent, position, search volume, CPC, traffic share).",
            "default": true
          },
          "includeTrafficByCountry": {
            "title": "Include traffic by country",
            "type": "boolean",
            "description": "Adds the top countries with their traffic share and visits.",
            "default": true
          },
          "includeTrafficByDevice": {
            "title": "Include traffic by device",
            "type": "boolean",
            "description": "Adds the desktop / mobile split of every top country.",
            "default": true
          },
          "includeTrafficJourney": {
            "title": "Include traffic journey",
            "type": "boolean",
            "description": "Adds where visitors come from before the site (top sources with share) and where they go after it.",
            "default": true
          },
          "includeAiTraffic": {
            "title": "Include AI traffic",
            "type": "boolean",
            "description": "Adds visits and traffic share from AI platforms (ChatGPT, Claude, Gemini, Perplexity and others).",
            "default": true
          },
          "includeHistory": {
            "title": "Include visits history",
            "type": "boolean",
            "description": "Adds the visits of the last 3 months.",
            "default": true
          },
          "includeAuthority": {
            "title": "Include authority and backlinks",
            "type": "boolean",
            "description": "Adds Authority Score, backlinks, referring domains and their month-over-month change.",
            "default": true
          },
          "includeSiteAudit": {
            "title": "Include on-page SEO audit of the home page",
            "type": "boolean",
            "description": "Also opens the domain's own home page, robots.txt and sitemap and adds title, meta description, H1, headings, word count, links, images, structured data, Open Graph, hreflang, robots.txt and sitemap checks.",
            "default": false
          },
          "includeDomainAge": {
            "title": "Include domain age",
            "type": "boolean",
            "description": "Adds the registration date and age in years of the domain from the public domain registry.",
            "default": true
          },
          "topWebsitesCountry": {
            "title": "Top websites: country",
            "type": "string",
            "description": "Two-letter country code for the top websites ranking (us, gb, de, in ...) or global.",
            "default": "us"
          },
          "topWebsitesIndustry": {
            "title": "Top websites: industry",
            "type": "string",
            "description": "Industry slug for the top websites ranking, e.g. all, online-services, retail, banking, news-and-media, travel-and-tourism.",
            "default": "all"
          },
          "topWebsitesLimit": {
            "title": "Top websites: max websites",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many ranked websites to return per ranking (the ranking holds up to about 100).",
            "default": 100
          },
          "enrichTopWebsites": {
            "title": "Top websites: add the full domain overview",
            "type": "boolean",
            "description": "In top_websites mode, also fetch the full domain overview (authority, backlinks, keywords, countries ...) for each ranked website.",
            "default": false
          },
          "sortBy": {
            "title": "Top websites: sort by",
            "enum": [
              "rank",
              "traffic",
              "mom",
              "yoy",
              "desktop",
              "mobile"
            ],
            "type": "string",
            "description": "Order of the top websites rows.",
            "default": "rank"
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of rows for the whole run.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many domains are processed in parallel.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy is used by default (datacenter worked in every test); switch to RESIDENTIAL if you see blocks.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}