This can be accomplished without an API by checking the headers after following the link. They're usually just 301 redirects. This is a nice example of API integration though.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.