Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Every call is a POST with a JSON body to https://lsapi.seomoz.com/v2/<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
URL metrics
- 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
- 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
- A read over POST: Moz Links V2 takes every call as POST with a JSON body, and nothing is changed.
Linking root domains
- 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
- A read over POST: Moz Links V2 takes every call as POST with a JSON body, and nothing is changed.
Link intersect
- 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
- 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
- A read over POST: Moz Links V2 takes every call as POST with a JSON body, and nothing is changed.
Usage data
- A read over POST: Moz Links V2 takes every call as POST with a JSON body, and nothing is changed.