{"uid":"cap_zXyXCOSM27Xlkde8oTwoL","slug":"ahrefs-web-data-scraper-via-scrapeforagents-69d4435e","name":"Ahrefs Web Data Scraper (via ScrapeForAgents)","description":"Pay-per-call structured web data. Failed or empty runs are not charged.","url":"https://api.scrapeforagents.tech/v1/ahrefs?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"country":{"type":"string","default":"worldwide","description":"Country page slug for rankings, such as united-states or united-kingdom. Use worldwide for all countries."},"domains":{"type":"array","description":"Domains or URLs to look up for website details, authority, or traffic. Each domain needs a public detail page."},"category":{"type":"string","default":"all","description":"Category page slug for rankings, such as shopping, news, or finance. Use all for every category."},"maxItems":{"type":"integer","default":100,"maximum":1000,"minimum":0,"description":"Hard cap on dataset items. Rankings have at most 1,000 public results; trending has at most 20 per filter. Zero means no extra cap."},"searchType":{"enum":["top_websites","website_details","website_authority","traffic_overview"],"type":"string","default":"top_websites","description":"Choose ranked websites or a public domain summary. The domain modes share one public source but label the result for its use case."},"rankingMode":{"enum":["ranking","trending"],"type":"string","default":"ranking","description":"For top websites: the main traffic ranking or the twenty trending sites on the first page."},"includeDetails":{"type":"boolean","default":false,"description":"Fetch each ranked website's public detail page to add Domain Rating, traffic value, keywords, countries, and competitors. One extra page request per website."}}},"responseSchema":{"type":"json","example":{"count":1,"items":[{"rank":null,"website":null,"category":null,"detailUrl":null,"rankChange":null,"searchType":null,"websiteUrl":null,"rankingMode":null}],"product":"ahrefs"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.025","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wekQkbU1soJQyin8XGsuS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches structured Ahrefs public data including top website rankings, domain authority, traffic overviews, and website details for given domains or categories.","exampleAgentPrompt":"Pull the top 50 ranked websites in the finance category for the united-states from Ahrefs, and include domain rating, traffic value, and competitor details for each one.","exampleUseCases":[{"title":"Competitor domain authority research","prompt":"Look up Ahrefs website authority and traffic overview for these three competitor domains: semrush.com, moz.com, and ahrefs.com — I need their domain ratings and traffic estimates."},{"title":"Top websites by country and category","prompt":"Give me the top 100 websites in the shopping category for the united-kingdom using Ahrefs rankings, with rank changes included."},{"title":"Trending websites discovery","prompt":"What are the 20 trending websites globally in the news category right now according to Ahrefs? Include their detail pages so I can see domain rating and keywords."}],"resultDescription":"Returns a JSON array of ranked or queried website records, each containing rank, website URL, category, rank change, detail URL, search type, and ranking mode. When includeDetails is true, also includes Domain Rating, traffic value, keywords, top countries, and competitor data per domain. The count of returned items and the data product label (ahrefs) are included at the top level.","failureModes":["Domain has no public Ahrefs detail page — empty result returned, not charged","Invalid country or category slug returns empty or error response","maxItems set to 0 or very low returns fewer results than expected","Trending mode returns at most 20 results regardless of maxItems","Rate limiting or upstream Ahrefs page changes may cause partial or empty responses — not charged on failure"],"whenToPreferThis":"Choose this endpoint when you need structured Ahrefs public data — website rankings, domain authority scores, traffic overviews, or competitive intelligence — without managing browser automation or scraping infrastructure yourself. Prefer it over raw scraping tools when you want clean, schema-validated JSON output from Ahrefs' public pages on a pay-per-successful-call basis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:46:53.961Z","isFirstParty":false,"canonicalSlug":"ahrefs-web-data-scraper-via-scrapeforagents-69d4435e"}