{
  "data": {
    "id": "NtCeEtvHbzO34IRPW",
    "actId": "gUzxxjRtJtq8KiIiG",
    "userId": "NL4ThgItAwaoBlffQ",
    "startedAt": "2026-11-10T16:09:58.924Z",
    "finishedAt": "2026-11-10T16:10:02.913Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "stats": {
      "durationMillis": 3889,
      "runTimeSecs": 3.889,
      "computeUnits": 0.0043211111111111115,
      "imageSizeBytes": 372118528
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "zifX0mkAFMHe8CatY",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"Ahrefs Domain Rating, Backlinks & Traffic Lookup Input\",\n  \"description\": \"Look up public AhrefsTop profiles, competitor rows and top-website rankings.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"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`.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"domain\",\n        \"authority\",\n        \"backlinks\",\n        \"traffic\",\n        \"competitors\",\n        \"topWebsites\",\n        \"full\",\n        \"authority_only\",\n        \"backlinks_only\"\n      ],\n      \"enumTitles\": [\n        \"Full domain profile\",\n        \"Authority (DR and linking sites)\",\n        \"Backlinks (link summary and history)\",\n        \"Traffic (rank, traffic, keywords, countries)\",\n        \"Competitors (one row per competitor)\",\n        \"Top websites ranking\",\n        \"Legacy: full profile\",\n        \"Legacy: authority only\",\n        \"Legacy: backlinks only\"\n      ],\n      \"default\": \"domain\",\n      \"prefill\": \"domain\"\n    },\n    \"domains\": {\n      \"title\": \"Domains\",\n      \"type\": \"array\",\n      \"description\": \"Domains or full URLs (mode=domain/authority/backlinks/traffic/competitors). `www` and non-`www` forms are both tried. Duplicates are removed.\",\n      \"editor\": \"stringList\",\n      \"prefill\": [\n        \"wikipedia.org\"\n      ]\n    },\n    \"includeHistory\": {\n      \"title\": \"Include history\",\n      \"type\": \"boolean\",\n      \"description\": \"Include monthly traffic, traffic-value and linking-website history (mode=domain/authority/backlinks/traffic).\",\n      \"default\": true,\n      \"prefill\": false\n    },\n    \"includeKeywords\": {\n      \"title\": \"Include keywords\",\n      \"type\": \"boolean\",\n      \"description\": \"Include the top 5 keywords table (mode=domain/traffic).\",\n      \"default\": true,\n      \"prefill\": false\n    },\n    \"includeCountries\": {\n      \"title\": \"Include countries\",\n      \"type\": \"boolean\",\n      \"description\": \"Include the top 5 traffic countries (mode=domain/traffic).\",\n      \"default\": true,\n      \"prefill\": false\n    },\n    \"includeCompetitors\": {\n      \"title\": \"Include competitors\",\n      \"type\": \"boolean\",\n      \"description\": \"Include the top 5 competing websites on the profile (mode=domain).\",\n      \"default\": true,\n      \"prefill\": false\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"type\": \"integer\",\n      \"description\": \"Hard cap on emitted rows across all requested domains or ranking pages.\",\n      \"minimum\": 1,\n      \"maximum\": 1000,\n      \"default\": 50,\n      \"prefill\": 1\n    },\n    \"topWebsitesCountry\": {\n      \"title\": \"Top websites country\",\n      \"type\": \"string\",\n      \"description\": \"(mode=topWebsites) Country ranking. `worldwide` uses the global top 1000; any other value uses that country's top 100.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"worldwide\",\n        \"afghanistan\",\n        \"albania\",\n        \"algeria\",\n        \"andorra\",\n        \"angola\",\n        \"antigua-and-barbuda\",\n        \"argentina\",\n        \"armenia\",\n        \"australia\",\n        \"austria\",\n        \"azerbaijan\",\n        \"bahamas\",\n        \"bahrain\",\n        \"bangladesh\",\n        \"belarus\",\n        \"belgium\",\n        \"belize\",\n        \"benin\",\n        \"bhutan\",\n        \"bolivia\",\n        \"bosnia-and-herzegovina\",\n        \"botswana\",\n        \"brazil\",\n        \"brunei-darussalam\",\n        \"bulgaria\",\n        \"burkina-faso\",\n        \"burundi\",\n        \"cambodia\",\n        \"cameroon\",\n        \"canada\",\n        \"cape-verde\",\n        \"central-african-republic\",\n        \"chad\",\n        \"chile\",\n        \"colombia\",\n        \"congo\",\n        \"congo-democratic-republic\",\n        \"costa-rica\",\n        \"cote-divoire\",\n        \"croatia\",\n        \"cyprus\",\n        \"czech-republic\",\n        \"denmark\",\n        \"djibouti\",\n        \"dominican-republic\",\n        \"ecuador\",\n        \"egypt\",\n        \"el-salvador\",\n        \"estonia\",\n        \"ethiopia\",\n        \"fiji\",\n        \"finland\",\n        \"france\",\n        \"gabon\",\n        \"gambia\",\n        \"georgia\",\n        \"germany\",\n        \"ghana\",\n        \"gibraltar\",\n        \"greece\",\n        \"greenland\",\n        \"guadeloupe\",\n        \"guatemala\",\n        \"guernsey\",\n        \"guyana\",\n        \"haiti\",\n        \"honduras\",\n        \"hong-kong\",\n        \"hungary\",\n        \"iceland\",\n        \"india\",\n        \"indonesia\",\n        \"iraq\",\n        \"ireland\",\n        \"isle-of-man\",\n        \"israel\",\n        \"italy\",\n        \"jamaica\",\n        \"japan\",\n        \"jersey\",\n        \"jordan\",\n        \"kazakhstan\",\n        \"kenya\",\n        \"kuwait\",\n        \"kyrgyzstan\",\n        \"lao-peoples-democratic-republic\",\n        \"latvia\",\n        \"lebanon\",\n        \"lesotho\",\n        \"libyan-arab-jamahiriya\",\n        \"liechtenstein\",\n        \"lithuania\",\n        \"luxembourg\",\n        \"madagascar\",\n        \"malawi\",\n        \"malaysia\",\n        \"maldives\",\n        \"mali\",\n        \"malta\",\n        \"mauritius\",\n        \"mexico\",\n        \"moldova\",\n        \"mongolia\",\n        \"montenegro\",\n        \"morocco\",\n        \"mozambique\",\n        \"myanmar\",\n        \"namibia\",\n        \"nepal\",\n        \"netherlands\",\n        \"new-zealand\",\n        \"nicaragua\",\n        \"niger\",\n        \"nigeria\",\n        \"north-macedonia\",\n        \"norway\",\n        \"oman\",\n        \"pakistan\",\n        \"palestine\",\n        \"panama\",\n        \"papua-new-guinea\",\n        \"paraguay\",\n        \"peru\",\n        \"philippines\",\n        \"poland\",\n        \"portugal\",\n        \"puerto-rico\",\n        \"qatar\",\n        \"romania\",\n        \"russian-federation\",\n        \"rwanda\",\n        \"saint-vincent-and-grenadines\",\n        \"saudi-arabia\",\n        \"senegal\",\n        \"serbia\",\n        \"seychelles\",\n        \"sierra-leone\",\n        \"singapore\",\n        \"slovakia\",\n        \"slovenia\",\n        \"somalia\",\n        \"south-africa\",\n        \"korea\",\n        \"spain\",\n        \"sri-lanka\",\n        \"suriname\",\n        \"sweden\",\n        \"switzerland\",\n        \"taiwan\",\n        \"tajikistan\",\n        \"tanzania\",\n        \"thailand\",\n        \"timor-leste\",\n        \"togo\",\n        \"trinidad-and-tobago\",\n        \"tunisia\",\n        \"turkey\",\n        \"turkmenistan\",\n        \"uganda\",\n        \"ukraine\",\n        \"united-arab-emirates\",\n        \"united-kingdom\",\n        \"united-states\",\n        \"uruguay\",\n        \"uzbekistan\",\n        \"venezuela\",\n        \"vietnam\",\n        \"virgin-islands-us\",\n        \"zambia\",\n        \"zimbabwe\"\n      ],\n      \"enumTitles\": [\n        \"Worldwide\",\n        \"Afghanistan\",\n        \"Albania\",\n        \"Algeria\",\n        \"Andorra\",\n        \"Angola\",\n        \"Antigua And Barbuda\",\n        \"Argentina\",\n        \"Armenia\",\n        \"Australia\",\n        \"Austria\",\n        \"Azerbaijan\",\n        \"Bahamas\",\n        \"Bahrain\",\n        \"Bangladesh\",\n        \"Belarus\",\n        \"Belgium\",\n        \"Belize\",\n        \"Benin\",\n        \"Bhutan\",\n        \"Bolivia\",\n        \"Bosnia And Herzegovina\",\n        \"Botswana\",\n        \"Brazil\",\n        \"Brunei Darussalam\",\n        \"Bulgaria\",\n        \"Burkina Faso\",\n        \"Burundi\",\n        \"Cambodia\",\n        \"Cameroon\",\n        \"Canada\",\n        \"Cape Verde\",\n        \"Central African Republic\",\n        \"Chad\",\n        \"Chile\",\n        \"Colombia\",\n        \"Congo\",\n        \"Congo, Democratic Republic of the\",\n        \"Costa Rica\",\n        \"Cote D'Ivoire\",\n        \"Croatia\",\n        \"Cyprus\",\n        \"Czech Republic\",\n        \"Denmark\",\n        \"Djibouti\",\n        \"Dominican Republic\",\n        \"Ecuador\",\n        \"Egypt\",\n        \"El Salvador\",\n        \"Estonia\",\n        \"Ethiopia\",\n        \"Fiji\",\n        \"Finland\",\n        \"France\",\n        \"Gabon\",\n        \"Gambia\",\n        \"Georgia\",\n        \"Germany\",\n        \"Ghana\",\n        \"Gibraltar\",\n        \"Greece\",\n        \"Greenland\",\n        \"Guadeloupe\",\n        \"Guatemala\",\n        \"Guernsey\",\n        \"Guyana\",\n        \"Haiti\",\n        \"Honduras\",\n        \"Hong Kong\",\n        \"Hungary\",\n        \"Iceland\",\n        \"India\",\n        \"Indonesia\",\n        \"Iraq\",\n        \"Ireland\",\n        \"Isle of Man\",\n        \"Israel\",\n        \"Italy\",\n        \"Jamaica\",\n        \"Japan\",\n        \"Jersey\",\n        \"Jordan\",\n        \"Kazakhstan\",\n        \"Kenya\",\n        \"Kuwait\",\n        \"Kyrgyzstan\",\n        \"Lao People's Democratic Republic\",\n        \"Latvia\",\n        \"Lebanon\",\n        \"Lesotho\",\n        \"Libyan Arab Jamahiriya\",\n        \"Liechtenstein\",\n        \"Lithuania\",\n        \"Luxembourg\",\n        \"Madagascar\",\n        \"Malawi\",\n        \"Malaysia\",\n        \"Maldives\",\n        \"Mali\",\n        \"Malta\",\n        \"Mauritius\",\n        \"Mexico\",\n        \"Moldova\",\n        \"Mongolia\",\n        \"Montenegro\",\n        \"Morocco\",\n        \"Mozambique\",\n        \"Myanmar\",\n        \"Namibia\",\n        \"Nepal\",\n        \"Netherlands\",\n        \"New Zealand\",\n        \"Nicaragua\",\n        \"Niger\",\n        \"Nigeria\",\n        \"North Macedonia\",\n        \"Norway\",\n        \"Oman\",\n        \"Pakistan\",\n        \"Palestine, State of\",\n        \"Panama\",\n        \"Papua New Guinea\",\n        \"Paraguay\",\n        \"Peru\",\n        \"Philippines\",\n        \"Poland\",\n        \"Portugal\",\n        \"Puerto Rico\",\n        \"Qatar\",\n        \"Romania\",\n        \"Russian Federation\",\n        \"Rwanda\",\n        \"Saint Vincent And Grenadines\",\n        \"Saudi Arabia\",\n        \"Senegal\",\n        \"Serbia\",\n        \"Seychelles\",\n        \"Sierra Leone\",\n        \"Singapore\",\n        \"Slovakia\",\n        \"Slovenia\",\n        \"Somalia\",\n        \"South Africa\",\n        \"Korea\",\n        \"Spain\",\n        \"Sri Lanka\",\n        \"Suriname\",\n        \"Sweden\",\n        \"Switzerland\",\n        \"Taiwan\",\n        \"Tajikistan\",\n        \"Tanzania\",\n        \"Thailand\",\n        \"Timor-Leste\",\n        \"Togo\",\n        \"Trinidad And Tobago\",\n        \"Tunisia\",\n        \"Turkey\",\n        \"Turkmenistan\",\n        \"Uganda\",\n        \"Ukraine\",\n        \"United Arab Emirates\",\n        \"United Kingdom\",\n        \"United States\",\n        \"Uruguay\",\n        \"Uzbekistan\",\n        \"Venezuela\",\n        \"Vietnam\",\n        \"Virgin Islands, U.S.\",\n        \"Zambia\",\n        \"Zimbabwe\"\n      ],\n      \"default\": \"worldwide\",\n      \"prefill\": \"worldwide\"\n    },\n    \"topWebsitesCategory\": {\n      \"title\": \"Top websites category\",\n      \"type\": \"string\",\n      \"description\": \"(mode=topWebsites) Category filter. Combine with a country for that country's category ranking.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"all\",\n        \"arts-and-entertainment\",\n        \"autos-and-vehicles\",\n        \"beauty-and-fitness\",\n        \"books-and-literature\",\n        \"business\",\n        \"computers-and-electronics\",\n        \"finance\",\n        \"food-and-drink\",\n        \"games\",\n        \"health\",\n        \"hobbies-and-leisure\",\n        \"home-and-garden\",\n        \"internet-and-telecom\",\n        \"jobs-and-education\",\n        \"law-and-government\",\n        \"news\",\n        \"social-networks\",\n        \"people-and-society\",\n        \"pets-and-animals\",\n        \"real-estate\",\n        \"reference\",\n        \"science\",\n        \"shopping\",\n        \"sports\",\n        \"travel-and-transportation\"\n      ],\n      \"enumTitles\": [\n        \"All categories\",\n        \"Entertainment\",\n        \"Vehicles\",\n        \"Beauty & Fitness\",\n        \"Books & Literature\",\n        \"Business & Industrial\",\n        \"Computers & Electronics\",\n        \"Finance\",\n        \"Food & Drink\",\n        \"Games\",\n        \"Health\",\n        \"Hobbies & Leisure\",\n        \"Home & Garden\",\n        \"Internet & Telecom\",\n        \"Jobs & Education\",\n        \"Law & Government\",\n        \"News\",\n        \"Online Communities\",\n        \"People & Society\",\n        \"Pets & Animals\",\n        \"Real Estate\",\n        \"Reference\",\n        \"Science\",\n        \"Shopping\",\n        \"Sports\",\n        \"Travel\"\n      ],\n      \"default\": \"all\",\n      \"prefill\": \"all\"\n    },\n    \"topWebsitesRanking\": {\n      \"title\": \"Top websites ranking type\",\n      \"type\": \"string\",\n      \"description\": \"(mode=topWebsites) Position ranking or the monthly trending up/down list.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"ranking\",\n        \"trending_up\",\n        \"trending_down\"\n      ],\n      \"enumTitles\": [\n        \"Ranking\",\n        \"Trending up\",\n        \"Trending down\"\n      ],\n      \"default\": \"ranking\",\n      \"prefill\": \"ranking\"\n    },\n    \"topWebsitesPage\": {\n      \"title\": \"Top websites page\",\n      \"type\": \"integer\",\n      \"description\": \"(mode=topWebsites) Starting global ranking page (1 = ranks 1-100, 10 = ranks 901-1000). Country, category and trending rankings expose one page only.\",\n      \"minimum\": 1,\n      \"maximum\": 10,\n      \"default\": 1,\n      \"prefill\": 1\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# Ahrefs Domain Rating, Backlinks & Traffic Lookup\n\nScrape **AhrefsTop** website profiles — the public pages Ahrefs publishes at `ahrefs.com/websites/<domain>` — for Domain Rating, linking websites, search traffic, traffic value, keyword counts, top keywords, countries, competitors, similarly ranked sites and monthly history. Six modes cover full profiles, lean authority/backlink/traffic subsets, nine competitor cards per domain, and the AhrefsTop global, country and category rankings. No Ahrefs account, cookie or API key is needed.\n\n## What this actor does\n\n- **Six modes:** `domain`, `authority`, `backlinks`, `traffic`, `competitors`, `topWebsites`\n- **Full public profile:** Domain Rating, linking websites and their monthly change, site title and description, global/country/category ranks and changes, organic traffic, traffic value, keyword count and the data month\n- **Deeper sections:** top 5 keywords, top 5 traffic countries, top 5 competing websites, similarly ranked sites, and monthly traffic/value plus linking-website history (typically 10+ years)\n- **Competitor rows:** one flat row per competitor card with description, ranks, traffic, traffic value, pages and Domain Rating\n- **Rankings:** the global top 1000 (100 rows per page), country and category top 100 lists, combined country + category lists, and monthly trending up/down\n- **Safe inputs and output:** `www` and non-`www` hosts are both tried, duplicate domains are removed, every request is capped by `maxItems`, and empty fields are omitted instead of written as `null`\n\n## Output per website record\n\nUsed by `domain`, `authority`, `backlinks` and `traffic`. Each mode returns its own subset.\n\n- `type` — always `ahrefs_website_stats`\n- `domain` — the normalised domain or host you requested\n- `resolvedDomain` — the exact host AhrefsTop served\n- `sourceUrl` — the public Ahrefs page the record came from\n- `scrapedAt` — ISO 8601 collection timestamp\n- `notFound` — `true` when AhrefsTop has no page for either host form\n- `fetchError` — a short failure reason (`HTTP 403`, `HTTP 429`, `timeout`, `network`) when no page could be read; no metrics are invented\n- `domainRating` — Domain Rating (0–100)\n- `linkingWebsites` / `linkingWebsitesText` — distinct linking websites, numeric and as displayed\n- `referringDomainsDelta` / `referringDomainsDeltaDirection` — month-over-month change and `increase`/`decrease`\n- `siteTitle`, `siteDescription` — the site name and description shown on the profile\n- `descriptionMeta` — the description from the page's structured metadata\n- `globalRank` / `globalRankChange` — worldwide traffic rank and its monthly move\n- `countryRank`, `countryRankCountry` / `countryRankChange` — country rank, country name and move\n- `category`, `categoryRank` / `categoryRankChange` — category name, rank and move\n- `organicTraffic`, `organicTrafficText` / `organicTrafficChange` — estimated monthly organic visits, display text and change\n- `trafficValueUsd`, `trafficValueText` / `trafficValueChangeUsd` — estimated monthly traffic value in USD and its change\n- `organicKeywords` / `organicKeywordsText` — estimated organic keyword count\n- `asOf`, `trafficMonth`, `dataMonth` — snapshot month (display), traffic month and machine-readable `YYYY-MM` data month\n- `topKeywordCountry`, `topKeywords[]` — country used for the keyword table; each keyword has `keyword`, `volume`, `volumeChange`, `traffic`, `trafficChange`, `position` and `positionChange`\n- `topCountries[]` — `country`, `visits`, `visitsChange`, `share` (percent)\n- `topCompetitors[]` — `domain`, `traffic`, `trafficChange`, `pages`\n- `similarlyRanked[]` — `domain`, `traffic`, `trafficChange`, `rank`, `rankChange`; only when the requested site is actually in the worldwide top 1000\n- `trafficHistoryMonthly[]` — `month`, `organicTraffic`, `trafficValueUsd`\n- `linkingWebsitesHistory[]` — `month`, `linkingWebsites`\n\nMode subsets: `authority` returns identity, Domain Rating/linking websites and their history; `backlinks` returns the same link-focused subset; `traffic` returns ranks, traffic, keywords, countries and traffic history; `domain` returns everything.\n\n## Output per competitor record\n\nUsed by `competitors`. One row per competitor card, up to 10 per requested domain.\n\n- `type` — always `ahrefs_competitor`\n- `sourceDomain` — the domain whose competitor page was read\n- `domain` — the competitor domain\n- `sourceUrl`, `scrapedAt`\n- `notFound` / `fetchError` — only when the source page could not be read\n- `siteDescription` — the competitor's description\n- `globalRank`, `globalRankChange`\n- `countryRank`, `countryRankCountry`, `countryRankChange`\n- `category`, `categoryRank`, `categoryRankChange`\n- `organicTraffic`, `organicTrafficChange`\n- `trafficValueUsd`, `trafficValueChangeUsd`\n- `pages`\n- `domainRating`\n\n## Output per top-website record\n\nUsed by `topWebsites`. One row per ranked or trending website.\n\n- `type` — always `ahrefs_top_website`\n- `sourceUrl`, `scrapedAt`\n- `rank`, `rankChange`\n- `domain`\n- `category`\n- `organicTraffic`, `organicTrafficText`, `organicTrafficChange`\n- `rankingScope` — the requested scope: `global`, the country slug, the category slug, or `country/category` (for example `united-states`, `reference`, `united-states/reference`); on a country page, trending rows are country-level (see Limitations)\n- `rankingType` — `ranking`, `trending_up` or `trending_down`\n- `rankingPage` — 1–10 for the global ranking, 1 for country/category and trending\n- `notFound` / `fetchError` — only when the ranking page could not be read\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `domain` | `domain` (full profile), `authority` (DR + linking sites), `backlinks` (link summary + history), `traffic` (ranks/traffic/keywords/countries), `competitors` (one row per competitor), `topWebsites` (AhrefsTop rankings). Legacy values `full`, `authority_only` and `backlinks_only` are still accepted and mapped |\n| `domains` | array | – | Domains or full URLs for every mode except `topWebsites`. `www` and non-`www` are both tried; duplicates are removed |\n| `includeHistory` | boolean | `true` | Include monthly traffic/value and linking-website history (mode=domain/authority/backlinks/traffic) |\n| `includeKeywords` | boolean | `true` | Include the top 5 keywords (mode=domain/traffic) |\n| `includeCountries` | boolean | `true` | Include the top 5 traffic countries (mode=domain/traffic) |\n| `includeCompetitors` | boolean | `true` | Include the top 5 competitors on the profile (mode=domain) |\n| `maxItems` | integer | `50` | Hard cap on rows across all requested domains or ranking pages (1–1000) |\n| `topWebsitesCountry` | string | `worldwide` | Country ranking (mode=topWebsites). `worldwide` uses the global top 1000 |\n| `topWebsitesCategory` | string | `all` | Category ranking (mode=topWebsites); combine with a country for that country's category list |\n| `topWebsitesRanking` | string | `ranking` | `ranking`, `trending_up` or `trending_down` (mode=topWebsites) |\n| `topWebsitesPage` | integer | `1` | Starting global ranking page from 1 to 10 (mode=topWebsites); country/category/trending expose one page |\n\n### Example: full profile with every section\n\n```json\n{\n  \"mode\": \"domain\",\n  \"domains\": [\"wikipedia.org\", \"www.nhs.uk\"],\n  \"maxItems\": 2\n}\n```\n\n### Example: authority and backlink checks only\n\n```json\n{\n  \"mode\": \"authority\",\n  \"domains\": [\"stripe.com\", \"github.com\", \"openai.com\"],\n  \"includeHistory\": true,\n  \"maxItems\": 3\n}\n```\n\n### Example: nine competitor rows per domain\n\n```json\n{\n  \"mode\": \"competitors\",\n  \"domains\": [\"wikipedia.org\"],\n  \"maxItems\": 9\n}\n```\n\n### Example: the US reference ranking, then trending sites\n\n```json\n{\n  \"mode\": \"topWebsites\",\n  \"topWebsitesCountry\": \"united-states\",\n  \"topWebsitesCategory\": \"reference\",\n  \"topWebsitesRanking\": \"ranking\",\n  \"maxItems\": 100\n}\n```\n\n```json\n{\n  \"mode\": \"topWebsites\",\n  \"topWebsitesRanking\": \"trending_up\",\n  \"maxItems\": 10\n}\n```\n\n## Use cases\n\n- **SEO audits** — pull a client's Domain Rating, traffic, traffic value, keyword count and rank movement in one request\n- **Link-building prospecting** — compare linking-website counts and trends across a candidate list before outreach\n- **Competitor benchmarking** — export nine competitor cards per domain with traffic, traffic value, pages and DR\n- **Market research** — download the global top 1000 or a country/category top 100 for lead scoring and segmentation\n- **Portfolio monitoring** — schedule repeat runs and track monthly search traffic, traffic value and referring-site history\n- **Content and keyword research** — see the exact keywords a site earns the most traffic from, with volume, position and monthly change\n\n## Limitations\n\n- **Ranking caps:** the global ranking exposes ranks 1–1000 (ten pages of 100). Country, category and combined country + category rankings expose up to 100 rows; combined lists can be shorter when the source has fewer matches (for example, United States + Reference has 3). Trending exposes 10 rows per direction.\n- **Country trending:** on a country page the trending lists are country-level; the category filter applies only to the ranking table. On the worldwide page, category trending is category-specific.\n- **Conditional ranks:** global rank is printed only for sites in the worldwide top 1000 (`>1000` is omitted). Country, category and keyword-count fields appear only when the source publishes them.\n- **Stale data on quiet sites:** some low-traffic profiles stop updating. `dataMonth` reports the real latest month rather than implying the data is current.\n- **Public profile surface only:** detailed backlink rows, top pages, keyword ideas, keyword difficulty/SERP, broken links, XML sitemaps and AI visibility are not included. Ahrefs' free tools for those require a Cloudflare Turnstile challenge, and the official free API requires an API key.\n- **Third-party estimates:** traffic, traffic value and keyword figures are Ahrefs' estimates, not analytics from the site owner.\n\n## FAQ\n\n**Do I need an Ahrefs subscription or API key?** No. The actor reads the same public website profiles and rankings that any visitor can see on AhrefsTop. There is no login, cookie or token.\n\n**What is AhrefsTop?** It is Ahrefs' public ranking site. Opening `ahrefs.com/websites/<domain>` redirects there; the actor reads the destination page directly.\n\n**Why are some fields missing from a record?** Ahrefs only prints some values conditionally. A site outside the global top 1000 has no `globalRank`, a site without a country rank has no `countryRank`, and some profiles have no keyword count. Empty fields are omitted, never filled with `null` or a sentinel.\n\n**Why is `dataMonth` older than this month for some domains?** Ahrefs stops refreshing profiles it considers inactive. The field shows the latest month the source actually publishes, so you can judge freshness instead of assuming the numbers are current.\n\n**How many rows can `topWebsites` return?** Up to 1000 for the global ranking (start at page 1 and use `maxItems` up to 1000), up to 100 for a country, category or combined country + category list (combined lists can be shorter), and up to 10 for trending up or trending down.\n\n**Can I combine a country and a category?** Yes. Set both `topWebsitesCountry` and `topWebsitesCategory`; the actor reads the combined list, which is capped by the source at 100 rows.\n\n**Do `www` and non-`www` domains both work?** Yes. The actor tries the exact host first and falls back to the other form only when the first returns no page. `resolvedDomain` tells you which host was used.\n\n**How fresh is the data?** Ahrefs updates these profiles monthly. `scrapedAt` records when you collected the row, while `asOf`, `trafficMonth` and `dataMonth` describe the source month.\n\n**Is this affiliated with Ahrefs?** No. This is an independent actor that reads publicly available AhrefsTop pages. It is not endorsed by or affiliated with Ahrefs.\n\n## Use it as an API (server mode)\n\nNeed one answer right away instead of a batch job? Send the input as an HTTP request and the results come back in the response. There's no run to start and poll.\n\n```bash\ncurl -H \"Authorization: Bearer $APIFY_TOKEN\" \\\n  \"https://guzxxjrtjtq8kiiig.apify.actor/?mode=domain&domains=wikipedia.org\"\n```\n\nOr POST the same input as JSON:\n\n```bash\ncurl -X POST -H \"Authorization: Bearer $APIFY_TOKEN\" -H \"Content-Type: application/json\" \\\n  -d '{\"mode\": \"domain\", \"domains\": [\"wikipedia.org\"]}' \\\n  \"https://guzxxjrtjtq8kiiig.apify.actor/\"\n```\n\n- The fields are the same as in the input above. With GET, repeat a parameter once for each value in a list.\n- You get back a JSON array with the same records a normal run saves. They're saved to the run's dataset too.\n- Each request is capped at 60 results and 4 minutes. For bigger jobs, start a normal run.\n- The request runs in your own Apify account at the Actor's normal price (a start fee plus a price per result). The server shuts down after a minute with no requests.\n- The Server tab on this page lists every parameter and lets you try a request from your browser.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "ahrefs-domain-rating-backlinks-and-traffic-lookup",
      "title": "Ahrefs Domain Rating, Backlinks & Traffic Lookup",
      "description": "Look up any domain's public AhrefsTop profile: Domain Rating, linking sites, traffic value, keyword counts, top keywords, countries, competitors and history, plus the AhrefsTop 1000 ranking by country or category.",
      "version": "1.1",
      "buildTag": "latest",
      "input": {
        "title": "Ahrefs Domain Rating, Backlinks & Traffic Lookup Input",
        "description": "Look up public AhrefsTop profiles, competitor rows and top-website rankings.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "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`.",
            "editor": "select",
            "enum": [
              "domain",
              "authority",
              "backlinks",
              "traffic",
              "competitors",
              "topWebsites",
              "full",
              "authority_only",
              "backlinks_only"
            ],
            "enumTitles": [
              "Full domain profile",
              "Authority (DR and linking sites)",
              "Backlinks (link summary and history)",
              "Traffic (rank, traffic, keywords, countries)",
              "Competitors (one row per competitor)",
              "Top websites ranking",
              "Legacy: full profile",
              "Legacy: authority only",
              "Legacy: backlinks only"
            ],
            "default": "domain",
            "prefill": "domain"
          },
          "domains": {
            "title": "Domains",
            "type": "array",
            "description": "Domains or full URLs (mode=domain/authority/backlinks/traffic/competitors). `www` and non-`www` forms are both tried. Duplicates are removed.",
            "editor": "stringList",
            "prefill": [
              "wikipedia.org"
            ]
          },
          "includeHistory": {
            "title": "Include history",
            "type": "boolean",
            "description": "Include monthly traffic, traffic-value and linking-website history (mode=domain/authority/backlinks/traffic).",
            "default": true,
            "prefill": false
          },
          "includeKeywords": {
            "title": "Include keywords",
            "type": "boolean",
            "description": "Include the top 5 keywords table (mode=domain/traffic).",
            "default": true,
            "prefill": false
          },
          "includeCountries": {
            "title": "Include countries",
            "type": "boolean",
            "description": "Include the top 5 traffic countries (mode=domain/traffic).",
            "default": true,
            "prefill": false
          },
          "includeCompetitors": {
            "title": "Include competitors",
            "type": "boolean",
            "description": "Include the top 5 competing websites on the profile (mode=domain).",
            "default": true,
            "prefill": false
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Hard cap on emitted rows across all requested domains or ranking pages.",
            "minimum": 1,
            "maximum": 1000,
            "default": 50,
            "prefill": 1
          },
          "topWebsitesCountry": {
            "title": "Top websites country",
            "type": "string",
            "description": "(mode=topWebsites) Country ranking. `worldwide` uses the global top 1000; any other value uses that country's top 100.",
            "editor": "select",
            "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"
            ],
            "enumTitles": [
              "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 of the",
              "Costa Rica",
              "Cote D'Ivoire",
              "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 People's 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, State of",
              "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, U.S.",
              "Zambia",
              "Zimbabwe"
            ],
            "default": "worldwide",
            "prefill": "worldwide"
          },
          "topWebsitesCategory": {
            "title": "Top websites category",
            "type": "string",
            "description": "(mode=topWebsites) Category filter. Combine with a country for that country's category ranking.",
            "editor": "select",
            "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"
            ],
            "enumTitles": [
              "All categories",
              "Entertainment",
              "Vehicles",
              "Beauty & Fitness",
              "Books & Literature",
              "Business & Industrial",
              "Computers & Electronics",
              "Finance",
              "Food & Drink",
              "Games",
              "Health",
              "Hobbies & Leisure",
              "Home & Garden",
              "Internet & Telecom",
              "Jobs & Education",
              "Law & Government",
              "News",
              "Online Communities",
              "People & Society",
              "Pets & Animals",
              "Real Estate",
              "Reference",
              "Science",
              "Shopping",
              "Sports",
              "Travel"
            ],
            "default": "all",
            "prefill": "all"
          },
          "topWebsitesRanking": {
            "title": "Top websites ranking type",
            "type": "string",
            "description": "(mode=topWebsites) Position ranking or the monthly trending up/down list.",
            "editor": "select",
            "enum": [
              "ranking",
              "trending_up",
              "trending_down"
            ],
            "enumTitles": [
              "Ranking",
              "Trending up",
              "Trending down"
            ],
            "default": "ranking",
            "prefill": "ranking"
          },
          "topWebsitesPage": {
            "title": "Top websites page",
            "type": "integer",
            "description": "(mode=topWebsites) Starting global ranking page (1 = ranks 1-100, 10 = ranks 901-1000). Country, category and trending rankings expose one page only.",
            "minimum": 1,
            "maximum": 10,
            "default": 1,
            "prefill": 1
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Ahrefs Domain Rating, Backlinks & Traffic Lookup Output",
        "description": "One dataset of public AhrefsTop website profiles, competitor rows and top-website rankings, including Domain Rating, traffic, traffic value, keyword counts, top keywords, countries, competitors, similar sites and monthly history.",
        "properties": {
          "results": {
            "type": "string",
            "title": "Ahrefs results",
            "description": "Dataset containing website profiles, competitor rows and top-website ranking rows.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "dockerfile": "../Dockerfile",
      "readme": "# Ahrefs Domain Rating, Backlinks & Traffic Lookup\n\nScrape **AhrefsTop** website profiles — the public pages Ahrefs publishes at `ahrefs.com/websites/<domain>` — for Domain Rating, linking websites, search traffic, traffic value, keyword counts, top keywords, countries, competitors, similarly ranked sites and monthly history. Six modes cover full profiles, lean authority/backlink/traffic subsets, nine competitor cards per domain, and the AhrefsTop global, country and category rankings. No Ahrefs account, cookie or API key is needed.\n\n## What this actor does\n\n- **Six modes:** `domain`, `authority`, `backlinks`, `traffic`, `competitors`, `topWebsites`\n- **Full public profile:** Domain Rating, linking websites and their monthly change, site title and description, global/country/category ranks and changes, organic traffic, traffic value, keyword count and the data month\n- **Deeper sections:** top 5 keywords, top 5 traffic countries, top 5 competing websites, similarly ranked sites, and monthly traffic/value plus linking-website history (typically 10+ years)\n- **Competitor rows:** one flat row per competitor card with description, ranks, traffic, traffic value, pages and Domain Rating\n- **Rankings:** the global top 1000 (100 rows per page), country and category top 100 lists, combined country + category lists, and monthly trending up/down\n- **Safe inputs and output:** `www` and non-`www` hosts are both tried, duplicate domains are removed, every request is capped by `maxItems`, and empty fields are omitted instead of written as `null`\n\n## Output per website record\n\nUsed by `domain`, `authority`, `backlinks` and `traffic`. Each mode returns its own subset.\n\n- `type` — always `ahrefs_website_stats`\n- `domain` — the normalised domain or host you requested\n- `resolvedDomain` — the exact host AhrefsTop served\n- `sourceUrl` — the public Ahrefs page the record came from\n- `scrapedAt` — ISO 8601 collection timestamp\n- `notFound` — `true` when AhrefsTop has no page for either host form\n- `fetchError` — a short failure reason (`HTTP 403`, `HTTP 429`, `timeout`, `network`) when no page could be read; no metrics are invented\n- `domainRating` — Domain Rating (0–100)\n- `linkingWebsites` / `linkingWebsitesText` — distinct linking websites, numeric and as displayed\n- `referringDomainsDelta` / `referringDomainsDeltaDirection` — month-over-month change and `increase`/`decrease`\n- `siteTitle`, `siteDescription` — the site name and description shown on the profile\n- `descriptionMeta` — the description from the page's structured metadata\n- `globalRank` / `globalRankChange` — worldwide traffic rank and its monthly move\n- `countryRank`, `countryRankCountry` / `countryRankChange` — country rank, country name and move\n- `category`, `categoryRank` / `categoryRankChange` — category name, rank and move\n- `organicTraffic`, `organicTrafficText` / `organicTrafficChange` — estimated monthly organic visits, display text and change\n- `trafficValueUsd`, `trafficValueText` / `trafficValueChangeUsd` — estimated monthly traffic value in USD and its change\n- `organicKeywords` / `organicKeywordsText` — estimated organic keyword count\n- `asOf`, `trafficMonth`, `dataMonth` — snapshot month (display), traffic month and machine-readable `YYYY-MM` data month\n- `topKeywordCountry`, `topKeywords[]` — country used for the keyword table; each keyword has `keyword`, `volume`, `volumeChange`, `traffic`, `trafficChange`, `position` and `positionChange`\n- `topCountries[]` — `country`, `visits`, `visitsChange`, `share` (percent)\n- `topCompetitors[]` — `domain`, `traffic`, `trafficChange`, `pages`\n- `similarlyRanked[]` — `domain`, `traffic`, `trafficChange`, `rank`, `rankChange`; only when the requested site is actually in the worldwide top 1000\n- `trafficHistoryMonthly[]` — `month`, `organicTraffic`, `trafficValueUsd`\n- `linkingWebsitesHistory[]` — `month`, `linkingWebsites`\n\nMode subsets: `authority` returns identity, Domain Rating/linking websites and their history; `backlinks` returns the same link-focused subset; `traffic` returns ranks, traffic, keywords, countries and traffic history; `domain` returns everything.\n\n## Output per competitor record\n\nUsed by `competitors`. One row per competitor card, up to 10 per requested domain.\n\n- `type` — always `ahrefs_competitor`\n- `sourceDomain` — the domain whose competitor page was read\n- `domain` — the competitor domain\n- `sourceUrl`, `scrapedAt`\n- `notFound` / `fetchError` — only when the source page could not be read\n- `siteDescription` — the competitor's description\n- `globalRank`, `globalRankChange`\n- `countryRank`, `countryRankCountry`, `countryRankChange`\n- `category`, `categoryRank`, `categoryRankChange`\n- `organicTraffic`, `organicTrafficChange`\n- `trafficValueUsd`, `trafficValueChangeUsd`\n- `pages`\n- `domainRating`\n\n## Output per top-website record\n\nUsed by `topWebsites`. One row per ranked or trending website.\n\n- `type` — always `ahrefs_top_website`\n- `sourceUrl`, `scrapedAt`\n- `rank`, `rankChange`\n- `domain`\n- `category`\n- `organicTraffic`, `organicTrafficText`, `organicTrafficChange`\n- `rankingScope` — the requested scope: `global`, the country slug, the category slug, or `country/category` (for example `united-states`, `reference`, `united-states/reference`); on a country page, trending rows are country-level (see Limitations)\n- `rankingType` — `ranking`, `trending_up` or `trending_down`\n- `rankingPage` — 1–10 for the global ranking, 1 for country/category and trending\n- `notFound` / `fetchError` — only when the ranking page could not be read\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `domain` | `domain` (full profile), `authority` (DR + linking sites), `backlinks` (link summary + history), `traffic` (ranks/traffic/keywords/countries), `competitors` (one row per competitor), `topWebsites` (AhrefsTop rankings). Legacy values `full`, `authority_only` and `backlinks_only` are still accepted and mapped |\n| `domains` | array | – | Domains or full URLs for every mode except `topWebsites`. `www` and non-`www` are both tried; duplicates are removed |\n| `includeHistory` | boolean | `true` | Include monthly traffic/value and linking-website history (mode=domain/authority/backlinks/traffic) |\n| `includeKeywords` | boolean | `true` | Include the top 5 keywords (mode=domain/traffic) |\n| `includeCountries` | boolean | `true` | Include the top 5 traffic countries (mode=domain/traffic) |\n| `includeCompetitors` | boolean | `true` | Include the top 5 competitors on the profile (mode=domain) |\n| `maxItems` | integer | `50` | Hard cap on rows across all requested domains or ranking pages (1–1000) |\n| `topWebsitesCountry` | string | `worldwide` | Country ranking (mode=topWebsites). `worldwide` uses the global top 1000 |\n| `topWebsitesCategory` | string | `all` | Category ranking (mode=topWebsites); combine with a country for that country's category list |\n| `topWebsitesRanking` | string | `ranking` | `ranking`, `trending_up` or `trending_down` (mode=topWebsites) |\n| `topWebsitesPage` | integer | `1` | Starting global ranking page from 1 to 10 (mode=topWebsites); country/category/trending expose one page |\n\n### Example: full profile with every section\n\n```json\n{\n  \"mode\": \"domain\",\n  \"domains\": [\"wikipedia.org\", \"www.nhs.uk\"],\n  \"maxItems\": 2\n}\n```\n\n### Example: authority and backlink checks only\n\n```json\n{\n  \"mode\": \"authority\",\n  \"domains\": [\"stripe.com\", \"github.com\", \"openai.com\"],\n  \"includeHistory\": true,\n  \"maxItems\": 3\n}\n```\n\n### Example: nine competitor rows per domain\n\n```json\n{\n  \"mode\": \"competitors\",\n  \"domains\": [\"wikipedia.org\"],\n  \"maxItems\": 9\n}\n```\n\n### Example: the US reference ranking, then trending sites\n\n```json\n{\n  \"mode\": \"topWebsites\",\n  \"topWebsitesCountry\": \"united-states\",\n  \"topWebsitesCategory\": \"reference\",\n  \"topWebsitesRanking\": \"ranking\",\n  \"maxItems\": 100\n}\n```\n\n```json\n{\n  \"mode\": \"topWebsites\",\n  \"topWebsitesRanking\": \"trending_up\",\n  \"maxItems\": 10\n}\n```\n\n## Use cases\n\n- **SEO audits** — pull a client's Domain Rating, traffic, traffic value, keyword count and rank movement in one request\n- **Link-building prospecting** — compare linking-website counts and trends across a candidate list before outreach\n- **Competitor benchmarking** — export nine competitor cards per domain with traffic, traffic value, pages and DR\n- **Market research** — download the global top 1000 or a country/category top 100 for lead scoring and segmentation\n- **Portfolio monitoring** — schedule repeat runs and track monthly search traffic, traffic value and referring-site history\n- **Content and keyword research** — see the exact keywords a site earns the most traffic from, with volume, position and monthly change\n\n## Limitations\n\n- **Ranking caps:** the global ranking exposes ranks 1–1000 (ten pages of 100). Country, category and combined country + category rankings expose up to 100 rows; combined lists can be shorter when the source has fewer matches (for example, United States + Reference has 3). Trending exposes 10 rows per direction.\n- **Country trending:** on a country page the trending lists are country-level; the category filter applies only to the ranking table. On the worldwide page, category trending is category-specific.\n- **Conditional ranks:** global rank is printed only for sites in the worldwide top 1000 (`>1000` is omitted). Country, category and keyword-count fields appear only when the source publishes them.\n- **Stale data on quiet sites:** some low-traffic profiles stop updating. `dataMonth` reports the real latest month rather than implying the data is current.\n- **Public profile surface only:** detailed backlink rows, top pages, keyword ideas, keyword difficulty/SERP, broken links, XML sitemaps and AI visibility are not included. Ahrefs' free tools for those require a Cloudflare Turnstile challenge, and the official free API requires an API key.\n- **Third-party estimates:** traffic, traffic value and keyword figures are Ahrefs' estimates, not analytics from the site owner.\n\n## FAQ\n\n**Do I need an Ahrefs subscription or API key?** No. The actor reads the same public website profiles and rankings that any visitor can see on AhrefsTop. There is no login, cookie or token.\n\n**What is AhrefsTop?** It is Ahrefs' public ranking site. Opening `ahrefs.com/websites/<domain>` redirects there; the actor reads the destination page directly.\n\n**Why are some fields missing from a record?** Ahrefs only prints some values conditionally. A site outside the global top 1000 has no `globalRank`, a site without a country rank has no `countryRank`, and some profiles have no keyword count. Empty fields are omitted, never filled with `null` or a sentinel.\n\n**Why is `dataMonth` older than this month for some domains?** Ahrefs stops refreshing profiles it considers inactive. The field shows the latest month the source actually publishes, so you can judge freshness instead of assuming the numbers are current.\n\n**How many rows can `topWebsites` return?** Up to 1000 for the global ranking (start at page 1 and use `maxItems` up to 1000), up to 100 for a country, category or combined country + category list (combined lists can be shorter), and up to 10 for trending up or trending down.\n\n**Can I combine a country and a category?** Yes. Set both `topWebsitesCountry` and `topWebsitesCategory`; the actor reads the combined list, which is capped by the source at 100 rows.\n\n**Do `www` and non-`www` domains both work?** Yes. The actor tries the exact host first and falls back to the other form only when the first returns no page. `resolvedDomain` tells you which host was used.\n\n**How fresh is the data?** Ahrefs updates these profiles monthly. `scrapedAt` records when you collected the row, while `asOf`, `trafficMonth` and `dataMonth` describe the source month.\n\n**Is this affiliated with Ahrefs?** No. This is an independent actor that reads publicly available AhrefsTop pages. It is not endorsed by or affiliated with Ahrefs.\n\n## Use it as an API (server mode)\n\nNeed one answer right away instead of a batch job? Send the input as an HTTP request and the results come back in the response. There's no run to start and poll.\n\n```bash\ncurl -H \"Authorization: Bearer $APIFY_TOKEN\" \\\n  \"https://guzxxjrtjtq8kiiig.apify.actor/?mode=domain&domains=wikipedia.org\"\n```\n\nOr POST the same input as JSON:\n\n```bash\ncurl -X POST -H \"Authorization: Bearer $APIFY_TOKEN\" -H \"Content-Type: application/json\" \\\n  -d '{\"mode\": \"domain\", \"domains\": [\"wikipedia.org\"]}' \\\n  \"https://guzxxjrtjtq8kiiig.apify.actor/\"\n```\n\n- The fields are the same as in the input above. With GET, repeat a parameter once for each value in a list.\n- You get back a JSON array with the same records a normal run saves. They're saved to the run's dataset too.\n- Each request is capped at 60 results and 4 minutes. For bigger jobs, start a normal run.\n- The request runs in your own Apify account at the Actor's normal price (a start fee plus a price per result). The server shuts down after a minute with no requests.\n- The Server tab on this page lists every parameter and lets you try a request from your browser.\n",
      "defaultRunOptions": {
        "build": "latest",
        "timeoutSecs": 3600,
        "memoryMbytes": 1024
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Ahrefs results",
              "transformation": {
                "fields": [
                  "type",
                  "domain",
                  "sourceDomain",
                  "rank",
                  "domainRating",
                  "organicTraffic"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "webServerSchema": {
        "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"
                }
              }
            }
          }
        }
      }
    },
    "buildNumber": "1.1.3",
    "imageDigest": "9f9238680c43bba03051a552c4d6f4572eb8cd5150b39e009490de4c4ac8f5aa",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.1"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.0043211111111111115
    }
  }
}