{"uid":"cap_Q8PutnE6djcHf67FjjAXd","slug":"ahrefs-web-data-scraper-api-x402-56eed372","name":"Ahrefs Web Data Scraper API (x402)","description":"Pay-per-call structured web data. Failed or empty runs are not charged.","url":"https://x402.186-241-26-229.sslip.io/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_1SuyJsO-BeePZnnbHeJcS","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, website authority, traffic overviews, and domain details via a pay-per-call model.","exampleAgentPrompt":"Pull the top 50 websites in the finance category for the United States from Ahrefs, including each site's domain rating, traffic value, keywords, and top competitors.","exampleUseCases":[{"title":"Competitor SEO landscape analysis","prompt":"Get me the top 100 websites in the shopping category worldwide from Ahrefs, with full details like domain rating, traffic value, and main competitors for each site."},{"title":"Domain authority batch lookup","prompt":"Look up Ahrefs website authority and traffic overview for these domains: shopify.com, bigcommerce.com, and woocommerce.com — I want to compare their domain ratings and keyword counts."},{"title":"Trending sites discovery","prompt":"What are the 20 trending websites right now in the news category globally according to Ahrefs? I want to see which ones are gaining the most traction."}],"resultDescription":"Returns a JSON array of website entries with fields such as rank, website URL, category, rank change, domain rating, traffic value, keyword count, top countries, and competitors — depending on the searchType and whether includeDetails is enabled. Also includes a count and a product identifier ('ahrefs').","failureModes":["Empty result if the domain has no public Ahrefs detail page (not charged)","Invalid country or category slug returns no results or an error","Requesting more than 1000 items is capped at the maximum allowed","Domains without public traffic data return null fields","Network or scraping failures result in no charge but an empty response"],"whenToPreferThis":"Choose this endpoint when you need structured Ahrefs public data — website rankings, domain authority scores, traffic estimates, or trending site lists — without managing a browser or Ahrefs account. Especially useful for competitive SEO research, domain vetting, or market landscape analysis at $0.025 per call with no charge for failed runs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:46:34.190Z","isFirstParty":false,"canonicalSlug":"ahrefs-web-data-scraper-api-x402-56eed372"}