{
  "openapi": "3.0.3",
  "info": {
    "title": "Ahrefs Domain Rating, Backlinks & Traffic Lookup (server mode)",
    "version": "1.1",
    "description": "Send one lookup and get the results back in the response. It takes the same input as a normal run: query parameters with GET, or a JSON body with POST. At most 60 results and 240 seconds per request; start a normal run for bigger jobs. Requests run in your own Apify account at the Actor's normal price.",
    "x-oa-server-mode": "1.1"
  },
  "paths": {
    "/": {
      "get": {
        "operationId": "lookupGet",
        "summary": "Run one lookup (query parameters)",
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "required": true,
            "description": "What to fetch. `domain` returns the full public profile; `competitors` returns one row per competitor; `topWebsites` returns the AhrefsTop ranking without needing domains. Legacy values `full`, `authority_only` and `backlinks_only` are accepted and mapped to `domain`, `authority` and `backlinks`.",
            "schema": {
              "type": "string",
              "enum": [
                "domain",
                "authority",
                "backlinks",
                "traffic",
                "competitors",
                "topWebsites",
                "full",
                "authority_only",
                "backlinks_only"
              ],
              "default": "domain"
            },
            "example": "domain"
          },
          {
            "name": "domains",
            "in": "query",
            "required": false,
            "description": "Domains or full URLs (mode=domain/authority/backlinks/traffic/competitors). `www` and non-`www` forms are both tried. Duplicates are removed. (GET: repeat the parameter once per value.)",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "maxItems": 5
            },
            "style": "form",
            "explode": true,
            "example": [
              "wikipedia.org"
            ]
          },
          {
            "name": "includeHistory",
            "in": "query",
            "required": false,
            "description": "Include monthly traffic, traffic-value and linking-website history (mode=domain/authority/backlinks/traffic).",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "includeKeywords",
            "in": "query",
            "required": false,
            "description": "Include the top 5 keywords table (mode=domain/traffic).",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "includeCountries",
            "in": "query",
            "required": false,
            "description": "Include the top 5 traffic countries (mode=domain/traffic).",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "includeCompetitors",
            "in": "query",
            "required": false,
            "description": "Include the top 5 competing websites on the profile (mode=domain).",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "maxItems",
            "in": "query",
            "required": false,
            "description": "Hard cap on emitted rows across all requested domains or ranking pages.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "topWebsitesCountry",
            "in": "query",
            "required": false,
            "description": "(mode=topWebsites) Country ranking. `worldwide` uses the global top 1000; any other value uses that country's top 100.",
            "schema": {
              "type": "string",
              "enum": [
                "worldwide",
                "afghanistan",
                "albania",
                "algeria",
                "andorra",
                "angola",
                "antigua-and-barbuda",
                "argentina",
                "armenia",
                "australia",
                "austria",
                "azerbaijan",
                "bahamas",
                "bahrain",
                "bangladesh",
                "belarus",
                "belgium",
                "belize",
                "benin",
                "bhutan",
                "bolivia",
                "bosnia-and-herzegovina",
                "botswana",
                "brazil",
                "brunei-darussalam",
                "bulgaria",
                "burkina-faso",
                "burundi",
                "cambodia",
                "cameroon",
                "canada",
                "cape-verde",
                "central-african-republic",
                "chad",
                "chile",
                "colombia",
                "congo",
                "congo-democratic-republic",
                "costa-rica",
                "cote-divoire",
                "croatia",
                "cyprus",
                "czech-republic",
                "denmark",
                "djibouti",
                "dominican-republic",
                "ecuador",
                "egypt",
                "el-salvador",
                "estonia",
                "ethiopia",
                "fiji",
                "finland",
                "france",
                "gabon",
                "gambia",
                "georgia",
                "germany",
                "ghana",
                "gibraltar",
                "greece",
                "greenland",
                "guadeloupe",
                "guatemala",
                "guernsey",
                "guyana",
                "haiti",
                "honduras",
                "hong-kong",
                "hungary",
                "iceland",
                "india",
                "indonesia",
                "iraq",
                "ireland",
                "isle-of-man",
                "israel",
                "italy",
                "jamaica",
                "japan",
                "jersey",
                "jordan",
                "kazakhstan",
                "kenya",
                "kuwait",
                "kyrgyzstan",
                "lao-peoples-democratic-republic",
                "latvia",
                "lebanon",
                "lesotho",
                "libyan-arab-jamahiriya",
                "liechtenstein",
                "lithuania",
                "luxembourg",
                "madagascar",
                "malawi",
                "malaysia",
                "maldives",
                "mali",
                "malta",
                "mauritius",
                "mexico",
                "moldova",
                "mongolia",
                "montenegro",
                "morocco",
                "mozambique",
                "myanmar",
                "namibia",
                "nepal",
                "netherlands",
                "new-zealand",
                "nicaragua",
                "niger",
                "nigeria",
                "north-macedonia",
                "norway",
                "oman",
                "pakistan",
                "palestine",
                "panama",
                "papua-new-guinea",
                "paraguay",
                "peru",
                "philippines",
                "poland",
                "portugal",
                "puerto-rico",
                "qatar",
                "romania",
                "russian-federation",
                "rwanda",
                "saint-vincent-and-grenadines",
                "saudi-arabia",
                "senegal",
                "serbia",
                "seychelles",
                "sierra-leone",
                "singapore",
                "slovakia",
                "slovenia",
                "somalia",
                "south-africa",
                "korea",
                "spain",
                "sri-lanka",
                "suriname",
                "sweden",
                "switzerland",
                "taiwan",
                "tajikistan",
                "tanzania",
                "thailand",
                "timor-leste",
                "togo",
                "trinidad-and-tobago",
                "tunisia",
                "turkey",
                "turkmenistan",
                "uganda",
                "ukraine",
                "united-arab-emirates",
                "united-kingdom",
                "united-states",
                "uruguay",
                "uzbekistan",
                "venezuela",
                "vietnam",
                "virgin-islands-us",
                "zambia",
                "zimbabwe"
              ],
              "default": "worldwide"
            }
          },
          {
            "name": "topWebsitesCategory",
            "in": "query",
            "required": false,
            "description": "(mode=topWebsites) Category filter. Combine with a country for that country's category ranking.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "arts-and-entertainment",
                "autos-and-vehicles",
                "beauty-and-fitness",
                "books-and-literature",
                "business",
                "computers-and-electronics",
                "finance",
                "food-and-drink",
                "games",
                "health",
                "hobbies-and-leisure",
                "home-and-garden",
                "internet-and-telecom",
                "jobs-and-education",
                "law-and-government",
                "news",
                "social-networks",
                "people-and-society",
                "pets-and-animals",
                "real-estate",
                "reference",
                "science",
                "shopping",
                "sports",
                "travel-and-transportation"
              ],
              "default": "all"
            }
          },
          {
            "name": "topWebsitesRanking",
            "in": "query",
            "required": false,
            "description": "(mode=topWebsites) Position ranking or the monthly trending up/down list.",
            "schema": {
              "type": "string",
              "enum": [
                "ranking",
                "trending_up",
                "trending_down"
              ],
              "default": "ranking"
            }
          },
          {
            "name": "topWebsitesPage",
            "in": "query",
            "required": false,
            "description": "(mode=topWebsites) Starting global ranking page (1 = ranks 1-100, 10 = ranks 901-1000). Country, category and trending rankings expose one page only.",
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1,
              "maximum": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The results as a JSON array (at most 60). They are also saved to the run's dataset and billed per result, like a normal run.",
            "headers": {
              "X-Item-Count": {
                "schema": {
                  "type": "integer"
                },
                "description": "Results returned."
              },
              "X-Status-Message": {
                "schema": {
                  "type": "string"
                },
                "description": "The Actor's last status message, e.g. why nothing was found."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Item"
                  }
                },
                "example": [
                  {
                    "siteTitle": "Wikipedia",
                    "siteDescription": "Wikipedia.org is a multilingual, collaboratively edited online encyclopedia. It hosts articles on a broad spectrum of topics written and updated by volunteer...",
                    "descriptionMeta": "wikipedia.org is ranked #2 globally with 2.6B traffic in October 2026. Learn more about website traffic, ranking and backlink profile.",
                    "globalRank": 2,
                    "globalRankChange": -1,
                    "countryRank": 4,
                    "countryRankCountry": "United States",
                    "countryRankChange": -3,
                    "category": "Reference",
                    "categoryRank": 1,
                    "dataMonth": "2026-10",
                    "trafficMonth": "October 2026",
                    "organicTraffic": 2600000000,
                    "organicTrafficText": "2.6B",
                    "organicTrafficChange": -1100000000,
                    "trafficValueUsd": 407800000,
                    "trafficValueText": "$407.8M",
                    "trafficValueChangeUsd": -164200000,
                    "organicKeywords": 3200,
                    "organicKeywordsText": "3.2K",
                    "topCountries": [
                      {
                        "country": "United States",
                        "visits": 536900000,
                        "visitsChange": -291700000,
                        "share": 20.7
                      },
                      {
                        "country": "India",
                        "visits": 170800000,
                        "visitsChange": -94300000,
                        "share": 6.6
                      },
                      {
                        "country": "United Kingdom",
                        "visits": 135900000,
                        "visitsChange": -77500000,
                        "share": 5.2
                      }
                    ],
                    "topKeywordCountry": "United States",
                    "topKeywords": [
                      {
                        "keyword": "wikipedia",
                        "volume": 2000000,
                        "traffic": 1500000,
                        "trafficChange": -4900,
                        "position": 1
                      },
                      {
                        "keyword": "wikipedia search",
                        "volume": 8000,
                        "volumeChange": 700,
                        "traffic": 4400,
                        "trafficChange": 391,
                        "position": 1
                      },
                      {
                        "keyword": "wikipedia.org",
                        "volume": 3000,
                        "volumeChange": -100,
                        "traffic": 2300,
                        "trafficChange": -92,
                        "position": 1
                      }
                    ],
                    "topCompetitors": [
                      {
                        "domain": "youtube.com",
                        "traffic": 2600000000,
                        "trafficChange": -11300000,
                        "pages": 37700000
                      },
                      {
                        "domain": "imdb.com",
                        "traffic": 423300000,
                        "trafficChange": 37400000,
                        "pages": 2100000
                      },
                      {
                        "domain": "britannica.com",
                        "traffic": 42300000,
                        "trafficChange": -1900000,
                        "pages": 179200
                      }
                    ],
                    "similarlyRanked": [
                      {
                        "domain": "wikipedia.org",
                        "traffic": 2600000000,
                        "trafficChange": -1100000000,
                        "rank": 2,
                        "rankChange": -1
                      }
                    ],
                    "asOf": "October 2026",
                    "domainRating": 97,
                    "linkingWebsites": 4000000,
                    "linkingWebsitesText": "4M",
                    "referringDomainsDelta": 9200,
                    "referringDomainsDeltaDirection": "increase",
                    "trafficHistoryMonthly": [
                      {
                        "month": "2015-06",
                        "organicTraffic": 715419205,
                        "trafficValueUsd": 235313476
                      },
                      {
                        "month": "2015-07",
                        "organicTraffic": 667414615,
                        "trafficValueUsd": 220676722
                      },
                      {
                        "month": "2015-08",
                        "organicTraffic": 704420459,
                        "trafficValueUsd": 230682255
                      }
                    ],
                    "linkingWebsitesHistory": [
                      {
                        "month": "2015-04",
                        "linkingWebsites": 124960
                      },
                      {
                        "month": "2015-05",
                        "linkingWebsites": 130765
                      },
                      {
                        "month": "2015-06",
                        "linkingWebsites": 135905
                      }
                    ],
                    "type": "ahrefs_website_stats",
                    "domain": "wikipedia.org",
                    "resolvedDomain": "wikipedia.org",
                    "sourceUrl": "https://ahrefs.com/websites/wikipedia.org",
                    "scrapedAt": "2026-11-10T15:33:29Z"
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Invalid, missing or unknown input fields. Nothing ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid_input",
                  "errorDescription": "mode: required"
                }
              }
            }
          },
          "422": {
            "description": "The Actor could not complete this request (for example, nothing matches). No results were delivered.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected failure. Safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "504": {
            "description": "The request used up its 240 s budget. The results found so far are in partialItems.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "partialItems": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Item"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "lookupPost",
        "summary": "Run one lookup (JSON body)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "domain",
                      "authority",
                      "backlinks",
                      "traffic",
                      "competitors",
                      "topWebsites",
                      "full",
                      "authority_only",
                      "backlinks_only"
                    ],
                    "default": "domain",
                    "description": "What to fetch. `domain` returns the full public profile; `competitors` returns one row per competitor; `topWebsites` returns the AhrefsTop ranking without needing domains. Legacy values `full`, `authority_only` and `backlinks_only` are accepted and mapped to `domain`, `authority` and `backlinks`."
                  },
                  "domains": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 5,
                    "description": "Domains or full URLs (mode=domain/authority/backlinks/traffic/competitors). `www` and non-`www` forms are both tried. Duplicates are removed."
                  },
                  "includeHistory": {
                    "type": "boolean",
                    "default": true,
                    "description": "Include monthly traffic, traffic-value and linking-website history (mode=domain/authority/backlinks/traffic)."
                  },
                  "includeKeywords": {
                    "type": "boolean",
                    "default": true,
                    "description": "Include the top 5 keywords table (mode=domain/traffic)."
                  },
                  "includeCountries": {
                    "type": "boolean",
                    "default": true,
                    "description": "Include the top 5 traffic countries (mode=domain/traffic)."
                  },
                  "includeCompetitors": {
                    "type": "boolean",
                    "default": true,
                    "description": "Include the top 5 competing websites on the profile (mode=domain)."
                  },
                  "maxItems": {
                    "type": "integer",
                    "default": 50,
                    "minimum": 1,
                    "maximum": 50,
                    "description": "Hard cap on emitted rows across all requested domains or ranking pages."
                  },
                  "topWebsitesCountry": {
                    "type": "string",
                    "enum": [
                      "worldwide",
                      "afghanistan",
                      "albania",
                      "algeria",
                      "andorra",
                      "angola",
                      "antigua-and-barbuda",
                      "argentina",
                      "armenia",
                      "australia",
                      "austria",
                      "azerbaijan",
                      "bahamas",
                      "bahrain",
                      "bangladesh",
                      "belarus",
                      "belgium",
                      "belize",
                      "benin",
                      "bhutan",
                      "bolivia",
                      "bosnia-and-herzegovina",
                      "botswana",
                      "brazil",
                      "brunei-darussalam",
                      "bulgaria",
                      "burkina-faso",
                      "burundi",
                      "cambodia",
                      "cameroon",
                      "canada",
                      "cape-verde",
                      "central-african-republic",
                      "chad",
                      "chile",
                      "colombia",
                      "congo",
                      "congo-democratic-republic",
                      "costa-rica",
                      "cote-divoire",
                      "croatia",
                      "cyprus",
                      "czech-republic",
                      "denmark",
                      "djibouti",
                      "dominican-republic",
                      "ecuador",
                      "egypt",
                      "el-salvador",
                      "estonia",
                      "ethiopia",
                      "fiji",
                      "finland",
                      "france",
                      "gabon",
                      "gambia",
                      "georgia",
                      "germany",
                      "ghana",
                      "gibraltar",
                      "greece",
                      "greenland",
                      "guadeloupe",
                      "guatemala",
                      "guernsey",
                      "guyana",
                      "haiti",
                      "honduras",
                      "hong-kong",
                      "hungary",
                      "iceland",
                      "india",
                      "indonesia",
                      "iraq",
                      "ireland",
                      "isle-of-man",
                      "israel",
                      "italy",
                      "jamaica",
                      "japan",
                      "jersey",
                      "jordan",
                      "kazakhstan",
                      "kenya",
                      "kuwait",
                      "kyrgyzstan",
                      "lao-peoples-democratic-republic",
                      "latvia",
                      "lebanon",
                      "lesotho",
                      "libyan-arab-jamahiriya",
                      "liechtenstein",
                      "lithuania",
                      "luxembourg",
                      "madagascar",
                      "malawi",
                      "malaysia",
                      "maldives",
                      "mali",
                      "malta",
                      "mauritius",
                      "mexico",
                      "moldova",
                      "mongolia",
                      "montenegro",
                      "morocco",
                      "mozambique",
                      "myanmar",
                      "namibia",
                      "nepal",
                      "netherlands",
                      "new-zealand",
                      "nicaragua",
                      "niger",
                      "nigeria",
                      "north-macedonia",
                      "norway",
                      "oman",
                      "pakistan",
                      "palestine",
                      "panama",
                      "papua-new-guinea",
                      "paraguay",
                      "peru",
                      "philippines",
                      "poland",
                      "portugal",
                      "puerto-rico",
                      "qatar",
                      "romania",
                      "russian-federation",
                      "rwanda",
                      "saint-vincent-and-grenadines",
                      "saudi-arabia",
                      "senegal",
                      "serbia",
                      "seychelles",
                      "sierra-leone",
                      "singapore",
                      "slovakia",
                      "slovenia",
                      "somalia",
                      "south-africa",
                      "korea",
                      "spain",
                      "sri-lanka",
                      "suriname",
                      "sweden",
                      "switzerland",
                      "taiwan",
                      "tajikistan",
                      "tanzania",
                      "thailand",
                      "timor-leste",
                      "togo",
                      "trinidad-and-tobago",
                      "tunisia",
                      "turkey",
                      "turkmenistan",
                      "uganda",
                      "ukraine",
                      "united-arab-emirates",
                      "united-kingdom",
                      "united-states",
                      "uruguay",
                      "uzbekistan",
                      "venezuela",
                      "vietnam",
                      "virgin-islands-us",
                      "zambia",
                      "zimbabwe"
                    ],
                    "default": "worldwide",
                    "description": "(mode=topWebsites) Country ranking. `worldwide` uses the global top 1000; any other value uses that country's top 100."
                  },
                  "topWebsitesCategory": {
                    "type": "string",
                    "enum": [
                      "all",
                      "arts-and-entertainment",
                      "autos-and-vehicles",
                      "beauty-and-fitness",
                      "books-and-literature",
                      "business",
                      "computers-and-electronics",
                      "finance",
                      "food-and-drink",
                      "games",
                      "health",
                      "hobbies-and-leisure",
                      "home-and-garden",
                      "internet-and-telecom",
                      "jobs-and-education",
                      "law-and-government",
                      "news",
                      "social-networks",
                      "people-and-society",
                      "pets-and-animals",
                      "real-estate",
                      "reference",
                      "science",
                      "shopping",
                      "sports",
                      "travel-and-transportation"
                    ],
                    "default": "all",
                    "description": "(mode=topWebsites) Category filter. Combine with a country for that country's category ranking."
                  },
                  "topWebsitesRanking": {
                    "type": "string",
                    "enum": [
                      "ranking",
                      "trending_up",
                      "trending_down"
                    ],
                    "default": "ranking",
                    "description": "(mode=topWebsites) Position ranking or the monthly trending up/down list."
                  },
                  "topWebsitesPage": {
                    "type": "integer",
                    "default": 1,
                    "minimum": 1,
                    "maximum": 10,
                    "description": "(mode=topWebsites) Starting global ranking page (1 = ranks 1-100, 10 = ranks 901-1000). Country, category and trending rankings expose one page only."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "mode"
                ]
              },
              "example": {
                "mode": "domain",
                "domains": [
                  "wikipedia.org"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The results as a JSON array (at most 60). They are also saved to the run's dataset and billed per result, like a normal run.",
            "headers": {
              "X-Item-Count": {
                "schema": {
                  "type": "integer"
                },
                "description": "Results returned."
              },
              "X-Status-Message": {
                "schema": {
                  "type": "string"
                },
                "description": "The Actor's last status message, e.g. why nothing was found."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Item"
                  }
                },
                "example": [
                  {
                    "siteTitle": "Wikipedia",
                    "siteDescription": "Wikipedia.org is a multilingual, collaboratively edited online encyclopedia. It hosts articles on a broad spectrum of topics written and updated by volunteer...",
                    "descriptionMeta": "wikipedia.org is ranked #2 globally with 2.6B traffic in October 2026. Learn more about website traffic, ranking and backlink profile.",
                    "globalRank": 2,
                    "globalRankChange": -1,
                    "countryRank": 4,
                    "countryRankCountry": "United States",
                    "countryRankChange": -3,
                    "category": "Reference",
                    "categoryRank": 1,
                    "dataMonth": "2026-10",
                    "trafficMonth": "October 2026",
                    "organicTraffic": 2600000000,
                    "organicTrafficText": "2.6B",
                    "organicTrafficChange": -1100000000,
                    "trafficValueUsd": 407800000,
                    "trafficValueText": "$407.8M",
                    "trafficValueChangeUsd": -164200000,
                    "organicKeywords": 3200,
                    "organicKeywordsText": "3.2K",
                    "topCountries": [
                      {
                        "country": "United States",
                        "visits": 536900000,
                        "visitsChange": -291700000,
                        "share": 20.7
                      },
                      {
                        "country": "India",
                        "visits": 170800000,
                        "visitsChange": -94300000,
                        "share": 6.6
                      },
                      {
                        "country": "United Kingdom",
                        "visits": 135900000,
                        "visitsChange": -77500000,
                        "share": 5.2
                      }
                    ],
                    "topKeywordCountry": "United States",
                    "topKeywords": [
                      {
                        "keyword": "wikipedia",
                        "volume": 2000000,
                        "traffic": 1500000,
                        "trafficChange": -4900,
                        "position": 1
                      },
                      {
                        "keyword": "wikipedia search",
                        "volume": 8000,
                        "volumeChange": 700,
                        "traffic": 4400,
                        "trafficChange": 391,
                        "position": 1
                      },
                      {
                        "keyword": "wikipedia.org",
                        "volume": 3000,
                        "volumeChange": -100,
                        "traffic": 2300,
                        "trafficChange": -92,
                        "position": 1
                      }
                    ],
                    "topCompetitors": [
                      {
                        "domain": "youtube.com",
                        "traffic": 2600000000,
                        "trafficChange": -11300000,
                        "pages": 37700000
                      },
                      {
                        "domain": "imdb.com",
                        "traffic": 423300000,
                        "trafficChange": 37400000,
                        "pages": 2100000
                      },
                      {
                        "domain": "britannica.com",
                        "traffic": 42300000,
                        "trafficChange": -1900000,
                        "pages": 179200
                      }
                    ],
                    "similarlyRanked": [
                      {
                        "domain": "wikipedia.org",
                        "traffic": 2600000000,
                        "trafficChange": -1100000000,
                        "rank": 2,
                        "rankChange": -1
                      }
                    ],
                    "asOf": "October 2026",
                    "domainRating": 97,
                    "linkingWebsites": 4000000,
                    "linkingWebsitesText": "4M",
                    "referringDomainsDelta": 9200,
                    "referringDomainsDeltaDirection": "increase",
                    "trafficHistoryMonthly": [
                      {
                        "month": "2015-06",
                        "organicTraffic": 715419205,
                        "trafficValueUsd": 235313476
                      },
                      {
                        "month": "2015-07",
                        "organicTraffic": 667414615,
                        "trafficValueUsd": 220676722
                      },
                      {
                        "month": "2015-08",
                        "organicTraffic": 704420459,
                        "trafficValueUsd": 230682255
                      }
                    ],
                    "linkingWebsitesHistory": [
                      {
                        "month": "2015-04",
                        "linkingWebsites": 124960
                      },
                      {
                        "month": "2015-05",
                        "linkingWebsites": 130765
                      },
                      {
                        "month": "2015-06",
                        "linkingWebsites": 135905
                      }
                    ],
                    "type": "ahrefs_website_stats",
                    "domain": "wikipedia.org",
                    "resolvedDomain": "wikipedia.org",
                    "sourceUrl": "https://ahrefs.com/websites/wikipedia.org",
                    "scrapedAt": "2026-11-10T15:33:29Z"
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Invalid, missing or unknown input fields. Nothing ran.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid_input",
                  "errorDescription": "mode: required"
                }
              }
            }
          },
          "422": {
            "description": "The Actor could not complete this request (for example, nothing matches). No results were delivered.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected failure. Safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "504": {
            "description": "The request used up its 240 s budget. The results found so far are in partialItems.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "partialItems": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Item"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Item": {
        "type": "object",
        "description": "One result, the same record a normal run saves to its dataset.",
        "properties": {
          "siteTitle": {
            "type": "string"
          },
          "siteDescription": {
            "type": "string"
          },
          "descriptionMeta": {
            "type": "string"
          },
          "globalRank": {
            "type": "integer"
          },
          "globalRankChange": {
            "type": "integer"
          },
          "countryRank": {
            "type": "integer"
          },
          "countryRankCountry": {
            "type": "string"
          },
          "countryRankChange": {
            "type": "integer"
          },
          "category": {
            "type": "string"
          },
          "categoryRank": {
            "type": "integer"
          },
          "dataMonth": {
            "type": "string"
          },
          "trafficMonth": {
            "type": "string"
          },
          "organicTraffic": {
            "type": "integer"
          },
          "organicTrafficText": {
            "type": "string"
          },
          "organicTrafficChange": {
            "type": "integer"
          },
          "trafficValueUsd": {
            "type": "integer"
          },
          "trafficValueText": {
            "type": "string"
          },
          "trafficValueChangeUsd": {
            "type": "integer"
          },
          "organicKeywords": {
            "type": "integer"
          },
          "organicKeywordsText": {
            "type": "string"
          },
          "topCountries": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "topKeywordCountry": {
            "type": "string"
          },
          "topKeywords": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "topCompetitors": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "similarlyRanked": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "asOf": {
            "type": "string"
          },
          "domainRating": {
            "type": "integer"
          },
          "linkingWebsites": {
            "type": "integer"
          },
          "linkingWebsitesText": {
            "type": "string"
          },
          "referringDomainsDelta": {
            "type": "integer"
          },
          "referringDomainsDeltaDirection": {
            "type": "string"
          },
          "trafficHistoryMonthly": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "linkingWebsitesHistory": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "type": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "resolvedDomain": {
            "type": "string"
          },
          "sourceUrl": {
            "type": "string"
          },
          "scrapedAt": {
            "type": "string"
          }
        },
        "example": {
          "siteTitle": "Wikipedia",
          "siteDescription": "Wikipedia.org is a multilingual, collaboratively edited online encyclopedia. It hosts articles on a broad spectrum of topics written and updated by volunteer...",
          "descriptionMeta": "wikipedia.org is ranked #2 globally with 2.6B traffic in October 2026. Learn more about website traffic, ranking and backlink profile.",
          "globalRank": 2,
          "globalRankChange": -1,
          "countryRank": 4,
          "countryRankCountry": "United States",
          "countryRankChange": -3,
          "category": "Reference",
          "categoryRank": 1,
          "dataMonth": "2026-10",
          "trafficMonth": "October 2026",
          "organicTraffic": 2600000000,
          "organicTrafficText": "2.6B",
          "organicTrafficChange": -1100000000,
          "trafficValueUsd": 407800000,
          "trafficValueText": "$407.8M",
          "trafficValueChangeUsd": -164200000,
          "organicKeywords": 3200,
          "organicKeywordsText": "3.2K",
          "topCountries": [
            {
              "country": "United States",
              "visits": 536900000,
              "visitsChange": -291700000,
              "share": 20.7
            },
            {
              "country": "India",
              "visits": 170800000,
              "visitsChange": -94300000,
              "share": 6.6
            },
            {
              "country": "United Kingdom",
              "visits": 135900000,
              "visitsChange": -77500000,
              "share": 5.2
            }
          ],
          "topKeywordCountry": "United States",
          "topKeywords": [
            {
              "keyword": "wikipedia",
              "volume": 2000000,
              "traffic": 1500000,
              "trafficChange": -4900,
              "position": 1
            },
            {
              "keyword": "wikipedia search",
              "volume": 8000,
              "volumeChange": 700,
              "traffic": 4400,
              "trafficChange": 391,
              "position": 1
            },
            {
              "keyword": "wikipedia.org",
              "volume": 3000,
              "volumeChange": -100,
              "traffic": 2300,
              "trafficChange": -92,
              "position": 1
            }
          ],
          "topCompetitors": [
            {
              "domain": "youtube.com",
              "traffic": 2600000000,
              "trafficChange": -11300000,
              "pages": 37700000
            },
            {
              "domain": "imdb.com",
              "traffic": 423300000,
              "trafficChange": 37400000,
              "pages": 2100000
            },
            {
              "domain": "britannica.com",
              "traffic": 42300000,
              "trafficChange": -1900000,
              "pages": 179200
            }
          ],
          "similarlyRanked": [
            {
              "domain": "wikipedia.org",
              "traffic": 2600000000,
              "trafficChange": -1100000000,
              "rank": 2,
              "rankChange": -1
            }
          ],
          "asOf": "October 2026",
          "domainRating": 97,
          "linkingWebsites": 4000000,
          "linkingWebsitesText": "4M",
          "referringDomainsDelta": 9200,
          "referringDomainsDeltaDirection": "increase",
          "trafficHistoryMonthly": [
            {
              "month": "2015-06",
              "organicTraffic": 715419205,
              "trafficValueUsd": 235313476
            },
            {
              "month": "2015-07",
              "organicTraffic": 667414615,
              "trafficValueUsd": 220676722
            },
            {
              "month": "2015-08",
              "organicTraffic": 704420459,
              "trafficValueUsd": 230682255
            }
          ],
          "linkingWebsitesHistory": [
            {
              "month": "2015-04",
              "linkingWebsites": 124960
            },
            {
              "month": "2015-05",
              "linkingWebsites": 130765
            },
            {
              "month": "2015-06",
              "linkingWebsites": 135905
            }
          ],
          "type": "ahrefs_website_stats",
          "domain": "wikipedia.org",
          "resolvedDomain": "wikipedia.org",
          "sourceUrl": "https://ahrefs.com/websites/wikipedia.org",
          "scrapedAt": "2026-11-10T15:33:29Z"
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error",
          "errorDescription"
        ],
        "properties": {
          "error": {
            "type": "string",
            "enum": [
              "invalid_input",
              "request_failed",
              "internal_error",
              "timeout",
              "busy",
              "not_found",
              "method_not_allowed",
              "payload_too_large"
            ]
          },
          "errorDescription": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "apifyToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "Your Apify API token (Apify Console, Settings, API and integrations)."
      }
    }
  },
  "servers": [
    {
      "url": "https://guzxxjrtjtq8kiiig.apify.actor"
    }
  ],
  "security": [
    {
      "apifyToken": []
    }
  ]
}