External Broken Links
All instances of external links where the target URL return a broken status code (400, 404, 410, 500, or 501).
Priority: Low
Impact: Negative
What issues it may cause
Users who visit the external links will land on a broken page resulting in a poor user experience.
How do you fix it
Update the links to point to working URLs, or remove them.
What is the positive impact
Users will have an improved user-experience which can help to build brand recognition and increased click-through rates from search engine results pages.
How to fetch the data for this report template
You will need to run a crawl for report template to generate report. When report has been generated and you have crawl id you can fetch data for the report using the following query:
- Query
- Variables
- cURL
query GetReportStatForCrawl(
$crawlId: ObjectID!
$reportTemplateCode: String!
$after: String
) {
getReportStat(
input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode}
) {
crawlLinks(after: $after, reportType: Basic) {
nodes {
urlTo
urlToTitle
anchorText
urlFrom
urlFromTitle
urlToDeeprank
urlFromDeeprank
urlToStatusCode
urlToDeeprank
urlFromStatusCode
urlFromDeeprank
}
totalCount
pageInfo {
endCursor
hasNextPage
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"broken_links_external"}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"query GetReportStatForCrawl( $crawlId: ObjectID! $reportTemplateCode: String! $after: String ) { getReportStat( input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode} ) { crawlLinks(after: $after, reportType: Basic) { nodes { urlTo urlToTitle anchorText urlFrom urlFromTitle urlToDeeprank urlFromDeeprank urlToStatusCode urlToDeeprank urlFromStatusCode urlFromDeeprank } totalCount pageInfo { endCursor hasNextPage } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"broken_links_external"}}' https://api.lumar.io/graphql