🎉 NewsPro 3.0 Launch Discount — use code NEWSPRO3LAUNCH for 20% OFF · ends May 31 View plans →

API Reference

Full documentation for the NewsPro REST API. Manage content, media, and users programmatically.

Breaking News

Available Fields

FieldTypeDescription
idintBreaking news item ID
user_idintID of the user who published the item
titlestringShort headline shown in the breaking news ticker
contentstringAdditional details or body text
statusint1 = active (shown in ticker), 0 = inactive (hidden)
created_atdatetimeCreation 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!