Analyze backlinks
analyze_backlinksFetch backlink snapshots for a domain or page, showing summary metrics and per-link rows with new or lost status; run a free cost estimate before spending project budget.
Instructions
Requires API write scope because cache misses spend the project's own DataForSEO budget. Successful snapshots contain summary metrics and per-link rows with new or lost status. Optional 12-month history may be unavailable: history_unavailable marks a history failure with confirmed cost while summary and links remain available. With unknown accounting, the response remains failed (isError) and may retain a completed summary as current-response evidence, with cost_cents null and rows_status not_requested. This evidence is not a cached snapshot or a settled total and does not survive reload. Successful 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. |