Glasser

Ahrefs API for rankings, backlinks and URL metrics

Copy and paste into your agent to get started.

set up https://glasser.ai/SKILL.md
38 published endpointsPay as you goView Ahrefs endpoints ↓

Data provided by Ahrefs. Access and billing through Glasser.

Choose an Ahrefs report by the question you need answered

Which keywords rank for my domain?

Organic Keywords returns the keyword, best position, ranking URL and search metrics for a target and date. Use the returned ranking URL to identify the page serving each keyword.

View endpoint →

Which pages link to my website?

Backlinks returns individual source and target URLs, anchor text and link attributes. Referring Domains groups the evidence by domain; choose the report at the level your analysis needs.

View endpoint →

How strong is a page’s link profile over time?

URL Rating History reports monthly UR values for a page. Domain Rating reports address the domain’s link profile. Keep the target scope and metric name with exported values.

View endpoint →

How to test the Ahrefs API

Prepare your input

Review the selected endpoint’s required fields, sample input and limits. Replace the sample values with a keyword, domain or record you can verify. Reading the schema helps you prepare a request; it does not retrieve provider data.

View inputs →

Try a paid data call

Start with one request through your Glasser account. Check the current price and charge conditions, then compare the returned fields with the information you need. Review the result and actual charge before increasing your request volume.

$0.055 per call · max $55.00 per run
Current catalog price for the example below

View example →

Ahrefs API example:
Domain keywords for a specified date

The keywords a domain or URL ranks for in organic search on a date from the Ahrefs index: keyword, best position and ranking URL, search volume, traffic, CPC by default. select, where and order_by are passed to Ahrefs as documented (fields used in where or order_by are billed like returned fields). Up to 250 rows per call (limit 1–250, default 25). No offset or pagination. Price is per Ahrefs API unit. An empty report is reported as no result.

Endpoint
/v3/site-explorer/organic-keywords
Required inputs
target, date
Source
Published contract · 2026-10-24 · version 4
View endpoint →

Provider docs ↗

Start with this sample input

Sample input
{
  "date": "2026-09-01",
  "target": "ahrefs.com"
}

This published input defines the request. Run it in Glasser to inspect the provider’s actual response.

Read the result

Read keyword, best position and ranking URL together. This published operation returns up to 25 rows per call; use its contract to assess whether the report covers your intended analysis.

Run this example

Once: paste this into your agent's chat. The Skill installs the CLI and logs in by itself. For an agent that cannot use a shell, connect it over MCP instead.

Setup prompt
set up https://glasser.ai/SKILL.md

Then ask for this Endpoint:

Agent prompt
Run the Ahrefs Endpoint /v3/site-explorer/organic-keywords on Glasser with input {"date":"2026-09-01","target":"ahrefs.com"}

For the contract version above, an empty result costs $0.055; provider errors cost $0.00 and timeouts cost $0.00. Check the current contract before running. This page describes published inputs and does not report a completed data-quality test.

Run example ↗
Another example: Inspect individual referring pages
Sample input
{
  "target": "ahrefs.com"
}

Published input · 2026-10-24.

Read the result

Each backlink row represents a link from a source page. Several source pages can belong to one referring domain. Keep URL-level rows when you need anchor, dofollow and first-seen details.

Price: $0.055 per call, capped at $33.00 per run.

View endpoint →

Ahrefs API endpoints and pricing

12 of 38 matching endpoints · 38 totalCurrent catalog prices

Ahrefs AI Responses Count

/v3/site-explorer/ai-responses-count

How often a domain or URL is cited in AI search answers from the Ahrefs index: citation counts across all platforms and per platform (ChatGPT, Copilot, Gemini, Google AI Mode, Google AI Overviews, Grok, Perplexity). One request per call. An empty report is reported as no result.

$0.132per callView details ↗

Ahrefs Anchor Texts

/v3/site-explorer/anchors

The anchor texts used in backlinks to a domain or URL from the Ahrefs index: anchor, links to target, dofollow links, referring pages, first seen by default. select, where and order_by are passed to Ahrefs as documented (fields used in where or order_by are billed like returned fields). Up to 250 rows per call (limit 1–250, default 50). No offset or pagination. Price is per Ahrefs API unit. An empty report is reported as no result.

$0.055per callmax $19.25 per runView details ↗

Ahrefs Backlinks

/v3/site-explorer/all-backlinks

The backlinks pointing at a domain or URL from the Ahrefs index: source URL, target URL, anchor, source DR and UR, first seen, dofollow flag by default. select, where and order_by are passed to Ahrefs as documented (fields used in where or order_by are billed like returned fields). Up to 250 rows per call (limit 1–250, default 50). No offset or pagination. Price is per Ahrefs API unit. An empty report is reported as no result.

