
Ahrefs Scraper
Pricing
Pay per event

Ahrefs Scraper
Extract key SEO data from Ahrefs including keyword rankings, backlink profiles, organic traffic, competitor analysis & domain authority. Supports bulk domain analysis across 180+ countries. Download as CSV, JSON, Excel, XML & more formats.
5.0 (1)
Pricing
Pay per event
2
Total users
2
Monthly users
2
Runs succeeded
>99%
Last modified
14 hours ago
💎 Ahrefs SEO Scraper
Try our other scrapers ► | Similarweb Scraper | Social Blade Scraper | Patreon Creator & Posts Scraper |
---|
Welcome to this Ahrefs Scraper on Apify!
This versatile & powerful scraper is designed to effortlessly extract comprehensive SEO data from Ahrefs. Whether you're an SEO professional, digital marketer, or competitive analyst, this scraper helps you uncover detailed SEO insights including, keyword ideas, organic traffic data, keyword rankings, backlink profiles, SERP analysis, keyword difficulty scores, website authority metrics, and competitor intelligence. Perfect for analyzing any domain or keyword across Ahrefs' entire suite, it provides web traffic analytics, top-performing pages, geographic traffic distribution, broken link opportunities, and much more across 180+ countries.
One of its best features is its accuracy & efficiency while scraping thousands of SEO data points in minutes, giving you enterprise-level competitive intelligence from all major Ahrefs SEO tools in one go 💎
Key Features
- 🔍 SEO Data Extraction:
✅ Scrapes comprehensive SEO data from Ahrefs with advanced filtering options
✅ Extracts detailed information from keyword research, traffic analysis, and competitor insights automatically
✅ Provides key metrics such as keyword difficulty, search volume, ranking positions, backlink profiles, and many many more. - 🌐 Multi-Country Support:
✅ Scrapes data for multiple countries and regions
- 🔧 Advanced Customization:
✅ Allows setting specific URLs, domains, or keywords for targeted analysis
✅ Easy to configure search modes for exact URLs or subdomain analysis
✅ Flexible boolean options to include/exclude specific data types
- 📊 Flexible Data Output:
✅ Outputs data in various formats including CSV, XLSX, JSON, JSONL, XML, and RSS
🗂️ Use Cases
- SEO Specialists & Digital Marketers: To gather detailed keyword data, traffic estimates, ranking positions, and competitor analysis for optimization strategies.
- Business Owners: To find comprehensive SEO insights about their website performance, keyword opportunities, and competitor benchmarking.
- SEO Analysts: To analyze market trends in search rankings, keyword difficulty, and industry competition patterns.
- Developers: To integrate SEO data into applications for better website optimization and competitive analysis tools.
It essentially streamlines the process of collecting and analysing SEO analytics data, making it a valuable tool for a variety of professionals.
📌 Output
Website Traffic
{"data_captured_at": "2025-06-20T13:16:12.834475","type": "traffic","keyword": "ai automation","domain": "make.com","country": "us","mode": "subdomains","website_traffic": {"trafficMonthlyAvg": 314693,"costMontlyAvg": 15287023},"website_traffic_history": [{"date": "2025-01-01","organic": 178478},{"date": "2025-02-01","organic": 185743},{"date": "2025-03-01","organic": 709633},{"date": "2025-04-01","organic": 281069},{"date": "2025-05-01","organic": 253346},{"date": "2025-06-01","organic": 273173}],"website_traffic_top_pages": [{"url": "https://community.make.com/t/downloading-instagram-video/76728","traffic": 108061,"share": 70.17494869730109},{"url": "https://www.make.com/en","traffic": 26493,"share": 17.20458737044445},{"url": "https://www.make.com/en/pricing","traffic": 1599,"share": 1.0383926020209366},{"url": "https://www.make.com/en/login","traffic": 1430,"share": 0.9286437904252278},{"url": "https://www.make.com/en/integrations/deep-image-ai/telegram","traffic": 1054,"share": 0.6844689196560771}],"website_traffic_top_countries": [{"country": "in","share": 47.28991517054317},{"country": "us","share": 23.042984078433076},{"country": "gb","share": 3.221676735851281},{"country": "br","share": 2.6378086247919703},{"country": "fr","share": 2.5286957592154375}],"website_traffic_top_keywords": [{"keyword": "download instagram video","position": 10,"traffic": 1290000},{"keyword": "instagram downloader","position": 15,"traffic": 2350000},{"keyword": "make","position": 1,"traffic": 40000},{"keyword": "instagram download video","position": 12,"traffic": 907000},{"keyword": "instagram real download","position": 16,"traffic": 770000}]}
Backlinks Search
{"data_captured_at": "2025-06-20T13:16:12.834475","type": "backlinks","keyword": "ai automation","domain": "make.com","country": "us","mode": "subdomains","backlink_check": {"domainRating": 85.0,"urlRating": 40,"backlinks": 1191783,"refdomains": 18213,"dofollowBacklinks": 97,"dofollowRefdomains": 87},"top_backlinks": [{"anchor": "Make integration","domainRating": 89,"edu": false,"gov": false,"httpCode": 200,"redirectChain": [],"text": true,"textPost": "","textPre": "","title": "TinyPNG – Compress AVIF, WebP, PNG and JPEG images","urlFrom": "https://tinypng.com/","urlTo": "https://www.make.com/en/integrations/tinify","inRendered": true,"inRaw": true,"redirectCode": 0,"original": true,"urlToMustBeGray": false,"urlToHttpCodeCross": false,"urlToNew": "None","urlToChainDestinationChanged": false,"urlToDelReasonTitle": "None","urlToDelReasonKey": "None","urlToHasDelReason": false,"lost_redirect_reason": "","del_reason": "","lost_redirect_source": "","lost_redirect_new_target": "","isLost": true},{"anchor": "Make","domainRating": 62,"edu": false,"gov": false,"httpCode": 200,"redirectChain": [],"text": false,"textPost": "","textPre": "","title": "Deep-Image.ai - AI Image Enhancer to Generate & Upscale","urlFrom": "https://deep-image.ai/","urlTo": "https://www.make.com/en/integrations/deep-image-ai","inRendered": true,"inRaw": true,"redirectCode": 0,"original": true,"urlToMustBeGray": false,"urlToHttpCodeCross": false,"urlToNew": "None","urlToChainDestinationChanged": false,"urlToDelReasonTitle": "None","urlToDelReasonKey": "None","urlToHasDelReason": false,"lost_redirect_reason": "","del_reason": "","lost_redirect_source": "","lost_redirect_new_target": "","isLost": true},...],"top_backlinks_count": 20}
Broken Links Search
{"data_captured_at": "2025-06-20T13:16:12.834475","type": "broken_links","broken_links_inbound": [{"ahrefsRank": 51,"alternate": false,"content": false,"anchor": "showcased by the OpenAI team","canonical": false,"domainRating": 90,"edu": false,"gov": false,"httpCode": 404,"image": false,"language": "en","dofollow": true,"nofollow": false,"poweredBy": [],"redirect": false,"redirectChain": [],"rss": false,"text": true,"textPost": "in a blog post have not been cherry-picked by hand","textPre": "that looks like a window or a strawberry. The results","title": "This avocado armchair could be the future of AI | MIT Technology Review","urlFrom": "https://www.technologyreview.com/2021/01/05/1015754/avocado-armchair-future-ai-openai-deep-learning-nlp-gpt3-computer-vision-common-sense/","urlTo": "https://openai.com/p/83d2facc-260f-41d4-9f03-647d2e62347b/","inRendered": true,"inRaw": true,"refdomains": 587,"traffic": 88.24512,"redirectCode": 0,"original": true,"ugc": false,"sponsored": false,"urlToMustBeGray": false,"urlToHttpCodeCross": false,"urlToNew": "None","urlToChainDestinationChanged": false,"urlToDelReasonTitle": "None","urlToDelReasonKey": "None","urlToHasDelReason": false,"lost_redirect_reason": "","del_reason": "","lost_redirect_source": "","lost_redirect_new_target": "","isLost": true,"failure": ""},...],"broken_links_total_backlinks": 29494,"broken_links_dofollow_backlinks": 80,"broken_links_outbound": [{"ahrefsRank": 82,"linksInternal": 51,"linksExternal": 16,"urlFrom": "https://openai.com/index/searchgpt-prototype/","title": "SearchGPT is a prototype of new AI search features | OpenAI","alternate": false,"canonical": false,"dofollow": true,"nofollow": false,"image": false,"redirect": false,"rss": false,"text": true,"edu": false,"gov": false,"ugc": false,"all": true,"sponsored": false,"links": [{"urlTo": "https://chatgpt.com/search","textPost": "","textPre": "","anchor": "Waitlist closed(opens in a new window)","httpCode": 404,"redirectCode": 0,"alternate": false,"canonical": false,"dofollow": true,"nofollow": false,"image": false,"redirect": false,"rss": false,"text": true,"original": false,"edu": false,"gov": false,"alt": "","ugc": false,"all": true,"sponsored": false,"failure": ""}]},}],"brokeen_links_outbound_total_links": 15772,"broken_links_outbound_dofollow_link": 3}
Keyword Ideas Search
{"data_captured_at": "2025-06-26T13:16:48.294698","type": "keywords","keyword": "ai automation","domain": "make.com","country": "us","mode": "subdomains","keyword_ideas": [{"id": "07496b81212a7009086965675278108c-us","keyword": "ai automation","country": "us","difficultyLabel": "Hard","volumeLabel": "MoreThanOneThousand","updatedAt": "2025-06-26T07:31:50Z","volume": 1000.0},{"id": "51a38d5932d65c1ae20d420cd327cc00-us","keyword": "ai automation agency","country": "us","difficultyLabel": "Easy","volumeLabel": "MoreThanOneThousand","updatedAt": "2025-06-23T11:31:58Z","volume": 1000.0},{"id": "d32d5f202fa601c89131411f8b0bf87e-us","keyword": "new ai automation products 2025","country": "us","difficultyLabel": "Unknown","volumeLabel": "MoreThanOneHundred","updatedAt": null,"volume": 100.0},...],"keyword_ideas_count": 1730,"keyword_ideas_questions": [{"id": "89e76f5ce4895efbb42d84046455abef-us","keyword": "why are chatbots a great tool for strategically using marketing automation and ai?","country": "us","difficultyLabel": "Easy","volumeLabel": "MoreThanOneHundred","updatedAt": "2025-06-12T18:48:05Z","volume": 100.0},{"id": "c1cb8a32fa52b41314004bfd3c218585-us","keyword": "what is ai automation","country": "us","difficultyLabel": "Medium","volumeLabel": "MoreThanOneHundred","updatedAt": "2025-05-31T17:41:33Z","volume": 100.0},{"id": "2bcc0378a240d554d6d407c1c994fd93-us","keyword": "how are ai and automation similar","country": "us","difficultyLabel": "Unknown","volumeLabel": "LessThanOneHundred","updatedAt": null,"volume": 0.0},...],"keyword_ideas_questions_count": 407}
Keyword Ranking Search
{"data_captured_at": "2025-06-20T13:16:12.834475","type": "ranking","keyword": "ai automation","domain": "make.com","country": "us","mode": "subdomains","keyword_ranking_results": [{"content": [{"content_type": "ai_overview","data": {"title": null,"description": "AI automation is the use of artificial intelligence to automate tasks, often by combining AI techniques like machine learning and natural language processing with traditional automation methods . This approach allows systems to learn from data, adapt to changing circumstances, and perform complex tasks with minimal human intervention. \nHere's a more detailed explanation:\nWhat is AI Automation?\nAI automation leverages the power of artificial intelligence to enhance and expand the capabilities of traditional automation. While traditional automation relies on pre-defined rules and scripts, AI automation incorporates machine learning, natural language processing (NLP), and other AI techniques to enable systems to learn, adapt, and make intelligent decisions. ","attribute": "Thumbnail","site_links": [{"title": "What is Intelligent Automation? | IBM","url": {"url": "https://www.ibm.com/think/topics/intelligent-automation"},"attribute": "Thumbnail","is_target": null},{"title": "What Is AI Automation? - Artificial Intelligence - Salesforce","url": {"url": "https://www.salesforce.com/artificial-intelligence/ai-automation/"},"attribute": "Thumbnail","is_target": null},{"title": "AI vs. Automation: What Are The Differences and Similarities?","url": {"url": "https://www.moveworks.com/us/en/resources/blog/differences-between-ai-vs-automation"},"attribute": "Thumbnail","is_target": null}]}}],"pos": 1,"pos_with_metrics": null},{"content": [{"content_type": "organic","data": {"link": {"title": "What Is AI Automation? - Artificial Intelligence","url": {"url": "https://www.salesforce.com/artificial-intelligence/ai-automation/"},"attribute": null,"is_target": null,"metrics": {"rank": 348,"domain_rating": null,"url_rating": null,"refpages": 22,"domains": 20,"traffic": 1916,"cost": 443788,"keywords": 95,"top_keyword": null,"top_volume": null,"nr_words": null,"http_code": null}},"site_links": []}}],"pos": 2,"pos_with_metrics": null},...]}
Keyword Difficulty Search
{"data_captured_at": "2025-06-20T13:16:12.834475","type": "keyword_difficulty","keyword": "ai automation","domain": "make.com","country": "us","mode": "subdomains","keyword_difficulty": 47,"keyword_difficulty_results": [{"content_type": "ai_overview","data": {"title": null,"description": "AI automation is the use of artificial intelligence to automate tasks, often by combining AI techniques like machine learning and natural language processing with traditional automation methods . This approach allows systems to learn from data, adapt to changing circumstances, and perform complex tasks with minimal human intervention. \nHere's a more detailed explanation:\nWhat is AI Automation?\nAI automation leverages the power of artificial intelligence to enhance and expand the capabilities of traditional automation. While traditional automation relies on pre-defined rules and scripts, AI automation incorporates machine learning, natural language processing (NLP), and other AI techniques to enable systems to learn, adapt, and make intelligent decisions. ","attribute": "Thumbnail","site_links": [{"title": "What is Intelligent Automation? | IBM","url": {"url": "https://www.ibm.com/think/topics/intelligent-automation"},"attribute": "Thumbnail","is_target": null},{"title": "What Is AI Automation? - Artificial Intelligence - Salesforce","url": {"url": "https://www.salesforce.com/artificial-intelligence/ai-automation/"},"attribute": "Thumbnail","is_target": null},{"title": "AI vs. Automation: What Are The Differences and Similarities?","url": {"url": "https://www.moveworks.com/us/en/resources/blog/differences-between-ai-vs-automation"},"attribute": "Thumbnail","is_target": null}]},"pos": 1,"pos_with_metrics": null},{"content_type": "organic","data": {"link": {"title": "What Is AI Automation? - Artificial Intelligence","url": {"url": "https://www.salesforce.com/artificial-intelligence/ai-automation/"},"attribute": null,"is_target": null,"metrics": {"rank": 348,"domain_rating": null,"url_rating": null,"refpages": 22,"domains": 20,"traffic": 1916,"cost": 443788,"keywords": 95,"top_keyword": null,"top_volume": null,"nr_words": null,"http_code": null}},"site_links": []},"pos": 2,"pos_with_metrics": null},...],"keyword_difficulty_source": "Serps","keyword_difficulty_shortage": 74}
Website Authority Search
{"data_captured_at": "2025-06-20T13:16:12.834475","type": "authority","keyword": "ai automation","domain": "make.com","country": "us","mode": "subdomains","website_authority": {"domainRating": 85.0,"urlRating": 40,"backlinks": 1191783,"refdomains": 18213,"dofollowBacklinks": 97,"dofollowRefdomains": 87}}
Broken Links Search
{"data_captured_at": "2025-06-26T13:16:50.056648","type": "broken_links","keyword": "ai automation","domain": "make.com","country": "us","mode": "subdomains","broken_links_inbound": [{"ahrefsRank": 29,"alternate": false,"content": true,"anchor": "Integromat","canonical": false,"domainRating": 88,"edu": false,"gov": false,"httpCode": 404,"image": false,"language": "en","dofollow": false,"nofollow": false,"poweredBy": [],"redirect": false,"redirectChain": [{"url": "https://www.make.com/en/pricing?fromImt=1&ref=hackernoon.com","urlNew": "None","redirectCode": 301,"mustBeGray": false,"httpCodeCross": false,"chainDestinationChanged": false,"hasDelReason": false,"delReasonTitle": "None","delReasonKey": "None","lostRedirectReason": "None","isLost": true},{"url": "https://www.make.com/en/new-pricing","urlNew": "None","redirectCode": 0,"mustBeGray": false,"httpCodeCross": false,"chainDestinationChanged": false,"hasDelReason": false,"delReasonTitle": "None","delReasonKey": "None","lostRedirectReason": "None","isLost": true}],"rss": false,"text": true,"textPost": ", Paragon .","textPre": "calls. Common in automation tools, i.e. Zapier , Parabola ,","title": "The Unbundling of Excel: How SaaS Businesses Are Replacing Excel | HackerNoon","urlFrom": "https://hackernoon.com/the-unbundling-of-excel-how-saas-businesses-are-replacing-excel","urlTo": "https://www.integromat.com/en/pricing?ref=hackernoon.com","inRendered": true,"inRaw": true,"refdomains": 70,"traffic": 0.004156,"redirectCode": 0,"original": false,"ugc": true,"sponsored": false,"urlToMustBeGray": false,"urlToHttpCodeCross": false,"urlToNew": "None","urlToChainDestinationChanged": false,"urlToDelReasonTitle": "None","urlToDelReasonKey": "None","urlToHasDelReason": false,"lost_redirect_reason": "","del_reason": "","lost_redirect_source": "","lost_redirect_new_target": "","isLost": true,"failure": ""},...],"broken_links_total_backlinks": 4506,"broken_links_dofollow_backlinks": 89,"broken_links_outbound": [{"ahrefsRank": 16,"linksInternal": 57,"linksExternal": 25,"urlFrom": "https://www.make.com/en/how-to-guides/how-to-make-an-api-call-tutorial","title": "How to Make an API Call With Make [Tutorial] | Make","alternate": false,"canonical": false,"dofollow": true,"nofollow": false,"image": false,"redirect": false,"rss": false,"text": true,"edu": false,"gov": false,"ugc": false,"all": true,"sponsored": false,"links": [{"urlTo": "https://docs.x.com/x-api/fundamentals/rate-limits","textPost": "every 15 minutes using the Twitter API.","textPre": "the use of this endpoint. It establishes that you can","anchor": "look up to 900 tweets","httpCode": 0,"redirectCode": 0,"alternate": false,"canonical": false,"dofollow": true,"nofollow": false,"image": false,"redirect": false,"rss": false,"text": true,"original": true,"edu": false,"gov": false,"alt": "","ugc": false,"all": true,"sponsored": false,"failure": "dns"},{"urlTo": "https://docs.x.com/home","textPost": "featuring plenty of useful endpoints, which in turn are bound","textPre": "As with many other apps,","anchor": "Twitter offers a public API","httpCode": 0,"redirectCode": 0,"alternate": false,"canonical": false,"dofollow": true,"nofollow": false,"image": false,"redirect": false,"rss": false,"text": true,"original": true,"edu": false,"gov": false,"alt": "","ugc": false,"all": true,"sponsored": false,"failure": "dns"},{"urlTo": "https://docs.x.com/","textPost": "featuring plenty of useful endpoints, which in turn are bound","textPre": "As with many other apps,","anchor": "Twitter offers a public API","httpCode": 0,"redirectCode": 0,"alternate": false,"canonical": false,"dofollow": true,"nofollow": false,"image": false,"redirect": false,"rss": false,"text": true,"original": true,"edu": false,"gov": false,"alt": "","ugc": false,"all": true,"sponsored": false,"failure": "dns"}]},...],"brokeen_links_outbound_total_links": 47,"broken_links_outbound_dofollow_link": 94}
📍 Input
Ahref Search Parameters
- keyword
: (Optional) (String)
The keyword to search for on Ahrefs. Enter any keyword or phrase you want to analyze for SEO metrics and competitor insights (e.g. ai automation).
- url
: (Optional) (String)
The URL or Domain of the web page to search for on Ahrefs. Enter a complete URL or just the domain name to analyze (e.g. make.com).
- country
: (Optional) (String)
Select the country for the search on Ahrefs. This determines the geographical location for search results and keyword data.
💡 Default value is "us" (United States).
- mode
: (Optional) (String)
Select the mode for the search on Ahrefs. Choose "exact" to analyze only the specific URL provided, or "subdomains" to include all subdomains of the target domain.
💡 Default value is "subdomains".
- include_traffic
: (Optional) (Boolean)
If set to True, the search will include web-traffic data from Ahrefs showing organic search traffic estimates, top pages, and traffic trends.
💡 Default value is True.
- include_keywords
: (Optional) (Boolean)
If set to True, the search will include keywords data from Ahrefs showing which keywords the target domain ranks for.
💡 Default value is True.
- include_keywords_difficulty
: (Optional) (Boolean)
If set to True, the search will include keywords difficulty data from Ahrefs showing the competitive difficulty score for ranking keywords.
💡 Default value is True.
- include_keywords_ranking
: (Optional) (Boolean)
If set to True, the search will include keywords ranking data from Ahrefs showing current ranking positions for target keywords.
💡 Default value is True.
- include_serp
: (Optional) (Boolean)
If set to True, the search will include SERP (Search Engine Results Page) data from Ahrefs showing competitor analysis and ranking positions.
💡 Default value is True.
- include_backlinks
: (Optional) (Boolean)
If set to True, the search will include backlinks data from Ahrefs showing referring domains, link quality metrics, and backlink profiles.
💡 Default value is True.
- include_broken_links
: (Optional) (Boolean)
If set to True, the search will include broken links data from Ahrefs identifying dead links and 404 errors on the target domain.
💡 Default value is True.
- include_web_authority
: (Optional) (Boolean)
If set to True, the search will include website authority data from Ahrefs showing domain rating, URL rating, and other authority metrics.
💡 Default value is True.
JSON Input
Sample JSON input if you use the apify api via CURL, Python, JS etc.
{"keyword": "ai automation","mode": "subdomains","url": "https://make.com","include_backlinks": false,"include_broken_links": false,"include_keywords": true,"include_keywords_difficulty": false,"include_keywords_ranking": false,"include_serp": false,"include_traffic": true,"include_web_authority": false,}
Available Search Types
Each run can include up to 8 different search types:
traffic
- Traffic analysis datakeywords
- Keyword researchkeyword_difficulty
- Keyword difficulty metricsranking
- Keyword ranking positionsserp
- Search engine results pagesbacklinks
- Backlink analysisbroken_links
- Broken link detectionauthority
- Domain authority metrics
Usage Limits
This service has different usage limits depending on your subscription status:
User Type | Monthly Runs | Search Types per Run | Reset Period |
---|---|---|---|
Free | 10 runs | Up to 8 types | 30 days |
Paid | Unlimited | Up to 8 types | N/A |
How Limits Work
- Free users: Limited to 10 runs per 30-day period from your first usage
- Paid users: No limits on the number of runs
- All users: Can select any combination of the 8 search types in a single run
- Usage resets automatically 30 days after your first run (for free users)
⚙️ While the scraper is running
During the run, the actor will output log messages letting you know what is going on at any point. Each message always contains specific information about the process including which url / page the actor is working on.
If you provide invalid inputs to the actor, it will immediately stop with a failure state and output log messages explaining what is wrong. If you are unsure what went wrong feel free to open up an issue in the issue tab.
🔗 Legality of web scraping and scraping of job listings
The Ahrefs Scraper is designed to ethically extract only publicly available SEO data and information, and it does not scrape private user data such as personal email addresses or personal identifiers.
Our scrapers are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our scrapers, when used for ethical purposes by Apify users, are safe. However, you should be aware that your results could contain personal data. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. You can also read this blog post on the legality of web scraping.
💬 Feedback and Support
Your satisfaction is important to us! Therefore we are constantly striving to enhance the performance of our Actors.
If you have any technical feedback or encounter any bugs with the Ahrefs Scraper, please create an issue in the Actor’s Issues tab on the Apify Console.
You can also contact us directly for custom integrations or project use cases at business@radeance.com.
On this page
Share Actor: