Redirecting Images
Images that are linked or embedded on your website that are redirecting to a different URL
Priority: Low
Impact: Negative
What issues it may causeโ
These images may take slightly longer to load and use additonal crawl budget because redirecting images result in web browsers and search engine crawlers having to make an additional requests to retrieve these images.
How do you fix itโ
Update all redirecting image links so they point to the final image URL that responds with 200 status code.
What is the positive impactโ
Fixing redirecting images should improve page load time and save crawl budget.
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 GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) {
getCrawl(id: $crawlId) {
reportsByCode(
input: {
reportTypeCodes: Basic
reportTemplateCodes: [$reportTemplateCode]
}
) {
rows {
nodes {
... on CrawlUrls {
url
description
foundAtUrl
level
deeprank
fileExtension
headerContentType
htmlSize
foundInGoogleAnalytics
foundInGoogleSearchConsole
foundInBacklinks
foundInList
foundInLogSummary
foundInWebCrawl
foundInSitemap
}
}
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"redirecting_image_urls"}
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 GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) { getCrawl(id: $crawlId) { reportsByCode( input: { reportTypeCodes: Basic reportTemplateCodes: [$reportTemplateCode] } ) { rows { nodes { ... on CrawlUrls { url description foundAtUrl level deeprank fileExtension headerContentType htmlSize foundInGoogleAnalytics foundInGoogleSearchConsole foundInBacklinks foundInList foundInLogSummary foundInWebCrawl foundInSitemap } } } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"redirecting_image_urls"}}' https://api.lumar.io/graphql