Complete guide for developers to integrate with Kalopati APIs
π Introduction
Welcome to the Kalopati API documentation. This RESTful API provides access to posts, categories, and content data. All responses are in JSON format.
Note: The API uses a custom REST URL prefix kp_api instead of the default WordPress wp-json.
π Base URL
All API endpoints are relative to:
https://kalopati.com/kp_api/
Base URL for all API endpoints.
π‘ WordPress RSS Feeds
In addition to the custom REST APIs, Kalopati provides standard WordPress RSS feeds for easy content syndication. RSS feeds are XML-based and compatible with all RSS readers and aggregators.
Main RSS Feed
GET
/feed/
Returns all recent posts in RSS 2.0 format.
Full URL Example
https://kalopati.com/feed/
Atom Feed
GET
/feed/atom/
Returns all recent posts in Atom 1.0 format.
Category RSS Feed
GET
/category/{category-slug}/feed/
Returns posts from a specific category.
Example
// Get RSS feed for "politics" category
https://kalopati.com/category/politics/feed/
Tip: RSS feeds are perfect for content aggregators, news readers, and simple integrations. For more advanced features and filtering, use the REST API endpoints described below.
π Authentication
Currently, these APIs are publicly accessible and do not require authentication. They are read-only endpoints that return publicly available content.
βοΈ REST API Endpoints
These endpoints provide access to posts, categories, and content data via the Kalopati REST API. They can be used in any application, website, or service.
Get Related News
GET
/kp_api/app/v1/related-news/{post_id}?count=5
Description
Returns up to count related posts (by tags and categories) for the given post_id (Nepali language only).
URL Parameters
Parameter
Type
Required
Description
post_id
Integer
Required
The post to find related news for
count
Integer
Optional
Number of related posts (default: 5, max: 20)
Response Fields
Field
Type
Description
id
Integer
Post ID
title
String
Post title
newsUrl
String
Permalink to the article
thumbnailUrl
String
Featured image URL
newsOverView
String
Formatted content
publishedDate
String (ISO 8601)
Publication date (Asia/Kathmandu)
Get Popular News
GET
/kp_api/app/v1/popular-news?count=10
Description
Returns up to count most viewed posts from the last 1 week (Nepali language only), ordered by post_views_count (descending).
Query Parameters
Parameter
Type
Required
Description
count
Integer
Optional
Number of posts to return (default: 10, max: 50)
Response Fields
Field
Type
Description
id
Integer
Post ID
title
String
Post title
newsUrl
String
Permalink to the article
thumbnailUrl
String
Featured image URL
newsOverView
String
Formatted content
publishedDate
String (ISO 8601)
Publication date (Asia/Kathmandu)
views
Integer
View count (post_views_count meta value)
Get Recent Posts
GET
/kp_api/app/v1/posts
Description
Returns 10 most recent posts.
Response Fields
Field
Type
Description
title
String
The post title
newsUrl
String
Permalink to the full article
thumbnailUrl
String
URL of the featured image (large size)
newsOverView
String
Formatted full content with paragraphs
publishedDate
String (ISO 8601)
Publication date in Asia/Kathmandu timezone
videoUrl
String (optional)
YouTube or Facebook video URL if found in content
Get All Categories
GET
/kp_api/app/v1/categories
Description
Returns a list of all available categories with their IDs and slugs.
If you encounter any issues or have questions about the API:
Check your endpoint URLs and parameters
Verify your domain configuration
Ensure the WordPress REST API is enabled
Contact the development team for additional support
Version: This documentation reflects the current API implementation as of February 2026. Always test with the latest endpoints in your production environment.