{
  "openapi": "3.0.1",
  "info": {
    "title": "Semrush Scraper - Website Traffic, Authority & Competitors",
    "description": "Traffic, Authority Score, ranks, countries, AI traffic, backlinks and competitors of any domain; keyword research (volume, difficulty, CPC, intent, SERP); top website rankings, competitor landscape, change monitor, Moz DA, SEO audit and AI insights. No login.",
    "version": "1.0",
    "x-build-id": "nE0yZ5P0dVWYfywx2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pomlabs~semrush-domain-overview-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pomlabs-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/pomlabs~semrush-domain-overview-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pomlabs-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/pomlabs~semrush-domain-overview-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pomlabs-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": "What to get",
            "enum": [
              "domainOverview",
              "keywordOverview",
              "backlinks",
              "topWebsites"
            ],
            "type": "string",
            "description": "Overview of your domains, research of your keywords, the backlink profile of your domains, or the ranking of the most visited websites by country and industry.",
            "default": "domainOverview"
          },
          "domains": {
            "title": "Domains or links",
            "type": "array",
            "description": "One per line: a domain (apify.com), any page address or a Semrush website page link.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Same list under another name: website or Semrush overview links.",
            "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."
          },
          "keywords": {
            "title": "Keywords (keyword research)",
            "type": "array",
            "description": "Mode Keyword research: one keyword or phrase per line. Each keyword is one result.",
            "items": {
              "type": "string"
            }
          },
          "database": {
            "title": "Keyword country database",
            "type": "string",
            "description": "Mode Keyword research: two letter database such as us, uk, ca, au, de, fr, es, it, br, in, mx, jp. Volumes of every other database come in volumeByCountry.",
            "default": "us"
          },
          "useRootDomain": {
            "title": "Fall back to the root domain",
            "type": "boolean",
            "description": "When a subdomain has no data, read its root domain and mark the row (usedRootDomain).",
            "default": true
          },
          "includeCompetitorDetails": {
            "title": "Competitor details",
            "type": "boolean",
            "description": "Adds up to 7 competitors with traffic, ranks, Authority Score, visit duration and bounce rate. Charged once per domain when delivered.",
            "default": false
          },
          "competitorLandscape": {
            "title": "Competitor landscape",
            "type": "boolean",
            "description": "Also delivers a full overview row for each competitor of your domain (each one charged as a domain).",
            "default": false
          },
          "maxLandscapeCompetitors": {
            "title": "Competitors per landscape",
            "minimum": 1,
            "maximum": 7,
            "type": "integer",
            "description": "How many competitors become full rows.",
            "default": 7
          },
          "compareDomains": {
            "title": "Side by side comparison",
            "type": "boolean",
            "description": "Adds one free row ranking the domains of the run per metric, with the leaders and shared keywords.",
            "default": false
          },
          "includeMozMetrics": {
            "title": "Moz metrics",
            "type": "boolean",
            "description": "Adds Domain Authority, Spam Score, linking root domains, ranking keywords, top pages and top linking domains. Charged only when delivered.",
            "default": false
          },
          "includeSeoAudit": {
            "title": "On-page SEO audit",
            "type": "boolean",
            "description": "Reads the home page, robots.txt and sitemap of the domain: title, meta, headings, links, images without alt, structured data and a score. Charged only when delivered.",
            "default": false
          },
          "includeAiInsights": {
            "title": "AI competitive insights",
            "type": "boolean",
            "description": "An AI reading of the numbers: summary, strengths, weaknesses, opportunities and actions. Charged only when delivered.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Remembers the last values under this name and adds monitorStatus and changes on the next runs."
          },
          "onlyChanged": {
            "title": "Only new or changed",
            "type": "boolean",
            "description": "With the monitor, deliver (and charge) only domains or ranking positions that are new or changed.",
            "default": false
          },
          "includeHistory": {
            "title": "Include history",
            "type": "boolean",
            "description": "Monthly history of visits, devices, search traffic, backlinks and referring domains.",
            "default": true
          },
          "excludeEmptyFields": {
            "title": "Drop empty fields",
            "type": "boolean",
            "description": "Leaves out null and empty values.",
            "default": false
          },
          "topCountry": {
            "title": "Ranking country",
            "type": "string",
            "description": "For the top websites ranking: 'global' or a 2-letter code (us, de, br). Several separated by commas."
          },
          "topIndustry": {
            "title": "Ranking industry",
            "type": "string",
            "description": "'all' or an industry such as finance, banking, automotive, computer-software-and-development. Several separated by commas."
          },
          "maxTopSites": {
            "title": "Sites per ranking",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Up to 100 per country and industry.",
            "default": 100
          },
          "minVisits": {
            "title": "Minimum monthly visits",
            "minimum": 0,
            "type": "integer",
            "description": "Ranking only: skip sites below this number."
          },
          "maxItems": {
            "title": "Maximum domains",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many input lines; 0 = all."
          },
          "concurrency": {
            "title": "Parallel domains",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many domains are read at the same time.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}