API/DEVELOPER

API & Developer Resources | Daily Reality NG
💻

API & Developer Resources

Access Daily Reality NG content programmatically. Build apps, integrate our RSS feeds, and create amazing experiences for Nigerian audiences.

🚀 Developer Resources Overview

Welcome to the Daily Reality NG Developer Hub. Whether you're building a news aggregator, creating a mobile app, or integrating our content into your platform, we provide tools and resources to help Nigerian developers access our content programmatically.

Note: We're a Blogger-based platform, which means we currently offer RSS feeds and web scraping-friendly structures. A full REST API is planned for 2026 as we scale our infrastructure.

🎯 What's Available Now (2025)

✅ RSS/Atom Feeds

Full-text RSS feeds for all articles, categories, and labels

✅ JSON Feeds

Blogger's JSON API for programmatic content access

✅ Open Graph Data

Rich metadata on every article for social sharing

✅ Schema.org Markup

Structured data (Article, FAQ, Organization) on all pages

⏳ REST API

Coming 2026 - Full REST API with authentication

⏳ Webhooks

Coming 2026 - Real-time notifications for new content

📡 RSS & Atom Feeds

Our RSS feeds are the easiest way to access Daily Reality NG content programmatically. All feeds are full-text, updated in real-time, and free to use.

🔥 All Posts Feed Live

Get all published articles in chronological order

RSS URL
https://dailyrealityngnews.blogspot.com/feeds/posts/default

Format: Atom 1.0 (XML)

🏷️ Category-Specific Feeds Live

Filter content by category/label

RSS URL Pattern
https://dailyrealityngnews.blogspot.com/feeds/posts/default/-/LABEL_NAME

Examples:

  • Business: /feeds/posts/default/-/Business
  • Technology: /feeds/posts/default/-/Technology

💬 Comments Feed Live

Get all comments across the site

RSS URL
https://dailyrealityngnews.blogspot.com/feeds/comments/default

🔧 RSS Feed Parameters

Customize your RSS feed with URL parameters:

Parameter Description Example
max-results Limit number of entries (1-500) ?max-results=25
start-index Pagination offset ?start-index=26
orderby Sort order (published, updated) ?orderby=updated
alt Output format (rss, json) ?alt=json
Example: Get 10 Latest Posts as JSON
https://dailyrealityngnews.blogspot.com/feeds/posts/default?alt=json&max-results=10

🔌 Blogger JSON API

Access our content in JSON format using Blogger's public API. No authentication required for read operations.

Method Endpoint Description
GET /feeds/posts/default?alt=json Get all posts as JSON
GET /feeds/posts/default/-/{label}?alt=json Get posts by category
GET /feeds/{postId}/comments/default?alt=json Get comments for specific post

💡 Code Examples

JavaScript/Node.js Example

JavaScript
// Fetch latest 10 articles from Daily Reality NG
const fetch = require('node-fetch');

const url = 'https://dailyrealityngnews.blogspot.com/feeds/posts/default?alt=json&max-results=10';

fetch(url)
  .then(response => response.json())
  .then(data => {
    const posts = data.feed.entry;
    posts.forEach(post => {
      console.log('Title:', post.title.$t);
      console.log('Link:', post.link.find(l => l.rel === 'alternate').href);
      console.log('Published:', post.published.$t);
      console.log('---');
    });
  })
  .catch(error => console.error('Error:', error));

Python Example

Python
# Fetch and parse Daily Reality NG RSS feed
import feedparser

url = 'https://dailyrealityngnews.blogspot.com/feeds/posts/default'
feed = feedparser.parse(url)

for entry in feed.entries[:10]:
    print(f"Title: {entry.title}")
    print(f"Link: {entry.link}")
    print(f"Published: {entry.published}")
    print(f"Summary: {entry.summary[:100]}...")
    print("---")

PHP Example

PHP

🔐 Authentication

RSS Feeds: No authentication required. Publicly accessible for read operations.
JSON API: No authentication needed for fetching public posts and content.
Future REST API (2026): Will require API keys for write operations and higher rate limits.

⚡ Rate Limits & Best Practices

Current RSS Feed Limits

500 Max Results Per Request
Daily Request Limit
5min Recommended Cache Time

📋 Best Practices for Developers

