{
  "openapi": "3.0.1",
  "info": {
    "title": "🚀 Ahrefs Scraper · 1,666 Free Results/Month",
    "description": "Ahrefs Scraper gets you Ahrefs SEO data ⚡ fast, 🎯 100% accurate and 🔍 ridiculously detailed — Domain Rating, backlinks, traffic, keywords & AI visibility for any site. 💰 $3 per 1,000 results, no start fee. Scrape your first 1,666 results free every month 🚀",
    "version": "0.0",
    "x-build-id": "r99HHLEPKlmNpQRHZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/omkar-cloud~ahrefs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-omkar-cloud-ahrefs-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/omkar-cloud~ahrefs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-omkar-cloud-ahrefs-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/omkar-cloud~ahrefs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-omkar-cloud-ahrefs-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": "Domains",
            "type": "array",
            "description": "Domains (tesla.com), page links (https://www.tesla.com/model3) or ahrefs.com website links (https://ahrefs.com/websites/tesla.com). Rows carry an `input` field with what you entered.",
            "items": {
              "type": "string"
            }
          },
          "domainReports": {
            "title": "Website reports",
            "type": "array",
            "description": "Reports to scrape for every domain — each is one row:<br>• <b>Website Overview</b>: monthly traffic since 2015, worldwide / country / category rank, top countries, keywords, competitors, DR (the 190,000+ sites in Ahrefs' ranking; others are skipped free)<br>• <b>Domain Rating</b>: DR, backlinks, referring domains, dofollow share<br>• <b>Backlinks</b>: the same totals plus the top 20 backlinks with anchors<br>• <b>Organic Traffic</b>: monthly traffic and value, 6-month history, top pages, countries and keywords<br>• <b>Competitors</b>: sites competing for the same keywords<br>• <b>Broken Links</b>: broken backlinks and broken outgoing links<br>• <b>Sitemap</b>: up to 1,000 crawled URLs",
            "items": {
              "type": "string",
              "enum": [
                "overview",
                "authority",
                "backlinks",
                "traffic",
                "competitors",
                "broken_links",
                "sitemap"
              ],
              "enumTitles": [
                "Website Overview",
                "Domain Rating",
                "Backlinks",
                "Organic Traffic",
                "Competitors",
                "Broken Links",
                "Sitemap"
              ]
            },
            "default": [
              "overview",
              "backlinks",
              "traffic"
            ]
          },
          "mode": {
            "title": "Scope",
            "enum": [
              "subdomains",
              "exact",
              "prefix",
              "domain"
            ],
            "type": "string",
            "description": "Which part of each domain the Backlinks, Organic Traffic and Broken Links reports measure.",
            "default": "subdomains"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keywords or phrases to research.",
            "items": {
              "type": "string"
            }
          },
          "keywordReports": {
            "title": "Keyword reports",
            "type": "array",
            "description": "Reports to scrape for every keyword — each is one row:<br>• <b>Keyword Difficulty</b>: KD, referring domains needed to rank, and the Google top 10 with DR, UR, backlinks and traffic per result<br>• <b>Keyword Ideas</b>: the top 20 keyword ideas and 20 question ideas with difficulty and volume tier, plus the totals<br>• <b>Keyword Rank</b>: where the domain below ranks for the keyword",
            "items": {
              "type": "string",
              "enum": [
                "keyword_difficulty",
                "keyword_ideas",
                "keyword_rank"
              ],
              "enumTitles": [
                "Keyword Difficulty & Google Top 10",
                "Keyword Ideas",
                "Keyword Rank"
              ]
            },
            "default": [
              "keyword_difficulty",
              "keyword_ideas"
            ]
          },
          "searchEngine": {
            "title": "Search engine for keyword ideas",
            "enum": [
              "google",
              "bing",
              "yahoo",
              "yandex",
              "baidu",
              "naver",
              "seznam",
              "daum",
              "yep",
              "youtube",
              "amazon",
              "google-images",
              "google-news",
              "google-videos",
              "google-ai-mode",
              "chatgpt",
              "gemini",
              "perplexity",
              "copilot",
              "grok",
              "claude"
            ],
            "type": "string",
            "description": "Where the keyword ideas come from.",
            "default": "google"
          },
          "includeQuestions": {
            "title": "Include question ideas",
            "type": "boolean",
            "description": "Add question-form keyword ideas (\"what is raspberry pi\") to every Keyword Ideas row.",
            "default": true
          },
          "rankDomain": {
            "title": "Domain to check rankings for",
            "type": "string",
            "description": "Needed for the Keyword Rank report: the domain or page whose Google position to find (raspberrypi.com)."
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Brand names to look up in AI answers (tesla, notion).",
            "items": {
              "type": "string"
            }
          },
          "brandReports": {
            "title": "AI reports",
            "type": "array",
            "description": "Reports to scrape for every brand — each is one row:<br>• <b>AI Visibility</b>: citations per AI model with a monthly trend, top cited domains and pages, top topics<br>• <b>AI Overviews</b>: mentions in Google AI Overviews, new this cycle, topics and cited pages<br>• <b>AI Mode</b>: the same for Google AI Mode",
            "items": {
              "type": "string",
              "enum": [
                "ai_visibility",
                "ai_overviews",
                "ai_mode"
              ],
              "enumTitles": [
                "AI Visibility",
                "AI Overviews Mentions",
                "AI Mode Mentions"
              ]
            },
            "default": [
              "ai_visibility"
            ]
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "2-letter country code for keyword data (default US) and for the Organic Traffic report's top pages and keywords (default worldwide)."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of rows (reports) to scrape in this run. Use it to control your cost (1,000 rows = $3).",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}