Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- API access needs an eligible paid plan; other plans only get a limited set of free test queries.
- Billing is in API units: each request costs max(50, per-row cost x rows), where a field costs 1 unit by default and some metrics 5 or 10. Select few columns and set limit.
- 60 requests per minute by default; 429 also comes from load-based throttling.
- Most site-explorer and keyword calls require select (columns) and date; dates are YYYY-MM-DD.
Endpoints
Get Domain Rating
Get site organic and paid metrics
Get backlink totals
List backlinks
- Cost grows with rows x columns: select only the columns needed and set limit.
List referring domains
List organic keywords
List top pages by traffic
Get keyword metrics
Find matching keyword ideas
- limit max is 150000; each row costs units.
Get API limits and usage
- Free: consumes no API units.