Cache Responses: Cache RSS/JSONresponses for at least 5 minutes to reduce server load and improve your app performance.
Use Pagination: Don't request all posts at once. Use max-results and start-index parameters to paginate.
Set User-Agent: Include your app name and contact info in HTTP headers so we can reach out if needed.
Handle Errors Gracefully: Implement retry logic with exponential backoff for failed requests.
Respect Content License: Attribute Daily Reality NG properly and link back to original articles.
Monitor Changes: Subscribe to our developer newsletter for API updates and breaking changes.

🏗️ Structured Data (Schema.org)

All Daily Reality NG articles include rich structured data in JSON-LD format. You can extract this programmatically for enhanced metadata.

📰 Article Schema

Every article includes:

  • headline, description, image
  • author (Person schema)
  • publisher (Organization schema)
  • datePublished, dateModified
  • mainEntityOfPage

❓ FAQ Schema

Articles with FAQ sections include:

  • FAQPage type
  • Questions and Answers
  • Fully compliant JSON-LD

🍞 Breadcrumb Schema

Navigation structure:

  • BreadcrumbList type
  • Position-based navigation
  • Category hierarchies

Extracting Schema Data

JavaScript Example
// Extract JSON-LD schema from article page
const fetch = require('node-fetch');
const cheerio = require('cheerio');

async function getArticleSchema(url) {
  const response = await fetch(url);
  const html = await response.text();
  const $ = cheerio.load(html);
  
  const schemas = [];
  $('script[type="application/ld+json"]').each((i, elem) => {
    schemas.push(JSON.parse($(elem).html()));
  });
  
  return schemas;
}

// Usage
getArticleSchema('https://dailyrealityngnews.blogspot.com/2025/11/article-url.html')
  .then(schemas => console.log(JSON.stringify(schemas, null, 2)));

🚀 Coming in 2026: Full REST API

We're building a comprehensive REST API to give developers even more power. Here's what's planned:

Planned API Features (2026)

🔑 Authentication

API keys, OAuth 2.0, rate limiting tiers

📊 Analytics API

Get article views, engagement stats, trending content

🔍 Search API

Full-text search with filters, facets, and relevance scoring

🔔 Webhooks

Real-time notifications for new content, updates, comments

💬 Comments API

Post comments, moderate, fetch thread conversations

📧 Newsletter API

Manage subscriptions, send campaigns, track metrics

🎯 Planned Endpoints (2026)

GET /api/v1/posts - List all posts with filtering
GET /api/v1/posts/{id} - Get single post by ID
GET /api/v1/categories - List all categories
GET /api/v1/search?q={query} - Full-text search
POST /api/v1/comments - Submit new comment
POST /api/v1/newsletter/subscribe - Add email subscriber

📜 API Terms of Use

✅ You Can:

  • Access our RSS feeds and JSON API for free
  • Build apps, news aggregators, and tools using our content
  • Cache our content responsibly (5+ minutes)
  • Display our articles with proper attribution and linking
  • Use our data for research, analysis, and non-commercial projects

❌ You Cannot:

  • Republish our full articles without permission (see DMCA Policy)
  • Remove author attribution or Daily Reality NG branding
  • Use our content for spam, misinformation, or harmful purposes
  • Scrape aggressively or overload our servers
  • Claim our content as your own or modify it without disclosure

⚖️ Attribution Requirements:

When displaying our content, you must:

  • Include "Source: Daily Reality NG" with each article
  • Link back to the original article URL
  • Preserve author names (Samson Ese or as credited)
  • Include publication date

💬 Developer Support

📧 Email Support

Technical questions and API issues:

dailyrealityngnews@gmail.com

Include "API" or "Developer" in subject line

💬 WhatsApp

Quick developer questions:

+234 902 408 9907

Business hours: Mon-Fri, 9AM-5PM WAT

📚 Documentation

More resources coming soon:

  • Interactive API explorer
  • Complete code libraries
  • Video tutorials
  • Developer community forum

📊 Current API Usage (2025)

50+ Apps Using Our Feeds
10K+ API Requests Daily
99.9% Uptime
123 Articles Available

🚀 Start Building Today

Ready to integrate Daily Reality NG content into your app? Start with our RSS feeds and JSON API today. No registration needed.

Comments