4 ms·
Yes, that's correct. The API returns JSON data showing the final destination and status. If there were redirects, you'd see multiple entries in the array.
by proxyguru 2y ago
Yes, that's correct. The API returns JSON data showing the final destination and status. If there were redirects, you'd see multiple entries in the array.
- KomoD 2y agoExample: [ { "url": "https://bit.ly/abc", "host": "bit.ly", "status": 301, "statusText": "Moved Permanently", "duration": "0.156 s", "location": "http://www.yahoo.com/" }, { "url": "http://www.yahoo.com/", "host": "www.yahoo.com", "status": 301, "statusText": "Moved Permanently", "duration": "0.081 s", "location": "https://www.yahoo.com/" }, { "url": "https://www.yahoo.com/", "host": "www.yahoo.com", "status": 200, "statusText": "OK", "duration": "0.488 s", "location": null } ] Redirected from bit.ly to HTTP yahoo.com and then redirected to HTTPS yahoo.com