Blog/

RSS feed JSON

RSS feed JSON
RSS (RDF Site Summary or Really Simple Syndication) is a web feed that allows users and applications to access updates to websites in a standardized, computer-readable format. Subscribing to RSS feeds can allow a user to keep track of many different websites in a single news aggregator.

JSON Data:

1{ 2 "rss": { 3 "@version": "2.0", 4 "@xmlns:content": "http://purl.org/rss/1.0/modules/content/", 5 "@xmlns:wfw": "http://wellformedweb.org/CommentAPI/", 6 "@xmlns:dc": "http://purl.org/dc/elements/1.1/", 7 "@xmlns:atom": "http://www.w3.org/2005/Atom", 8 "channel": { 9 "title": "Sample RSS Feed", 10 "link": "https://www.example.com", 11 "description": "This is a sample RSS feed for demonstration purposes.", 12 "item": [ 13 { 14 "title": "First article", 15 "link": "https://www.example.com/first-article", 16 "description": "This is the first article in the sample RSS feed.", 17 "pubDate": "2022-12-31T00:00:00Z", 18 "guid": { 19 "@isPermaLink": "true", 20 "#text": "https://www.example.com/first-article" 21 }, 22 "content:encoded": "This is the first article in the sample RSS feed. It contains some <em>formatted</em> text." 23 }, 24 { 25 "title": "Second article", 26 "link": "https://www.example.com/second-article", 27 "description": "This is the second article in the sample RSS feed.", 28 "pubDate": "2022-12-30T00:00:00Z", 29 "guid": { 30 "@isPermaLink": "true", 31 "#text": "https://www.example.com/second-article" 32 }, 33 "content:encoded": "This is the second article in the sample RSS feed. It contains some <strong>bold</strong> text." 34 } 35 ] 36 } 37 } 38} 39

 

Description:

This JSON represents an RSS feed, a format for syndicating web content. Let's go through the different parts of the JSON:

  • The top-level object is a rss object. This represents the entire RSS feed.

  • The @version attribute specifies the version of the RSS specification being used (2.0).

  • The @xmlns:content, @xmlns:wfw, @xmlns:dc, and @xmlns:atom attributes specify additional XML namespaces that may be used within the feed.

  • The channel object represents the channel that the feed is associated with. A channel typically represents a website or blog that is publishing content.

  • The title attribute of the channel object specifies the title of the feed.

  • The link attribute of the channel object specifies the URL of the website or blog associated with the feed.

  • The description attribute of the channel object provides a brief description of the content of the feed.

  • The item array contains a list of individual items in the feed, each of which represents a single article or piece of content.

  • Each item object has a title, link, and description attribute that provides information about the content of the article.

  • The pubDate attribute specifies the date and time that the article was published.

  • The guid object provides a globally unique identifier for the article. The @isPermaLink attribute specifies whether the #text value represents a permanent URL for the article.

  • The content:encoded attribute provides the full HTML content of the article. This attribute is typically used when the article contains formatted or styled text that cannot be represented in plain text.

episyche logo

Developed by

Episyche Technologies

Copyright © 2022-2024 Episyche Technologies. All rights reserved.

twitter
linkedin