Follow

RSS Feeds

Neighbourhood Alert RSS Feed

Standard Feed

A standard feed of all alerts (that have been made public) is available at https://api.neighbourhoodalert.co.uk/api/RSS

Bespoke RSS Feeds

RSS feeds are available for accessing particular Alerts that are sent via Neighbourhood Alert
1) Last 30 public alerts
To get the last 30 publicly visible alerts sent by any Information provider on the system.
eg: http://www.neighbourhoodalert.co.uk/RSS

2) Last 30 alerts within a radius
To get the last 30 Publicly visible alerts sent to someone within x miles of a Lat / Lng
eg: https://www.neighbourhoodalert.co.uk/RSS/51.75730304529246/-0.9784698486328105/5
(The number 5 in the above example at the end defines a five mile radius around the lat/long point.)

Please note:
* The URL string breaks down as /RSS/Lat/Lng/MilesAway
* There cannot be a forward slash at the end of the URL


Advanced API RSS feeds:

Example feed: https://api.neighbourhoodalert.co.uk/api/RSS?IP=20&AreaIdx=1808
 

Components

Start of feed:
https://api.neighbourhoodalert.co.uk/api/RSS 
All feeds start with this and this code on its own will return the last 30 propagated messages from any area, provider or force

Information Provider
?IP=20 (This example only returns Police messages (idx 20))
You can have one Information Provider (IP) or leave this component out and it will return all Information Providers.
 

Information Provider idx examples.
  • Local Police = 20
  • NHWN & Neighbourhood Watch Scotland = 1
  • Crimestoppers = 10
  • Fire & Rescue Services = 3
  • Office of the Police and Crime Commissioner = 28
  • Trading Standards = 21
  • Local Authority = 27
  • Environment Agency = 29
  • British Transport Police = 36


By area
&AreaIdx=1808
This refines the messages to only include messages sent to users within a pre-defined polygon area.
View all polygon area references (opens list in new window)

By Portal/Website
&Site=53 This filters all messages to only include ones that have been sent out from a particular website admin area
 

Example site numbers:
  • Bedfordshire Fire = 126
  • Beds Police Alert = 166
  • Cheshire Police Alert = 94
  • Cleveland Connected = 132
  • Cumbria Community Messaging = 53
  • Derbyshire Alert = 83
  • Dorset Alert = 130
  • eCops (Cambridgeshire) = 108
  • Gloucestershire = 186
  • Hampshire Alert = 134
  • In The Know (Lancashire) = 137
  • Isle Of Wight Alert = 161
  • Keep In The Know (Durham) = 163
  • Lincolnshire Alert = 54
  • Neighbourhood Alert = 20
  • Neighbourhood Link = 28
  • NHW Scotland = 91
  • Northamptonshire Community Connect = 81
  • Nottinghamshire Alert = 33
  • Notts Watch = 87
  • Rail Watch = 123
  • Scottish Borders Alert = 133
  • Thames Valley Alert = 85
  • Wiltshire and Swindon Community Messaging = 135
  • Your West Cheshire = 122
     


Example RSS Feeds
Neighbourhood Watch messages to an area:
https://api.neighbourhoodalert.co.uk/api/RSS?IP=1&Site=20&AreaIdx=221
This example shows messages sent by “Neighbourhood Watch” (IP=1) from “NeighbourhoodAlert.co.uk” (Site = 20) to “Nottinghamshire” (AreaIdx=221)  
 

Other data within the feed
Within the RSS feed Nodes within the RSS feed will enable you to locate more information about each message including:Other data within the feed
Within the RSS feed Nodes within the RSS feed will enable you to locate more information about each message including:

  • Information Provider Name:
  • Message Type: ​
  • Message Icon image: ​​​(provides a link to the .jpg message image)
  • Message Title:

 


Example RSS feed and code required

 

 

 

Insert this script into the HTML on your site: <script type="text/javascript" src="https://output1s.rssinclude.com/output?type=js&id=741477&hash=2247d42d37f779a136d34ea63fbe0196"></script>


 

Embed our Twitter Feed

The following Twitter "Widget" can be customised and inserted on your website.  If you would like to do this, click the "Embed" link underneath to customise this tool and create the insert code

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.