What are Feeds ~ RSS and ATOM Feed Specifications

by Emanuela Hedrick.

Share
|
Homepage | Submit your article | Contact | TOS
More articles on apis and web feeds  

You are here: Categories » Internet » APIs and Web Feeds

You can think of feeds as small modules of information that can be plugged into existing websites, consumed by clients on their desktop, or consumed by aggregators to be presented by users with other feeds. Aggregators also offer searching functionality to users, allowing new users to locate your site and feed (a great reason to provide a feed in the first place).

  • Websites such as Yahoo! produce web feeds.

  • Software that downloads and uses feeds is said to consume or aggregate feeds.

  • Sites such as Google News that retrieve feeds from a number of sources and display selected items are called aggregators.

Most feeds are provided in one of two formats, either RSS (Rich Site Summary, or RDF Site Summary, depending on who you ask) or Atom. These formats provide standardized ways for information to be presented, such as templates for the content providers to stick their information into. The use of these standard display formats by different (and otherwise competing) websites has been a major component of the success of feeds, because a piece of software need only be written once, and it can consume the relevant information from a wide variety of different sites.

RSS

RSS is likely the more prevalent format on the Web. It was originally developed by Netscape to give content providers an easy way to have their information plugged into their My Netscape portal (a user-configurable homepage that contains news sources selected by the user). Further versions were developed by others until the 2.0 specification was released and declared to be the final version in the series. Most sites using RSS either provide a feed in 0.91 or 2.0 — I have yet to find a site only providing a feed in the 1.0 version of the spec.

Complete Feed Specifications

RSS 0.91

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title></title>
<link></link>
<description></description>
<language></language>
<copyright></copyright>
<managingEditor></managingEditor>
<webMaster></webMaster>
<pubDate></pubDate>
<lastBuildDate></lastBuildDate>
<docs></docs>
<image>
<url></url>
<title></title>
<link></link>
<width></width>
<height></height>

<description></description>
</image>
<rating></rating>
<textInput></textInput>
<title></title>
<description></description>
<name><name>
<link></link>
</textInput>
<skipHours></skipHours>
<skipDays></skipDays>
<item>*
<title></title>
<link></link>
<description></description>
</item>
</channel>

RSS 1.0

<?xml version="1.0"?>
<rss version="1.0">
<channel>
<title></title>
<link></link>
<description></description>
<image>
<url></url>
<title></title>
<link></link>
</image>
<textInput></textInput>
<title></title>
<description></description>
<name><name>
<link></link>
</textInput>
<item>*
<title></title>
<link></link>
<description></description>
</item>
</channel>

RSS 2.0

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title></title>
<link></link>
<description></description>
<language></language>

<copyright></copyright>
<managingEditor></managingEditor>
<webMaster></webMaster>
<pubDate></pubDate>
<lastBuildDate></lastBuildDate>
<category></category>
<generator></generator>
<docs></docs>
<cloud domain="" port="" path="" registerProcedure="" protocol="" />
<ttl></ttl>
<image>
<url></url>
<title></title>
<link></link>
<width></width>
<height></height>
<description></description>
</image>
<rating></rating>
<textInput></textInput>
<title></title>
<description></description>
<name><name>
<link></link>
</textInput>
<skipHours></skipHours>
<skipDays></skipDays>
<item>*
<title></title>
<link></link>
<description></description>
<author></author>
<category domain=""> </category>
<comments></comments>
<enclosure url="" length="" type="" />
<guid></guid>
<pubDate></pubDate>
<source url=""></source>
</item>
</channel>

Atom

Atom was developed after RSS to resolve perceived failings of the now complete RSS specification. It makes more extensive use of namespacing for all of its elements, and currently sits at predraft status for its 0.3 state, where it has sat since late 2003. Despite all the warnings in the specification about not using it until it is officially released, most sites and aggregators offering Atom support make use of the 0.3 version of the spec.

<?xml version="1.0"encoding="utf-8"?>
<feed version="0.3"xmlns="http://purl.org/atom/ns#">
<title>dive into mark</title>
<link rel="alternate" type="text/html"
href="http://e-articles.info/"/>
<modified>2003-12-13T18:30:02Z</modified>
<author>
<name>Mark Pilgrim</name>
</author>
<entry>
<title>Atom 0.3 snapshot</title>

<link rel="alternate" type="text/html"
href="http://e-articles.info/2003/12/13/atom03"/>
<id>tag:e-articles.info,2003:3.2397</id>
<issued>2003-12-13T08:29:29-04:00</issued>
<modified>2003-12-13T18:30:02Z</modified>
</entry>
</feed>

Leave a comment or ask a question
Total comments: 0

APIs and Web Feeds Disclaimer

  • The e-articles directory is not responsible for any and all copyright infringements by writers and authors. If you suspect the information contained by this page for any copyright infringements, please contact us to investigate the issue
Introduction to Web APIs ~ REST vs SOAP - When interacting with web services, generally the choice of which method to use will be made for you. The majority of services operate in either REST or SOAP, not both (Amazon is a notable exceptio (more...)
Important Considerations When Using Feeds - XML feeds provide a great resource of information, but their use is not without its own special considerations. Security and legal concerns go hand in hand whether you are producing or consuming (more...)
Advantages and Disadvantages of Client Side Certificates - The API server can generate a certificate and provide it to the client via a secure channel before any requests are made. This certificate is then used in the authentication process; this confirms (more...)
How to implement the REST technology - There are two sides to this tale, the first is how to generate legitimate REST requests, and the second is how to handle the responses correctly. Generating Requests When i (more...)
Why Do You Need to Produce Feeds - Feeds have several advantages, primarily related to consumption, over traditional HTML formats. Many desktop applications are devoted to reading feeds at regular intervals, and many of the new batc (more...)
How REST Works - Generally speaking, a REST request will involve sending a request to a special URL (similar to what you would see after filling out a form using the GET method), then receiving an XML document cont (more...)
How SOAP Works - A SOAP request will involve creating and populating a request envelope, which contains all the required information (as specified by the WSDL document), transmitting that envelope to the API server (more...)
Developing a Datafeed Strategy - What’s the best way to get started with your datafeed marketing? Have a datafeed party! What’s a datafeed party? As first reported in eBay Motors, a datafeed party does not refer to (more...)

 
free content
    Copyright © 2006 - 2012 e-articles.info.
The texts, articles and tutorials in the directory are property of their respective owners and authors.