SEO API

SEO 域名页面 API

通过 AnyAPI SEO 获取某个域名的页面,附带其反向链接概况(排名、反向链接数、引用域名数)和页面数据(标题、标题层级、字数、状态、技术),以标准化 JSON 返回。

US$0.08/千条结果,按请求付费,无需订阅。

notion.so - Ahrefs Site Explorer
app.ahrefs.com/site-explorer/best-by-links/v2/exact
ahrefsSearch
OverviewOrganic searchPaid searchBacklink profileContent explorer
PageBacklinksRef. domainsUR

Notion Template Gallery

41,2043,21081
API 返回的内容pages[0]
{
"url": "https://notion.so/templates",
"domain": "notion.so",
"mainDomain": "notion.so",
"tld": "so",
"ip": "104.18.9.126",
"statusCode": 200,
"server": "cloudflare",
"mediaType": "text/html",
... 还有 42 个字段
}
可用率
100.00%
30d · 12 次调用
请求数
13
30d · 按周,近 12 周
响应时间
4.5s
中位数 · 30d

调用方式

一个请求获取 SEO 域名页面

import os, requests

res = requests.post(
    "https://api.getanyapi.com/v1/run/seo.domain_pages",
    headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"},
    json={
        "target": "ahrefs.com",
        "includeSubdomains": True,
        "limit": 10,
        "status": "live"
    },
)
print(res.json())
打开于
获取免费密钥
示例响应

这个示例展示了 55 个字段中的 53 个。查看全部字段

{
  "found": true,
  "data": {
    "totalCount": 88213,
    "pages": [
      {
        "url": "https://notion.so/templates",
        "domain": "notion.so",
        "mainDomain": "notion.so",
        "tld": "so",
        "ip": "104.18.9.126",
        "statusCode": 200,
        "server": "cloudflare",
        "mediaType": "text/html",
        "contentEncoding": "br",
        "size": 214088,
        "encodedSize": 61200,
        "firstVisitedUtc": 1451606400,
        "previousVisitedUtc": 1756166400,
        "fetchedUtc": 1758844800,
        "title": "Notion Template Gallery",
        "canonical": "https://notion.so/templates",
        "language": "en",
        "charset": "utf-8",
        "internalLinks": 212,
        "externalLinks": 8,
        "imagesCount": 44,
        "wordsCount": 2104,
        "pageSpamScore": 1,
        "h1": [
          "Templates for every team"
        ],
        "h2": [
          "Product",
          "Engineering",
          "Marketing",
          "Design"
        ],
        "h3": [
          "Roadmap planner",
          "Sprint board"
        ],
        "platformTypes": [
          "software",
          "productivity"
        ],
        "socialTags": {
          "og:title": "Notion Template Gallery",
          "og:image": "https://notion.so/og.png"
        },
        "technologies": {
          "cdn": [
            "Cloudflare"
          ],
          "analytics": [
            "Segment"
          ]
        },
        "rank": 812,
        "backlinks": 41204,
        "spamScore": 2,
        "brokenBacklinks": 61,
        "brokenPages": 12,
        "referringDomains": 3210,
        "referringDomainsNofollow": 812,
        "referringMainDomains": 2988,
        "referringMainDomainsNofollow": 611,
        "referringIps": 2601,
        "referringSubnets": 1904,
        "referringPages": 9812,
        "referringPagesNofollow": 2104,
        "firstSeenUtc": 1451606400,
        "linksByTld": {
          "com": 2100,
          "io": 412
        },
        "linksByType": {
          "anchor": 40100
        },
        "linksByAttribute": {
          "nofollow": 8100
        },
        "linksByPlatformType": {
          "blogs": 31000
        },
        "linksBySemanticLocation": {
          "article": 38000
        },
        "linksByCountry": {
          "us": 29000
        }
      },
      {
        "url": "https://notion.so/product/ai",
        "domain": "notion.so",
        "mainDomain": "notion.so",
        "tld": "so",
        "ip": "104.18.9.126",
        "statusCode": 200,
        "server": "cloudflare",
        "title": "Notion AI",
        "canonical": "https://notion.so/product/ai",
        "language": "en",
        "internalLinks": 168,
        "externalLinks": 4,
        "imagesCount": 21,
        "wordsCount": 1420,
        "pageSpamScore": 1,
        "h1": [
          "Notion AI"
        ],
        "h2": [
          "Write faster",
          "Find answers instantly"
        ],
        "rank": 744,
        "backlinks": 18044,
        "referringDomains": 1902,
        "referringMainDomains": 1740,
        "referringPages": 4108,
        "firstSeenUtc": 1690848000
      },
      {
        "url": "https://notion.so/pricing",
        "domain": "notion.so",
        "mainDomain": "notion.so",
        "tld": "so",
        "statusCode": 200,
        "title": "Notion Pricing",
        "canonical": "https://notion.so/pricing",
        "language": "en",
        "internalLinks": 96,
        "externalLinks": 2,
        "wordsCount": 812,
        "h1": [
          "Pricing"
        ],
        "rank": 701,
        "backlinks": 9812,
        "referringDomains": 1104,
        "referringMainDomains": 988,
        "referringPages": 2601,
        "firstSeenUtc": 1420070400
      }
    ]
  }
}

