Put follow_redirects=False in the fetch function, then find the location of the first redirect from the "location" header in the response, like this:
response = urlfetch.fetch(your_url, follow_redirects=False) location = response.headers['Location']
source share