Six Apart Developer Center

Developer Center Home » Atom » Protocol »

Retrieving an Atom Entry

Posted by Byrne Reese on January 23, 2006

To retrieve a single entry on a weblog in Atom format, one first needs to discover the URI from which to retrieve the entry. This URI is easily discovered by inspecting an Atom feed. Each <entry> element should contain a link relation entitled “service.edit”. By performing an HTTP GET against this URI, one will be able to retrieve a complete Atom representation of that post or resource.

Finding the service.edit URI for an Entry

The following demonstrates where in an Atom feed document one can find the URI that a client can then fetch a complete representation of an Atom resource contained within that feed. The following is an excerpt from an Atom feed document:

Notice the element:

The href attribute points to the URI from which you can retrieve a complete representation of this post. Once you have this URI, a client can then perform an HTTP GET against that URI to retrieve a complete Atom representation of the corresponding resource.

Sample Request

Sample Response

Perl Code Sample

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.