Follow redirects and detect domain hijacking
GET /v1/redirects?url=example.com
A redirect chain is the sequence of HTTP redirects (301, 302, 307, 308) that occur when navigating from one URL to another. Too many redirects can slow down your site and hurt SEO.
Google recommends keeping redirect chains to a minimum. Ideally, use direct redirects (1 hop). Chains longer than 3-5 redirects can cause performance and crawling issues.
301 is permanent (search engines transfer ranking signals), 302 is temporary (original URL keeps its ranking). Use 301 for permanent domain changes, 302 for temporary maintenance.