Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Ahrefs Ahrefs Domain Rating

Tài liệu API
https://api.sandbase.ai/v1/api/ahrefs/domain-rating

Return the Ahrefs Domain Rating (0-100 authority score) and Ahrefs Rank for a target domain on a given date. 4xx/5xx are not charged.

Giá
$0.08USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
2 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
Snapshot date in `YYYY-MM-DD` format.
Target domain, e.g. `ahrefs.com`.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Ahrefs Ahrefs Domain Rating API

Returns the Ahrefs Domain Rating and Ahrefs Rank for one domain on a chosen date. You send the domain in target and a snapshot date in date.

Use cases

  • Check the authority score of a domain before you buy a guest post or ask for a link.
  • Track how a site's Domain Rating changes by calling the API with different date values.
  • Compare the Domain Rating of several competitor domains in one report.
  • Filter a list of prospect domains by minimum Domain Rating in an outreach tool.

Request

curl -X POST "https://api.sandbase.ai/v1/api/ahrefs/domain-rating" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target": "ahrefs.com", "date": "2026-10-01"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
datestringYesSnapshot date in YYYY-MM-DD format.
targetstringYesTarget domain, e.g. ahrefs.com.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "domain_rating": {
    "ahrefs_rank": 620,
    "domain_rating": 91.0
  }
}

Response fields

FieldMeaning
domain_rating.domain_ratingThe Ahrefs Domain Rating of the target domain on the requested date. The value is on a 0-100 scale, as described in the API description.
domain_rating.ahrefs_rankThe Ahrefs Rank of the target domain on the requested date. A lower number means a higher position in the ranking.

Notes

  • Send target as a bare domain such as ahrefs.com.
  • Send date as YYYY-MM-DD. Both target and date are required.
  • To get more site metrics for the same domain, call Ahrefs Ahrefs Site Metrics.

Pricing

$0.08 per successful call. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Ahrefs$0.08 mỗi lần gọiJSON
AhrefsTừ $0.013545 mỗi lần gọiJSON bất đồng bộ
AhrefsTừ $0.01419 mỗi lần gọiJSON bất đồng bộ
AhrefsTừ $0.02709 mỗi lần gọiJSON bất đồng bộ
AhrefsTừ $0.01419 mỗi lần gọiJSON bất đồng bộ
AhrefsTừ $0.00774 mỗi lần gọiJSON bất đồng bộ

Câu hỏi

FAQ

Làm thế nào để dùng API Ahrefs Ahrefs Domain Rating?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/ahrefs/domain-rating với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Ahrefs Ahrefs Domain Rating có giá bao nhiêu?

$0.08 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Ahrefs Ahrefs Domain Rating chấp nhận những tham số nào?

Bắt buộc: date (string) và target (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Ahrefs Ahrefs Domain Rating trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Ahrefs không?

Không. Ahrefs Ahrefs Domain Rating chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Ahrefs.