$0.055per callmax $33.00 per runView details ↗

Ahrefs Backlinks Stats

/v3/site-explorer/backlinks-stats

The backlink totals of a domain or URL on a date from the Ahrefs index: live and all-time backlinks and referring domains. One request per call. An empty report is reported as no result.

$0.055per callView details ↗

Ahrefs Batch Analysis

/v3/batch-analysis/batch-analysis

The headline SEO metrics of up to twenty domains or URLs in one call from the Ahrefs index: URL, DR, Ahrefs Rank, backlinks, referring domains, organic keywords and organic traffic per target. Up to 20 rows per call. An empty report is reported as no result.

$0.44per callView details ↗

Ahrefs Best Pages by Backlinks

/v3/site-explorer/pages-by-backlinks

The pages of a domain or URL with the most backlinks from the Ahrefs index: page URL, title, links to target, dofollow links, UR by default. select, where and order_by are passed to Ahrefs as documented (fields used in where or order_by are billed like returned fields). Up to 250 rows per call (limit 1–250, default 50). No offset or pagination. Price is per Ahrefs API unit. An empty report is reported as no result.

$0.055per callmax $22.00 per runView details ↗

Ahrefs Best Pages by Internal Links

/v3/site-explorer/pages-by-internal-links

The pages of a domain or URL with the most internal links from the Ahrefs index: page URL, title, internal links to target, dofollow links, UR by default. select, where and order_by are passed to Ahrefs as documented (fields used in where or order_by are billed like returned fields). Up to 250 rows per call (limit 1–250, default 50). No offset or pagination. Price is per Ahrefs API unit. An empty report is reported as no result.

$0.055per callmax $19.25 per runView details ↗

Ahrefs Broken Backlinks

/v3/site-explorer/broken-backlinks

The backlinks pointing at pages of a domain or URL that no longer resolve from the Ahrefs index: source URL, broken target URL, anchor, target HTTP code, source DR, first seen by default. select, where and order_by are passed to Ahrefs as documented (fields used in where or order_by are billed like returned fields). Up to 250 rows per call (limit 1–250, default 50). No offset or pagination. Price is per Ahrefs API unit. An empty report is reported as no result.

$0.055per callmax $30.525 per runView details ↗

Ahrefs Crawled Pages

/v3/site-explorer/crawled-pages

The pages of a domain or URL in the Ahrefs crawl from the Ahrefs index: URL, title, HTTP code, UR, last crawled, page type by default. select, where and order_by are passed to Ahrefs as documented (fields used in where or order_by are billed like returned fields). Up to 250 rows per call (limit 1–250, default 50). No offset or pagination. Price is per Ahrefs API unit. An empty report is reported as no result.

$0.055per callmax $3.025 per runView details ↗

Ahrefs Domain Rating

/v3/site-explorer/domain-rating

The Domain Rating of a domain or URL on a date from the Ahrefs index: DR and Ahrefs Rank. One request per call. An empty report is reported as no result.

$0.006per callView details ↗

Ahrefs Domain Rating History

/v3/site-explorer/domain-rating-history

The monthly Domain Rating of a domain or URL over a date range from the Ahrefs index: date and DR per month. Monthly points over a range of at most a year. An empty report is reported as no result.

$0.055per callView details ↗

Ahrefs Keyword Overview

/v3/keywords-explorer/overview

The search metrics of up to ten keywords in a country from the Ahrefs index: keyword, search volume, keyword difficulty, CPC, clicks. Up to 10 rows per call. An empty report is reported as no result.

$0.253per callView details ↗

Access, pricing and data questions

How do URL Rating and Domain Rating differ?

UR is a page-level backlink-profile metric; DR describes the domain-level profile. Use URL Rating History for the listed monthly page report and Domain Rating for the supported domain report. Neither value is a Google ranking position.

Does Glasser include every Ahrefs API endpoint?

This directory lists the operations currently available through Glasser. Open each endpoint for its required inputs, row limits and price. Features in an Ahrefs plan or official API documentation may fall outside this catalog.

How is Ahrefs API access billed here?

The directory shows Glasser’s price for each operation and its billing unit. Inspect the charge conditions before running. Ahrefs subscriptions and direct API allowances are separate products with their own terms.

Can an API call make Ahrefs index a page?

The listed reports read Ahrefs data. They do not promise an indexing submission service or a change to a website’s backlink metrics.

Connect your agent
to Ahrefs.

Setup prompt
set up https://glasser.ai/SKILL.md