完整的参数与响应参考:这个接口的每个字段、类型和示例。

参考

一个请求,一种响应结构。

你发送的每个字段和收到的每个字段,都附有真实示例。

最近验证于 2026-11-14 · 可用率和延迟按 30d 统计

请求体

JSON,POST 到这个接口。

  • targetstring

    notion.so

    要列出页面的域名或子域名,不要带协议或开头的 www。

  • includeSubdomainsboolean

    true

    除目标本身外,也统计指向目标子域名的链接。

  • limitinteger

    10

    最多返回的页面数量。按返回的结果数扣费,所以上限越低,费用越少。

  • statusenum

    live

    统计当前有效的反向链接、已丢失的反向链接,或两者都统计。

你发送。 一个简短的 JSON 请求体。显示的值只是示例,请换成你自己的。

响应

JSON,每个字段一个示例值。

each pagedata.pages[]

Pages of the domain with their backlink and on-page data. Populated whenever the provider has data for the entity.

  • backlinksinteger

    41204

    Backlinks counted. Populated whenever the provider has data for the entity.

  • brokenBacklinksinteger

    61

    Backlinks pointing at pages that no longer resolve.

  • brokenPagesinteger

    12

    Linked pages with an error status.

  • canonicalstring

    https://notion.so/templates

    Canonical URL declared by the page.

  • charsetstring

    utf-8

    Character set of the page.

  • contentEncodingstring

    br

    Content encoding of the response.

  • domainstring

    notion.so

    Host of the page. Populated whenever the provider has data for the entity.

  • encodedSizeinteger

    61200

    Encoded page size in bytes.

  • externalLinksinteger

    8

    Outbound links on the page.

  • fetchedUtcnumber

    1758844800

    When the page was last crawled. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • firstSeenUtcnumber

    1451606400

    When the first of these backlinks was seen. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • firstVisitedUtcnumber

    1451606400

    When the page was first crawled. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • h1string[]

    H1 headings on the page.

  • h2string[]

    H2 headings on the page.

  • h3string[]

    H3 headings on the page.

  • imagesCountinteger

    44

    Images on the page.

  • internalLinksinteger

    212

    Internal links on the page.

  • ipstring

    104.18.9.126

    IP address the page was fetched from.

  • languagestring

    en

    Language code of the page.

  • linksByAttributeobject

    Count of these backlinks, by rel attribute (nofollow, sponsored, ugc, noopener, and so on).

  • linksByCountryobject

    Count of these backlinks, by country code of the linking domain. An empty key means the country is unknown.

  • linksByPlatformTypeobject

    Count of these backlinks, by type of linking site (blogs, news, ecommerce, and so on).

  • linksBySemanticLocationobject

    Count of these backlinks, by the page section holding the link (article, footer, nav, and so on). An empty key means no section was detected.

  • linksByTldobject

    Count of these backlinks, by top-level domain of the linking page.

  • linksByTypeobject

    Count of these backlinks, by link type (anchor, image, redirect, canonical, alternate).

  • lostUtcnumber

    When the last of these backlinks was lost, if they were. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • mainDomainstring

    notion.so

    Registrable domain of the page.

  • mediaTypestring

    text/html

    Media type of the page.

  • pageSpamScoreinteger

    1

    Spam score of the page on a 0-100 scale.

  • platformTypesstring[]

    Site types detected, such as blogs, news, or ecommerce.

  • previousVisitedUtcnumber

    1756166400

    When the page was crawled before the last time. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • rankinteger

    812

    Authority rank on a 0-1000 scale. Populated whenever the provider has data for the entity.

  • referringDomainsinteger

    3210

    Distinct linking domains.

  • referringDomainsNofollowinteger

    812

    Linking domains whose every link is nofollow.

  • referringIpsinteger

    2601

    Distinct IP addresses of linking pages.

  • referringMainDomainsinteger

    2988

    Distinct linking registrable domains.

  • referringMainDomainsNofollowinteger

    611

    Linking registrable domains whose every link is nofollow.

  • referringPagesinteger

    9812

    Distinct linking pages.

  • referringPagesNofollowinteger

    2104

    Linking pages whose links are all nofollow.

  • referringSubnetsinteger

    1904

    Distinct subnets of linking pages.

  • serverstring

    cloudflare

    Web server or CDN serving the page.

  • sizeinteger

    214088

    Page size in bytes.

  • socialTagsobject

    Open Graph and Twitter card tags, by tag name.

  • spamScoreinteger

    2

    Average spam score of those backlinks on a 0-100 scale.

  • statusCodeinteger

    200

    HTTP status of the page on the last crawl.

  • technologiesobject

    Technologies detected on the page, by category.

  • titlestring

    Notion Template Gallery

    Page title.

  • tldstring

    so

    Top-level domain of the page.

  • urlstring

    https://notion.so/templates

    Page URL. Populated whenever the provider has data for the entity.

  • wordsCountinteger

    2104

    Words on the page.

