Analyze backlinks
analyze_backlinksAnalyze backlink profiles for any domain or page, returning summary metrics, 12-month history, and per-link rows flagged as new or lost. Optionally estimate costs first to control provider spending.
Instructions
Requires API write scope because cache misses spend the project's own DataForSEO budget. Returns summary metrics, 12-month history, and per-link rows with new or lost status. Snapshots are cached for 24 hours. Call with estimate_only first for a free dry run, then use max_cost_cents as a best-effort request guard. Compute aggregate views from rows and treat them as "within fetched rows" only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Return backlinks as provided or denoise to one backlink per referring domain. | |
| fresh | No | Bypass the current cached snapshot and request fresh provider data. | |
| target | Yes | Domain or full page URL to analyze. | |
| project_id | Yes | Project id whose provider budget and snapshot are used. | |
| result_limit | No | Maximum number of backlink rows to fetch: 100, 300, 500, or 1000. | |
| target_scope | No | Analyze the whole site or one page. The API infers the scope when omitted. | |
| estimate_only | No | Return a free cost estimate without calling the provider or spending budget. | |
| max_cost_cents | No | Best-effort maximum provider cost for this request, in cents. | |
| include_subdomains | No | Include backlinks to subdomains for site targets. Ignored for page targets. |