get_audit_internal_links
Internal Link Report: outbound/inbound internal link counts per page, orphan pages, dead ends, and click-depth distribution for a project's latest completed crawl (or a named earlier one). No new computation — reads the same audit_pages/audit_issues columns already powering the in-app internal-links page. INTERNAL LINKS ONLY. External links are explicitly out of scope: an external link graph needs data this codebase does not collect. totals.externalLinkOccurrences is the one external-facing number here — a raw per-page outbound tally, never a graph. ALWAYS narrow on state first: no_audit (no completed crawl yet), signal_not_captured (a crawl exists but its link counts predate the inbound-link/click-depth migration or were otherwise never computed — an absence of data, NOT a site with no internal links), analysed. notDerivable is returned with every state and lists what this report can never compute from what is stored, and why. Free — charges no credits, makes no external call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auditId | No | Audit ID, from crawl_site or get_crawl_results. Omitted means the latest completed audit for this project. | |
| projectId | Yes | Required. The MisarSEO project ID to scope this call to. Get one from list_projects. |