ในแต่ละหมวดของการเผยแพร่บทความจะมี RSS feed ของตัวเองได้ ซึ่งผู้ใช้งานสามารถเข้าถึงได้โดยการเพิ่ม /feed/
ที่ส่วนท้ายของ URL ตัวอย่างเช่น
https://portal-staging.info.go.th/feed
https://portal-staging.info.go.th/category/benefit/feed
API Specification แบบดึงตรงสามารถเข้าถึงได้ด้วย REST API ตามตัวอย่างนี้
curl “https://portal-staging.info.go.th/feed/
ตัวอย่างผลลัพธ์
<?xml version=”1.0″ encoding=”UTF-8″?><rss version=”2.0″
xmlns:content=”http://purl.org/rss/1.0/modules/content/”
xmlns:wfw=”http://wellformedweb.org/CommentAPI/”
xmlns:dc=”http://purl.org/dc/elements/1.1/”
xmlns:atom=”http://www.w3.org/2005/Atom”
xmlns:sy=”http://purl.org/rss/1.0/modules/syndication/”
xmlns:slash=”http://purl.org/rss/1.0/modules/slash/”
>
<channel>
<title>InfoPortal</title>
<atom:link href=”https://portal-staging.info.go.th/feed/” rel=”self” type=”application/rss+xml” />
<link>https://portal-staging.info.go.th</link>
<description></description>
<lastBuildDate>Wed, 04 May 2022 07:08:01 +0000</lastBuildDate>
<language>th</language>
<sy:updatePeriod>
hourly </sy:updatePeriod>
…
/”>อยากขับเดลิเวอรี่ ต้องใช้ใบขับขี่แบบไหน</a> appeared first on <a rel=”nofollow” href=”https://portal-staging.info.go.th”>InfoPortal</a>.</p>
]]></content:encoded>
<wfw:commentRss>https://portal-staging.info.go.th/%e0%b8%ad%e0%b8%a2%e0%b8%b2%e0%b8%81%e0%b8%82%e0%b8%b1%e0%b8%9a%e0%b9%80%e0%b8%94%e0%b8%a5%e0%b8%b4%e0%b9%80%e0%b8%a7%e0%b8%ad%e0%b8%a3%e0%b8%b5%e0%b9%88-%e0%b8%95%e0%b9%89%e0%b8%ad%e0%b8%87%e0%b9%83/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
<thumbnail>https://portal-staging.info.go.th/wp-content/uploads/2022/03/11-480×480-1.jpg</thumbnail> </item>
</channel>
</rss>
การนำ Feed API ไปแทรกใน HTML หรือใน เว็บเพจอื่นๆ ทำได้ตามตัวอย่างนี้
<!–rss:rss_feed_url:=https://portal-staging.info.go.th/feed,num_items:=5,random:=false,show_description:=false,
new_window:=true,show_date_per_item:=true–>