datadata
  • totalCountinteger

    88213

    Total pages, before the limit. Populated whenever the provider has data for the entity.

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

你收到。 字段有名称、有类型,无论哪个数据源响应,结构都一样。

常见问题

关于 SEO 域名页面 API

AnyAPI 的 SEO 域名页面 API 只需一次 POST 请求 /v1/run/seo.domain_pages,就以统一格式的 JSON 返回 SEO 数据。通过 AnyAPI SEO 获取某个域名的页面,附带其反向链接概况(排名、反向链接数、引用域名数)和页面数据(标题、标题层级、字数、状态、技术),以标准化 JSON 返回。无论哪个数据源提供服务,AnyAPI 都返回同一套统一的 schema。费用:每千条结果 US$0.08,单次请求最多 US$0.0768,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 SEO 域名页面 API 调用中有 100.0% 成功,响应时间中位数为 4.5 秒,共测量 12 次调用。

费用:每千条结果 US$0.08,单次请求最多 US$0.0768,以美元计价,无需订阅,也没有每月最低消费。你只需为一个美元钱包充值,每次调用从中扣费。部分由钱包付费的失败请求会产生处理费用,我们按成本原价转嫁,不加价;错误响应会显示收取的金额。

通过 AnyAPI SEO 获取某个域名的页面,附带其反向链接概况(排名、反向链接数、引用域名数)和页面数据(标题、标题层级、字数、状态、技术),以标准化 JSON 返回。响应是统一格式的 JSON,外层结构与每个 AnyAPI 接口相同,所以解析另一个接口只需换一个 URL,别的都不用改。

过去 30 天,通过 AnyAPI 发起的 SEO 域名页面 API 调用中有 100.0% 成功,响应时间中位数为 4.5 秒,共测量 12 次调用。这些是 AnyAPI 对经过网关的流量的自有测量,持续重新计算,并非公开承诺的服务等级目标。

可以。新的 AnyAPI 账户自带 US$0.10 免费余额,无需绑卡,至少足够调用 1 次 SEO 域名页面,每次最多 US$0.0768。

向 https://api.getanyapi.com/v1/run/seo.domain_pages 发送 POST 请求,在 “Authorization: Bearer” 请求头中放入你的 AnyAPI 密钥,并以 JSON 请求体传入参数。同一个密钥和同一个钱包适用于所有 AnyAPI 接口。

不需要。你向一个预付费的 AnyAPI 余额充值美元,每个请求从中扣费。没有月度套餐,也没有最低消费,同一个余额可用于所有 AnyAPI 接口。

有。TypeScript 用 npm 安装 @getanyapi/sdk,Python 用 pip 安装 getanyapi。两者都用同一个密钥调用所有 AnyAPI 接口,任何 HTTP 客户端也都可以。

可以。智能体可以连接 https://api.getanyapi.com/mcp 上的 AnyAPI MCP 服务器,或者向 https://api.getanyapi.com/agent/signup 发送一次无需认证的 POST 来创建自己的免费试用密钥,再通过 HTTP 调用这个接口。