Tags

The Wellynews API


Word cloud by Wordle

A number of large news organisations have begun providing APIs to their content. These services allow content to be queried programmatically for use in mash ups and the like.

The Wellynews API lets you do something simular with the local newsitems indexed by Search Wellington.

For example, the API can provide a feed of local newsitems related to consultation; or maybe zebras. It can also handle potentially interesting combinations, such as what Wellington City Council has said about the Indoor Sports Centre or sculpture on the waterfront.

Getting started

Supported Formats

The API allows newsitems to be extracted in RSS or JSON (Javascript) formats. RSS is widely supported by feed readers, web browsers and server side libraries. JSON is typically used for passing data into browser based Javascript applications and mashups.

The desired format is specified by appending ethier rss or json to the end of the query url.

ie. Transport newsitems in RSS format:

or the same newsitems in JSON format:

Specifying tags and publishers

When querying for newsitems (below) you have the option of filtering by tag or publisher. Tags and publishers are specified by substituting the appropriate url snippet into your request.

ie. The url snippet for Wellington City Council is wellington-city-council.

A complete list of available tag and publisher url snippets is provided below.

Newsitem queries

The following types of newsitem query are supported.

Tag newitems

Returns newsitems tagged with a given tag.

ie. All newsitems tagged with soccer, in RSS format.

Publisher newsitems

Returns newsitems published by a specific publisher.

ie. newsitems published by the Capital Times, in JSON format.

Combinations

Returns newsitems tagged with a combination of two tags, or a publisher and a tag.

The tags are seperated with a plus character. For combinations involving a publisher, the publisher must always appear on the left hand side of the plus.

ie. newsitems tagged with transport and consultation and Wellington City Council media releases tagged with indoor sports centre.

Credit: The combination url scheme was inspired by the Guardian newspapers' tag combiners.

Commented newsitems

Returns newsitems which have been commented on.

ie. Commented newsitesm in JSON format.

Commented newsitems also specifiy the newsitems'comment feed url on the commentFeed field on the JSON results.

Commented newsitems for a tag

Returns commented newsitems for a given tag.

ie. Commented newsitems tagged with waterfront in JSON format.

Geotagged newsitems

Returns newsitems which have been geotagged.

ie. Geotagged newsitems in RSS format.

Pagination

Each RSS or JSON call returns a maximum of 30 results. For JSON calls, additional results can be obtained from using the page parameter to paginate through the results.

ie. page 6 of the Victoria University newsitems:

You can see the total number of available results in the totalItems field of the JSON results. The showingFrom and showingTo fields tell you which resuls you are currently viewing:


{
  "totalItems": 377,
  "showingFrom": 151,
  "showingTo": 180,
  "newsitems": [ ... ]
}

JSONP callbacks

You can specify that JSON results should be wrapped in a JSONP style callback, using the optional callback parameter. This is approch is required when making cross domain JSON calls from a web brower.

ie.

Your callback function name may contain letters, numbers and underscores only.

RSS to JSON feed mirroring

Provides JSON copies of local RSS feeds. This makes it easier to integrate feeds into sites using Javascript.

ie. Wellington City Councils' latest news feed as a JSON list:

A complete list of feed url snippets is provided below.

URL snippets

