Forbes Pakistan

Developer Documentation

RSS Feed Integration Standards

Complete technical specifications for integrating your publication with Forbes Pakistan.

RSS Feed Integration Standards

Technical requirements for integrating agency content with the Forbes Pakistan platform via RSS 2.0.


1. Core Specification

Your feed must be valid RSS 2.0 with the following required namespace declarations:

<rss version="2.0"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:media="http://search.yahoo.com/mrss/">
NamespacePurposeRequired
contentFor article body (content:encoded)Yes
mediaFor featured image (media:content)Yes

Note: You may include additional namespaces (e.g., dc, atom) if needed for your system, but they are not required for Forbes Pakistan integration.


2. Channel Elements

The <channel> section describes your publication.

ElementDescriptionRequired
<title>Name of your agencyYes
<link>URL to your agency homepageYes
<description>Brief tagline or summaryYes
<language>Language code (e.g., en-us)Yes
<lastBuildDate>Timestamp of the last feed updateYes

3. Item Elements

Each article must be wrapped in an <item> tag.

ElementMaps ToDescriptionRequired
<title>titleArticle headline (plain text, max 500 chars)Yes
<guid>rssGuidUnique identifier for deduplicationYes
<content:encoded>contentFull article body in HTML (wrapped in CDATA)Yes
<link>sourceUrlPermanent URL to the original articleOptional
<pubDate>publishedAtPublication date in RFC 822 formatOptional
<description>excerptShort summary (plain text, 150-160 chars)Optional
<media:content>coverImageFeatured image URLOptional

Note: Optional elements are recommended for better SEO, attribution, and user experience. If <media:content> is missing, a gradient placeholder will be used.


4. Element Guidelines

4.1 Title

RuleRequirement
Character LimitMaximum 500 characters
FormatPlain text only, no HTML tags
StyleAvoid ALL-CAPS and trailing periods
SEOAim for 60-70 characters for optimal display

4.2 Link

RuleRequirement
FormatAbsolute URL (must start with https://)
ParametersAvoid UTM tracking parameters or session IDs
UsageSaved as canonical link for SEO attribution

4.3 GUID

RuleRequirement
UniquenessMust be unique across all articles in the feed
PermanenceOnce assigned, must never change
StabilityMust return same GUID on every request
RecommendedUse the article's permanent URL as the GUID
WarningChanging a GUID will cause duplicate imports

Stability Check: The RSS validator fetches your feed twice and compares GUIDs. If any GUID changes between requests, validation will fail. Random or timestamp-based GUIDs are not allowed.

4.4 Publication Date

RuleRequirement
FormatRFC 822 (e.g., Mon, 03 Feb 2025 09:30:00 +0000)
TimezoneMust include UTC offset (e.g., +0000, +0500)
UsageUsed for chronological sorting on the platform

4.5 Description

RuleRequirement
FormatPlain text only, no HTML
Length150-160 characters recommended
UsageSEO meta description and social sharing preview

5. Content Standards

5.1 Article Body

The <content:encoded> tag contains the full HTML content of your article.

RuleRequirement
WrapperMust be wrapped in CDATA: <![CDATA[ ... ]]>
HTML TagsAll standard HTML tags are supported
StylesInline CSS styles are allowed
ImagesImage src must be hosted URLs (no base64 data URIs)
EmbedsYouTube, Twitter, and other iframes are supported

5.2 Featured Image

The <media:content> tag defines the cover image for the post.

RuleRequirement
AttributeMust include url attribute with direct image link
FormatsAny standard image format (jpeg, png, webp, gif, etc.)
No Base64URL must point to a hosted file, not raw data
FallbackIf missing, a gradient placeholder will be used

Example:

<media:content url="https://example.com/image.jpg" medium="image" type="image/jpeg" />

6. Example Feed

See feed-sample.xml for a complete, compliant implementation.