Google Webfinger

This is pretty old news, but I missed the original announcement and I think it’s pretty interesting.

Google have implemented an alpha of the WebFinger protocol. If you have a Google profile, click on “Edit your profile” and add ‘webfingeralpha’ as an interest. Congrats, your gmail address is now a WebFinger identifier and will resolve to an XRD file containing information about services you use (if you’ve included that information in your Google profile).

This is pretty fun to play around with. Given an email-like identifier, such as, get the host-meta XRD file for the domain:

paul@knuth ~ $ curl -i
HTTP/1.1 200 OK
Content-Type: application/xrd+xml
Transfer-Encoding: chunked
Date: Mon, 01 Feb 2010 12:36:47 GMT
Expires: Mon, 01 Feb 2010 12:36:47 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Server: GFE/2.0
<?xml version='1.0' encoding='UTF-8'?>
<!-- NOTE: this host-meta end-point is a pre-alpha work in progress.   Don't rely on it. -->
<!-- Please follow the list at -->
<XRD xmlns='' 
<hm:Host xmlns=''><;/hm:Host>
<Link rel='lrdd' 
	<Title>Resource Descriptor<;/Title>

Now that you have the URI template, get the XRD file for the specific user:

curl ""

And the response:

<?xml version='1.0'?>
<XRD xmlns=''>
	<Link rel='' href=''/>
	<Link rel='' href='' type='text/html'/>
	<Link rel='' href='' type='text/html'/>
	<Link rel='' href='' type='text/html'/>
	<Link rel='' href=''/>
	<Link rel='describedby' href='' type='text/html'/>
	<Link rel='describedby' href=';fmt=foaf' type='application/rdf+xml'/>

EDIT: Google have since rolled out WebFinger support for everyone with a Google Profile. You no longer need to add ‘webfingeralpha’ to your interests.

comments powered by Disqus