REST API
API Reference
Full documentation for the NewsPro REST API. Manage content, media, and users programmatically.
Breaking News
Available Fields
| Field | Type | Description |
|---|---|---|
id | int | Breaking news item ID |
user_id | int | ID of the user who published the item |
title | string | Short headline shown in the breaking news ticker |
content | string | Additional details or body text |
status | int | 1 = active (shown in ticker), 0 = inactive (hidden) |
created_at | datetime | Creation date |
Get Breaking News
{"resource":"breaking","action":"get","filters":{"status":1,"date_from":"2025-01-01"},"fields":["id","user_id","title","content","status","created_at"],"limit":20,"order_by":"created_at DESC"}
Get Single Item
{"resource":"breaking","action":"get","id":1}
Add Breaking News
{"resource":"breaking","action":"add","user_id":1,"title":"Breaking: Major event happening now","content":"Additional details or source URL","status":1}
Edit Breaking News
All fields are optional except id.
{"resource":"breaking","action":"edit","id":1,"title":"Updated headline","content":"Updated content","status":1}
Delete Breaking News
{"resource":"breaking","action":"delete","id":1}
Copied to clipboard!