Available Tags
TagURL snippet
Accommodation accommodation
Animals animals
Architecture architecture
Art art
Blogs blogs
Books books
Business business
Cinema cinema
City Guides cityguides
clothes clothes
clothing clothing
colour consultant colourconsultant
colours colours
Community Groups communitygroups
Conservation conservation
Education education
Emergency Services emergencyservices
Events events
Fashion fashion
Featured featured
Gay & Bisexual gaybisexual
Government government
Health health
image image
image consultant imageconsultant
internet internet
Issues issues
Law law
Local History localhistory
marketing marketing
martial arts martialarts
Media media
Misc misc
Mixed Martial Arts mixedmartialarts
MMA mma
Muay Thai muaythai
Ninjutsu ninjutsu
Obituaries obituaries
Paremata paremata
Performing Arts performingarts
Petone petone
Pies pies
Places places
raumati raumati
Real Estate realestate
Restaurants and Bars restaurantsbars
Reviews reviews
shape shape
shapes shapes
shopping shopping
Sport sport
Tourism tourism
Transport transport
Tsunami tsunami
Video video
WCN Hosted wcnhosted
Webcams webcams
Wellington wellington
Zombies zombies
Available Publishers
PublisherURL snippet
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
$item.publisher.name $item.publisher.urlWords
Available RSS to JSON Feeds
FeedURL snippet
2020 Trust news 2020-trust-news
Adam Art Gallery feed adam-art-gallery-feed
Aero Club news aero-club-news
All Saints Hataitai news all-saints-hataitai-news
Amesbury Drive School feed amesbury-drive-school-feed
Architecture Centre news architecture-centre-news
Auckland Trains » Wellington auckland-trains-wellington
BNU news bnu-news
Back To The Future back-to-the-future
Binge Culture Collective news binge-culture-collective-news
Blend bar blog blend-bar-blog
Bowls Tawa news bowls-tawa-news
Bowls Wellington news bowls-wellington-news
Brooklyn Early Childhood Centre news brooklyn-early-childhood-centre-news
Brooklyn Residents Association news brooklyn-residents-association-news
Brooklyn School news brooklyn-school-news
Building Madness in Mt Vic feed building-madness-in-mt-vic-feed
Butterfly Creek Theatre Troupe news butterfly-creek-theatre-troupe-news
CAW news caw-news
CPL news cpl-news
Capital City Fustal news capital-city-fustal-news
Capital Coast Health Feed capital-coast-health-feed
Capital Cycling group rss feed. capital-cycling-group-rss-feed
Capital Football news capital-football-news
Capital Fusta local competitions capital-fusta-local-competitions
Capital Times news items capital-times-news-items
CataBlog Feed catablog-feed
Catch Design Feed catch-design-feed
City Gallery media releases city-gallery-media-releases
Cricket Wellington news cricket-wellington-news
Days Bay Residents Association news days-bay-residents-association-news
Downstage news downstage-news
Downstage theatre blog posts downstage-theatre-blog-posts
Dowse news dowse-news
Eye of the Fish feed eye-of-the-fish-feed
Feeling Great events feeling-great-events
Fringe Festival 2010 press releases fringe-festival-2010-press-releases
Fringe festival news fringe-festival-news
GW Feed gw-feed
Go Wellington news go-wellington-news
Grant Robertson MP news grant-robertson-mp-news
Greens - Wellington feed greens-wellington-feed
HVFPU news hvfpu-news
Harbour City Hockey club news harbour-city-hockey-club-news
Hurricanes News Feed hurricanes-news-feed
Hutt City Mayors Press Releases hutt-city-mayors-press-releases
Hutt City News hutt-city-news
Hutt City Press Releases hutt-city-press-releases
Hutt City Public Notices hutt-city-public-notices
Hutt Valley Canoe Club news hutt-valley-canoe-club-news
HuttNZ feed huttnz-feed
ITFNZ Wellington Region news itfnz-wellington-region-news
Infratil Wellington airport news infratil-wellington-airport-news
Island Bay School newsletters island-bay-school-newsletters
JVL Line alerts jvl-line-alerts
Johnsonville Salvation Army news johnsonville-salvation-army-news
KLRB news klrb-news
Kapiti Cycling Club news kapiti-cycling-club-news
Karori Anglican news karori-anglican-news
Karori Baptist Church news karori-baptist-church-news
Karori Cricket news karori-cricket-news
Karori Sanctuary media releases karori-sanctuary-media-releases
Katrina Shanks MP's press releases katrina-shanks-mps-press-releases
Keep Crossways posts keep-crossways-posts
LBSLSC news lbslsc-news
LHCAFC news lhcafc-news
Lazy Fern blog feed lazy-fern-blog-feed
Life Flight Trust Media Releases life-flight-trust-media-releases
ME/CFS Support Group Feed mecfs-support-group-feed
Metlink latest news metlink-latest-news
Moot Cook mobilised moot-cook-mobilised
Mount Vic Dojo news mount-vic-dojo-news
Mt Victoria Residents Association news mt-victoria-residents-association-news
New Players news new-players-news
Newswire sport feed newswire-sport-feed
Newswire.co.nz news feed newswireconz-news-feed
Newswire.co.nz sport feed newswireconz-sport-feed
Newswire.co.nz arts feed newswireconz-arts-feed
Newtown Art Project news newtown-art-project-news
Ngaio Progressive Association news ngaio-progressive-association-news
North face track blog feed north-face-track-blog-feed
Northern Courier Features Feed northern-courier-features-feed
Northern Courier top stories northern-courier-top-stories
Olympic Harriers news feed olympic-harriers-news-feed
Ories news ories-news
PPRFC news pprfc-news
Petone Herald feed petone-herald-feed
Petone Rugby Club front petone-rugby-club-front
Petone Rugby Club news petone-rugby-club-news
Poneke Dojo news poneke-dojo-news
Poneke Wellington feed poneke-wellington-feed
Porirua Swim Club porirua-swim-club
Pukerua Bay Soccer Club news pukerua-bay-soccer-club-news
RPNYC news rpnyc-news
Rainey Collions lawyers news rainey-collions-lawyers-news
Raumati Swimming Club news raumati-swimming-club-news
Richter City blog feed richter-city-blog-feed
Richter City Roller Derby feed richter-city-roller-derby-feed
Roosters news roosters-news
Rugby Club Weekly Feed rugby-club-weekly-feed
SFBH news sfbh-news
SPCA 'Happy Tails' spca-happy-tails
SSR news ssr-news
SWIS news swis-news
Salient Features Feed salient-features-feed
Salient News Feed salient-news-feed
Salient main feed salient-main-feed
Save Crossways campaign feed save-crossways-campaign-feed
Save the Basin posts save-the-basin-posts
Save the Point news feed save-the-point-news-feed
Scoot NZ Wellington related posts scoot-nz-wellington-related-posts
SeniorNet Wellington news seniornet-wellington-news
Sidestrip feed sidestrip-feed
Six oclock swill feed six-oclock-swill-feed
Slow Boat Records posts slow-boat-records-posts
Snapper blog snapper-blog
Spirit Taekwon-Do news spirit-taekwon-do-news
Squash Wellington news feed squash-wellington-news-feed
St Alban’s Anglican Church feed st-albans-anglican-church-feed
St Benedict's Parish Khandallah news st-benedicts-parish-khandallah-news
St James' Anglican Church news st-james-anglican-church-news
St Patricks Silverstream news feed (media rss) st-patricks-silverstream-news-feed
St Pats Silverstream news st-pats-silverstream-news
St Teresas Catholic Parish news st-teresas-catholic-parish-news
Stokes Valley Volunteer Fire Brigade news stokes-valley-volunteer-fire-brigade-news
Stop Out news stop-out-news
Stopout match reports stopout-match-reports
Swim Wellington Feed swim-wellington-feed
T3 Track Blog feed t3-track-blog-feed
TLC notices tlc-notices
TPCB news tpcb-news
Taita Circket Club news taita-circket-club-news
Tawa Rugby Club Feed tawa-rugby-club-feed
Te Papa blog feed te-papa-blog-feed
Team Wellington New Feed team-wellington-new-feed
Texture Reviews texture-reviews
Texture blog feed texture-blog-feed
Tourism Wellington media releases tourism-wellington-media-releases
Tranz Metro delays tranz-metro-delays
Tranz Metro news tranz-metro-news
United Future press releases united-future-press-releases
Upper Hutt Hockey Club Game Reports upper-hutt-hockey-club-game-reports
VBC news vbc-news
VHF group news vhf-group-news
VUW News feed vuw-news-feed
VUWSA news vuwsa-news
Victoria Motorcycle Club news victoria-motorcycle-club-news
WCBA blog feed wcba-blog-feed
WCL Blog feed wcl-blog-feed
WCN news wcn-news
WIA news wia-news
WMC news wmc-news
WRFU Feed wrfu-feed
WRRA news wrra-news
WST news wst-news
WVCC news feed wvcc-news-feed
Waikanae Golf Club news waikanae-golf-club-news
Walking around Wellington posts walking-around-wellington-posts
Watering Hole Ministries what's been happening watering-hole-ministries-whats-been-happening
Welcom Wellington news welcom-wellington-news
Wellington Brass Band news feed wellington-brass-band-news-feed
Wellington Beekeepers Association notices wellington-beekeepers-association-notices
Wellington City Council Latest News wellington-city-council-latest-news
Wellington City Council open consultations wellington-city-council-open-consultations
Wellington City Council current e-Petitions wellington-city-council-current-e-petitions
Wellington Civic Trust news wellington-civic-trust-news
Wellington Greens news wellington-greens-news
Wellington Live Music Blog feed wellington-live-music-blog-feed
Wellington Phoenix News wellington-phoenix-news
Wellington Police news wellington-police-news
Wellington Rugby Referees Associaton news feed wellington-rugby-referees-associaton-news-feed
Wellington SPCA news wellington-spca-news
Wellington Tennis Club news wellington-tennis-club-news
Wellington Volunteer Coastguard feed wellington-volunteer-coastguard-feed
Wellington Zoo News wellington-zoo-news
Wellingtonista Blog Feed wellingtonista-blog-feed
Wellurban Feed wellurban-feed
Wests rugby news wests-rugby-news
Weta News weta-news
Wgtn U-13 Hatch Cup Team 2009 news wgtn-u-13-hatch-cup-team-2009-news
Whitireia Community Polytechnic news whitireia-community-polytechnic-news
YWCA news ywca-news
Your Wellington feed your-wellington-feed
Zephyr Rovers FC zephyr-rovers-fc

Usage Example

Example: Using JSON and Javascript to pull the latest transport newsitems into a page.

Transport

Source code

The Javascript source code for the above example is available below.

This example was implemented using the JQuery Javascript library. Any other JSON library could be used.

Following, is a line by line breakdown of what the example is doing:

Lines 1-2: HTML for the Transport heading and an emptry div tag which JQuery will write the newsitems into.

Line 4: Sourcing in the JQuery library file; you would normally do the in the head tag.

Lines 6-8: JQuery. Once the page has finished loading and is ready, fetch JSON data from the API and pass it to the function renderNewsitems.

Lines 10-16: JQuery. The renderNewsitems function is using JQuery to write out the first 4 items from the JSON data as HTML into the empty newsitems div.

Contact

Doing something interesting with this?

Contact enquires (at) wellington.gen.nz and let us know.