> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Moz

> Moz Links API: Domain Authority, Page Authority, backlinks, anchor text, linking domains and top pages.

![](https://mintcdn.com/webrouter/JBFYvcRI1PVnd4YX/logo/data-apis/moz.webp?fit=max\&auto=format\&n=JBFYvcRI1PVnd4YX\&q=85\&s=18160a2148d16642d1fffdc46648ddc6)

[Web Catalog · SEO](https://docs.webrouter.net/data-apis.md?category=seo)

Needs&#x20;

`MOZ_API_TOKEN`

Endpoints

9

Auth

Key in header

[Vendor docs](https://moz.com/help/links-api)

## Setup

| Variable | | What it is |
| - | - | - |
| `MOZ_API_TOKEN` | required | a Moz API token (Moz API dashboard at moz.com/api/dashboard, + Add Token) |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every call is a POST with a JSON body to [https://lsapi.seomoz.com/v2/\&lt;endpoint](https://lsapi.seomoz.com/v2/\&lt;endpoint)>, including reads.
* Usage is counted in rows, not requests. Free access allows one request every ten seconds and 50 rows a month; paid plans bill overage. Some endpoints are weighted (see each note).
* Lists paginate with limit (1-50, default 25) and next\_token.
* Written from Moz's Links API V2 help pages, which Moz labels legacy now that all Moz API endpoints are in one unified API; the Links V2 pages remain published, and the token is the documented credential for them. Older accounts can use HTTP Basic (Access ID and Secret Key) instead; this entry uses the token.

## Endpoints

POST

URL metrics

Domain Authority, Page Authority, Spam Score, link counts and more for up to 50 URLs.

[Open](#moz-links-url-metrics)

POST

Links to a target

Individual links pointing at a page, subdomain or root domain, with anchor text and first and last seen dates.

[Open](#moz-links-links)

POST

Anchor text to a target

Anchor texts used in links to a target, with referring root domain and page counts.

[Open](#moz-links-anchor-text)

POST

Linking root domains

Root domains that link to a target, with their Domain Authority, spam score and link counts.

[Open](#moz-links-linking-root-domains)

POST

Top pages on a domain

A domain's strongest pages by Page Authority, with their metrics.

[Open](#moz-links-top-pages)

POST

Link intersect

Sources that link to some targets but not others, for finding link-building opportunities.

[Open](#moz-links-link-intersect)

POST

Link status

Whether each of up to 50 sources links to a target.

[Open](#moz-links-link-status)

POST

Index metadata

Information about the current Links index. Send an empty body.

[Open](#moz-links-index-metadata)

POST

Usage data

Rows consumed in a time period (default: the current month).

[Open](#moz-account-usage-data)

### URL metrics

POST

`/url_metrics`

`moz.links.url_metrics`

Domain Authority, Page Authority, Spam Score, link counts and more for up to 50 URLs.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`targets` required</td><td>array</td><td>body</td><td>Up to 50 URLs, subdomains or root domains. Example `["moz.com"]`</td></tr>

    <tr>
      <td>
        `daily_history_deltas`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Metrics to return daily history for, as dated gains and losses.
      </td>
    </tr>

    <tr>
      <td>
        `daily_history_values`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Metrics to return daily history for, as date and value pairs.
      </td>
    </tr>

    <tr>
      <td>
        `monthly_history_deltas`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Metrics to return 32 months of history for, as gains and losses.
      </td>
    </tr>

    <tr>
      <td>
        `monthly_history_values`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Metrics to return 32 months of history for, as date and value pairs.
      </td>
    </tr>

    <tr>
      <td>
        `distributions`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        true adds link distribution metrics.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://moz.com/help/links-api/making-calls/url-metrics) · Same job: [Adyntel](https://docs.webrouter.net/data-apis/adyntel.md#adyntel-domain-keywords), [Ahrefs](https://docs.webrouter.net/data-apis/ahrefs.md#ahrefs-metrics), [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-traffic), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-company-web-traffic), [Keywords Everywhere](https://docs.webrouter.net/data-apis/keywordseverywhere.md#keywordseverywhere-domain-traffic), [Majestic](https://docs.webrouter.net/data-apis/majestic.md#majestic-index-item-info)

```python Python theme={null}
router.call_data_api("moz.links.url_metrics", {'targets': ['moz.com']})
```

```text MCP theme={null}
call_data_api(endpoint="moz.links.url_metrics", params={"targets": ["moz.com"]})
```

> [!NOTE]
>
> * A read over POST: Moz Links V2 takes every call as POST with a JSON body, and nothing is changed.
> * Weighted: one row per call with no options; each history metric requested and distributions=true each add one row to usage.
> * You cannot pick metrics; all are returned for each target.

### Links to a target

POST

`/links`

`moz.links.links`

Individual links pointing at a page, subdomain or root domain, with anchor text and first and last seen dates.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`target` required</td><td>string</td><td>body</td><td>The URL to get links for. Example `moz.com/blog`</td></tr>
    <tr><td>`target_scope`</td><td>string</td><td>body</td><td>Scope of the target. Default page. One of `page`, `subdomain`, `root_domain`</td></tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Sort order, descending. Default source\_page\_authority; see the docs page for the valid values per scope.
      </td>
    </tr>

    <tr>
      <td>
        `anchor_text`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Only links whose normalized anchor text matches.
      </td>
    </tr>

    <tr>
      <td>
        `source_root_domain`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Only links from this source root domain.
      </td>
    </tr>

    <tr><td>`source_scope`</td><td>string</td><td>body</td><td>With subdomain or root\_domain, return only the best link from each source at that scope. Default page. One of `page`, `subdomain`, `root_domain`</td></tr>
    <tr><td>`limit`</td><td>integer</td><td>body</td><td>Maximum results, 1-50. Default 25. Example `25`</td></tr>

    <tr>
      <td>
        `next_token`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        next\_token from a previous answer; send it to get the next page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://moz.com/help/links-api/making-calls/links) · Same job: [Ahrefs](https://docs.webrouter.net/data-apis/ahrefs.md#ahrefs-backlinks), [Bing Webmaster Tools](https://docs.webrouter.net/data-apis/bing-webmaster.md#bing-webmaster-links-counts), [Keywords Everywhere](https://docs.webrouter.net/data-apis/keywordseverywhere.md#keywordseverywhere-domain-backlinks), [Majestic](https://docs.webrouter.net/data-apis/majestic.md#majestic-backlinks-list), [Mangools](https://docs.webrouter.net/data-apis/mangools.md#mangools-links-list), [Semrush](https://docs.webrouter.net/data-apis/semrush.md#semrush-backlinks-list)

```python Python theme={null}
router.call_data_api("moz.links.links", {'target': 'moz.com/blog', 'limit': 25})
```

```text MCP theme={null}
call_data_api(endpoint="moz.links.links", params={"target": "moz.com/blog", "limit": 25})
```

> [!NOTE]
>
> * A read over POST: Moz Links V2 takes every call as POST with a JSON body, and nothing is changed.
> * One row of usage per link returned. Paginate with next\_token.

### Anchor text to a target

POST

`/anchor_text`

`moz.links.anchor_text`

Anchor texts used in links to a target, with referring root domain and page counts.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`target` required</td><td>string</td><td>body</td><td>The target to get anchor text for. Example `moz.com/blog`</td></tr>
    <tr><td>`scope`</td><td>string</td><td>body</td><td>Scope of links to the target. Default page. One of `page`, `subdomain`, `root_domain`</td></tr>
    <tr><td>`limit`</td><td>integer</td><td>body</td><td>Maximum results, 1-50. Default 25. Example `25`</td></tr>

    <tr>
      <td>
        `next_token`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        next\_token from a previous answer; send it to get the next page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://moz.com/help/links-api/making-calls/anchor-text) · Same job: [Majestic](https://docs.webrouter.net/data-apis/majestic.md#majestic-backlinks-anchor-text), [Semrush](https://docs.webrouter.net/data-apis/semrush.md#semrush-backlinks-anchors), [SE Ranking](https://docs.webrouter.net/data-apis/seranking.md#seranking-backlinks-anchors)

```python Python theme={null}
router.call_data_api("moz.links.anchor_text", {'target': 'moz.com/blog', 'limit': 25})
```

```text MCP theme={null}
call_data_api(endpoint="moz.links.anchor_text", params={"target": "moz.com/blog", "limit": 25})
```

> [!NOTE]
>
> * A read over POST: Moz Links V2 takes every call as POST with a JSON body, and nothing is changed.

### Linking root domains

POST

`/linking_root_domains`

`moz.links.linking_root_domains`

Root domains that link to a target, with their Domain Authority, spam score and link counts.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`target` required</td><td>string</td><td>body</td><td>A URL to get linking root domains for. Example `moz.com/blog`</td></tr>
    <tr><td>`target_scope`</td><td>string</td><td>body</td><td>Scope of the target. Default page. One of `page`, `subdomain`, `root_domain`</td></tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Sort order, descending. Default source\_domain\_authority; date\_gained and date\_lost sort newest first.
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Filter expression such as external or external+follow. Default external.
      </td>
    </tr>

    <tr>
      <td>
        `begin_date`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        With sort date\_gained or date\_lost: earliest date, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `end_date`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        With sort date\_gained or date\_lost: latest date, YYYY-MM-DD.
      </td>
    </tr>

    <tr><td>`limit`</td><td>integer</td><td>body</td><td>Maximum results, 1-50. Default 25. Example `25`</td></tr>

    <tr>
      <td>
        `next_token`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        next\_token from a previous answer; send it to get the next page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://moz.com/help/links-api/making-calls/linking-root-domains) · Same job: [Ahrefs](https://docs.webrouter.net/data-apis/ahrefs.md#ahrefs-refdomains), [Majestic](https://docs.webrouter.net/data-apis/majestic.md#majestic-backlinks-refdomains), [Semrush](https://docs.webrouter.net/data-apis/semrush.md#semrush-backlinks-refdomains), [SE Ranking](https://docs.webrouter.net/data-apis/seranking.md#seranking-backlinks-refdomains), [Similarweb](https://docs.webrouter.net/data-apis/similarweb.md#similarweb-traffic-referrals)

```python Python theme={null}
router.call_data_api("moz.links.linking_root_domains", {'target': 'moz.com/blog', 'limit': 25})
```

```text MCP theme={null}
call_data_api(endpoint="moz.links.linking_root_domains", params={"target": "moz.com/blog", "limit": 25})
```

> [!NOTE]
>
> * A read over POST: Moz Links V2 takes every call as POST with a JSON body, and nothing is changed.

### Top pages on a domain

POST

`/top_pages`

`moz.links.top_pages`

A domain's strongest pages by Page Authority, with their metrics.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`target` required</td><td>string</td><td>body</td><td>The domain to return top pages for. Example `moz.com`</td></tr>
    <tr><td>`scope`</td><td>string</td><td>body</td><td>Scope of the target. Default root\_domain. One of `subdomain`, `root_domain`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>body</td><td>Sort order, descending. Default page\_authority. One of `page_authority`, `root_domains_to_page`, `external_pages_to_page`</td></tr>
    <tr><td>`filter`</td><td>string</td><td>body</td><td>Only pages whose last crawl returned this status. Default all. One of `all`, `status_200`, `status_301`, `status_302`, `status_4xx`, `status_5xx`</td></tr>
    <tr><td>`limit`</td><td>integer</td><td>body</td><td>Maximum results, 1-50. Default 25. Example `25`</td></tr>

    <tr>
      <td>
        `next_token`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        next\_token from a previous answer; send it to get the next page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://moz.com/help/links-api/making-calls/top-pages) · Same job: [Ahrefs](https://docs.webrouter.net/data-apis/ahrefs.md#ahrefs-top-pages), [Majestic](https://docs.webrouter.net/data-apis/majestic.md#majestic-domain-top-pages), [Mangools](https://docs.webrouter.net/data-apis/mangools.md#mangools-site-top-content), [SpyFu](https://docs.webrouter.net/data-apis/spyfu.md#spyfu-seo-top-pages)

```python Python theme={null}
router.call_data_api("moz.links.top_pages", {'target': 'moz.com', 'limit': 25})
```

```text MCP theme={null}
call_data_api(endpoint="moz.links.top_pages", params={"target": "moz.com", "limit": 25})
```

> [!NOTE]
>
> * A read over POST: Moz Links V2 takes every call as POST with a JSON body, and nothing is changed.

### Link intersect

POST

`/link_intersect`

`moz.links.link_intersect`

Sources that link to some targets but not others, for finding link-building opportunities.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`positive_targets` required</td><td>array</td><td>body</td><td>Targets whose linkers you want, as \{target, scope} objects. Together with negative\_targets, up to 6 targets. Example `[{"target": "latimes.com", "scope": "root_domain"}]`</td></tr>
    <tr><td>`negative_targets`</td><td>array</td><td>body</td><td>Targets whose linkers to exclude, as \{target, scope} objects. Example `[{"target": "moz.com", "scope": "root_domain"}]`</td></tr>

    <tr>
      <td>
        `min_matching_targets`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Only sources that link to at least this many positive targets.
      </td>
    </tr>

    <tr><td>`source_scope`</td><td>string</td><td>body</td><td>Scope of sources returned. Default page. One of `page`, `root_domain`</td></tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Sort order, descending. Default matching\_target\_count.
      </td>
    </tr>

    <tr><td>`limit`</td><td>integer</td><td>body</td><td>Maximum results; at most 50. Example `25`</td></tr>

    <tr>
      <td>
        `next_token`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        next\_token from a previous answer; send it to get the next page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://moz.com/help/links-api/making-calls/link-intersect)

```python Python theme={null}
router.call_data_api("moz.links.link_intersect", {'positive_targets': [{'target': 'latimes.com', 'scope': 'root_domain'}], 'negative_targets': [{'target': 'moz.com', 'scope': 'root_domain'}], 'limit': 25})
```

```text MCP theme={null}
call_data_api(endpoint="moz.links.link_intersect", params={"positive_targets": [{"target": "latimes.com", "scope": "root_domain"}], "negative_targets": [{"target": "moz.com", "scope": "root_domain"}], "limit": 25})
```

> [!NOTE]
>
> * A read over POST: Moz Links V2 takes every call as POST with a JSON body, and nothing is changed.
> * Weighted: each returned row counts as 5 rows of usage (a limit of 50 can use 250).

### Link status

POST

`/link_status`

`moz.links.link_status`

Whether each of up to 50 sources links to a target.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`sources` required</td><td>array</td><td>body</td><td>Up to 50 sources to check. Example `["twitter.com", "linkedin.com"]`</td></tr>
    <tr><td>`target` required</td><td>string</td><td>body</td><td>The target to check links to. Example `moz.com/blog`</td></tr>
    <tr><td>`target_scope`</td><td>string</td><td>body</td><td>Scope of the target. Default page. One of `page`, `subdomain`, `root_domain`</td></tr>
    <tr><td>`source_scope`</td><td>string</td><td>body</td><td>Scope of each source. Default page. One of `page`, `subdomain`, `root_domain`</td></tr>
  </tbody>
</table>

[Vendor docs](https://moz.com/help/links-api/making-calls/link-status)

```python Python theme={null}
router.call_data_api("moz.links.link_status", {'sources': ['twitter.com', 'linkedin.com'], 'target': 'moz.com/blog'})
```

```text MCP theme={null}
call_data_api(endpoint="moz.links.link_status", params={"sources": ["twitter.com", "linkedin.com"], "target": "moz.com/blog"})
```

> [!NOTE]
>
> * A read over POST: Moz Links V2 takes every call as POST with a JSON body, and nothing is changed.
> * Weighted: each source counts as 2 rows of usage.

### Index metadata

POST

`/index_metadata`

`moz.links.index_metadata`

Information about the current Links index. Send an empty body.

Input

No inputs.

[Vendor docs](https://moz.com/help/links-api/making-calls/index-metadata) · Same job: [Bing Webmaster Tools](https://docs.webrouter.net/data-apis/bing-webmaster.md#bing-webmaster-urls-info), [ChEMBL](https://docs.webrouter.net/data-apis/chembl.md#chembl-status), [HGNC (HUGO Gene Nomenclature Committee)](https://docs.webrouter.net/data-apis/hgnc.md#hgnc-info), [Internet Archive](https://docs.webrouter.net/data-apis/internet-archive.md#internet-archive-metadata-get), [Library of Congress loc.gov API](https://docs.webrouter.net/data-apis/loc-gov.md#loc-gov-item-get), [STRING](https://docs.webrouter.net/data-apis/string-db.md#string-db-version-get)

```python Python theme={null}
router.call_data_api("moz.links.index_metadata")
```

```text MCP theme={null}
call_data_api(endpoint="moz.links.index_metadata")
```

> [!NOTE]
>
> * A read over POST: Moz Links V2 takes every call as POST with a JSON body, and nothing is changed.

### Usage data

POST

`/usage_data`

`moz.account.usage_data`

Rows consumed in a time period (default: the current month).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`start`</td><td>string</td><td>body</td><td>Period start as Unix seconds, passed as a string. Default: start of this month. Example `1762560000`</td></tr>
    <tr><td>`end`</td><td>string</td><td>body</td><td>Period end as Unix seconds, passed as a string. Default: now. Example `1762646400`</td></tr>
  </tbody>
</table>

[Vendor docs](https://moz.com/help/links-api/making-calls/usage-data)

```python Python theme={null}
router.call_data_api("moz.account.usage_data", {'start': '1762560000', 'end': '1762646400'})
```

```text MCP theme={null}
call_data_api(endpoint="moz.account.usage_data", params={"start": "1762560000", "end": "1762646400"})
```

> [!NOTE]
>
> * A read over POST: Moz Links V2 takes every call as POST with a JSON body, and nothing is changed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.