Explore the workings of the Trove API (v2)
Important note: Version 3 of the Trove API was made available in July 2023. This version (v2) is due to be decommissioned in early 2024.
{"response":{"query":"weather date:[* TO 1900]","zone":[{"name":"book","records":{"s":"*","n":20,"total":3075,"next":"/result?q=weather+date%3A%5B*+TO+1900%5D&encoding=json&zone=book&s=AoIIQlF4cypzdTE2MjgxMDgx","nextStart":"AoIIQlF4cypzdTE2MjgxMDgx","work":[{"id":8061843,"url":"/work/8061843","troveUrl":"https://trove.nla.gov.au/work/8061843","title":"A dictionary of weather / Storm Dunlop","contributor":["Dunlop, Storm"],"issued":"1900-2024","type":["Book","Book\/Illustrated","Periodical","Periodical\/Journal, magazine, other"],"holdingsCount":35,"versionCount":15,"hasCorrections":"N","relevance":{"score":99.4814,"value":"very relevant"},"snippet":["Oxford Dictionary of <b>weather<\/b>.","A dictionary of <b>weather<\/b> [electronic resource] \/"," Dictionary -- App. A. <b>Weather<\/b> Records -- App. B. British Climate Data -- App. C. World Climate Data -- App. D"," -- Atmospheric Pressure -- Temperature. Searchable database of <b>weather<\/b>, forecasting, and climate terminology"],"identifier":[{"type":"url","linktype":"restricted","linktext":"Red Deer College Access","value":"http://www.oxfordreference.com/views/BOOK_SEARCH.html?book=t16"}]},{"id":24427334,"url":"/work/24427334","troveUrl":"https://trove.nla.gov.au/work/24427334","title":"Grassfires : fuel, weather and fire behaviour / Phil Cheney and Andrew Sullivan","contributor":["Cheney, Phil, 1940-"],"issued":"1900-2008","type":["Book","Book\/Illustrated","Government publication"],"holdingsCount":98,"versionCount":13,"hasCorrections":"N","relevance":{"score":93.141205,"value":"very relevant"},"snippet":["Grassfires : fuel, <b>weather<\/b> and fire behaviour \/","Grassfires fuel, <b>weather<\/b> and fire behaviour \/"," print version of record. \"Grassfires: Fuel, <b>Weather<\/b> and Fire Behaviour presents the latest information"," that affect fire behaviour in continuous grassy fuels; fire in spinifex fuels; the effect of <b>weather<\/b>"],"identifier":[{"type":"url","linktype":"restricted","linktext":"ProQuest Ebook Central","value":"http://public.ebookcentral.proquest.com/choice/publicfullrecord.aspx?p=408961"}]},{"id":224740018,"url":"/work/224740018","troveUrl":"https://trove.nla.gov.au/work/224740018","title":"The weather obsession / Lawrie Zion","contributor":["Zion, Lawrie"],"issued":"1900-2024","type":["Book","Book\/Illustrated","Book\/Large print"],"holdingsCount":74,"versionCount":3,"hasCorrections":"N","relevance":{"score":89.67746,"value":"very relevant"},"snippet":["The <b>weather<\/b> obsession \/","The <b>Weather<\/b> Obsession.","Description based on print version record The <b>Weather<\/b> Obsession takes the temperature of modern"," <b>weather<\/b> media and investigates how it has fuelled our fascination with all things climatic. <b>Weather<\/b>"],"identifier":[{"type":"url","linktype":"restricted","linktext":"ProQuest Ebook Central","value":"https://ebookcentral.proquest.com/lib/qut/detail.action?docID=5683823"}]},{"id":37436514,"url":"/work/37436514","troveUrl":"https://trove.nla.gov.au/work/37436514","title":"Weather / by Jill Anthony and Beverley Wheat","contributor":["Anthony, Jill"],"issued":"1900-2015","type":["Book","Book\/Illustrated","Government publication"],"holdingsCount":55,"versionCount":4,"hasCorrections":"N","relevance":{"score":81.5127,"value":"very relevant"},"snippet":["<b>Weather<\/b>. Tells...... ... \/","<b>Weather<\/b> \/"]},{"id":6325154,"url":"/work/6325154","troveUrl":"https://trove.nla.gov.au/work/6325154","title":"The weather makers : the history and future impact of climate change / Tim Flannery","contributor":["Flannery, Tim F. (Tim Fridtjof), 1956-"],"issued":"1900-2012","type":["Book","Book\/Illustrated","Audio book"],"holdingsCount":126,"versionCount":52,"hasCorrections":"N","relevance":{"score":80.613335,"value":"very relevant"},"snippet":["The <b>weather<\/b> makers : the history and future impact of climate change, Text Publishing, Melbourne","The <b>weather<\/b> makers : how man is changing the climate and what it means for life on Earth \/"," thing in common - we are now the <b>weather<\/b> makers, and the new climate we are creating threatens the",": The <b>weather<\/b> makers. Geoff Bartholomew. Originally published in English: Melbourne : Text Publishing"],"identifier":[{"type":"url","linktype":"restricted","linktext":"OverDrive","value":"https://www.overdrive.com/search?q=EA30DCDB-80F0-4701-B673-3EA99172C8CC"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-1328975078-t"}]},{"id":232818931,"url":"/work/232818931","troveUrl":"https://trove.nla.gov.au/work/232818931","title":"Amelia Bedelia under the weather / by Herman Parish ; pictures by Lynne Avril","contributor":["Parish, Herman"],"issued":"1900-2020","type":["Book","Book\/Illustrated","Audio book"],"holdingsCount":75,"versionCount":8,"hasCorrections":"N","relevance":{"score":74.82779,"value":"very relevant"},"snippet":["AMELIA BEDELIA UNDER THE <b>WEATHER<\/b>.","Under the <b>weather<\/b>.","Guided reading level: K. Guided reading K. \"In Amelia Bedelia Under the <b>Weather<\/b>, Amelia Bedelia"," wakes up feeling, well, under the <b>weather<\/b>! But with a little rest, some delicious chicken soup, and a"]},{"id":209107228,"url":"/work/209107228","troveUrl":"https://trove.nla.gov.au/work/209107228","title":"Weather","contributor":["Dorling Kindersley Limited"],"issued":"1900-2016","type":["Book\/Illustrated","Book"],"holdingsCount":37,"versionCount":3,"hasCorrections":"N","relevance":{"score":73.0192,"value":"very relevant"},"snippet":["<b>Weather<\/b>","<b>Weather<\/b>."," rain? How hot is a bolt of lightning? What makes hurricanes happen? Find out with Eyewitness <b>Weather<\/b>",", discover all about a wide-range of <b>weather<\/b> conditions and how they are created. Eyewitness reference books"]},{"id":6940231,"url":"/work/6940231","troveUrl":"https://trove.nla.gov.au/work/6940231","title":"All in the blue unclouded weather / Robin Klein","contributor":["Klein, Robin, 1936-"],"issued":"1900-2017","type":["Book","Audio book","Book\/Braille"],"holdingsCount":77,"versionCount":10,"hasCorrections":"N","relevance":{"score":72.09388,"value":"very relevant"},"snippet":["All in the blue unclouded <b>weather<\/b> [electronic resource] \/","All in the blue unclouded <b>weather<\/b> [sound recording] \/","All in the Blue Unclouded <b>Weather<\/b> begins the story of the Melling sisters, four girls growing up in"," Library Awards Children's Book of the Year 1992\" --cover. All in the Blue Unclouded <b>Weather<\/b> begins the"],"identifier":[{"type":"url","linktype":"restricted","linktext":"National edeposit: Onsite at Libraries Tasmania (Hobart Library)","value":"https://nla.gov.au/nla.obj-1360705860"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-1360705860-t"}]},{"id":157114304,"url":"/work/157114304","troveUrl":"https://trove.nla.gov.au/work/157114304","title":"The Australian weather book : understanding our climate and how it affects us / Keith Colls, Dick Whitaker","contributor":["Colls, Keith"],"issued":"1900-2012","type":["Book","Book\/Illustrated"],"holdingsCount":65,"versionCount":6,"hasCorrections":"N","relevance":{"score":68.42268,"value":"very relevant"},"snippet":["The Australian <b>weather<\/b> book : understanding our climate and how it affects us \/","The Australian <b>weather<\/b> book : understanding our climate and how it affects us."," change debates have made meteorology and the <b>weather<\/b> heated topics of debate. Australia has a unique"," climate. Learn more about it in this third edition of The Australian <b>Weather<\/b> Book. This book is a"]},{"id":11822445,"url":"/work/11822445","troveUrl":"https://trove.nla.gov.au/work/11822445","title":"What days are for / Robert Dessaix","contributor":["Dessaix, Robert, 1944-"],"issued":"1900-2014","type":["Book","Book\/Illustrated"],"holdingsCount":104,"versionCount":3,"hasCorrections":"N","relevance":{"score":67.430435,"value":"very relevant"},"snippet":["What's wrong with our <b>weather<\/b>? the climatic threat of the 21st century","What's wrong with our <b>weather<\/b>? the climatic threat of the 21st century [electronic resource]"],"identifier":[{"type":"url","linktype":"restricted","linktext":"Direct link to full text: http://openlibrary.org/details/whatswrongwithwe0000grib","value":"http://openlibrary.org/books/OL4723059M"}]},{"id":20058475,"url":"/work/20058475","troveUrl":"https://trove.nla.gov.au/work/20058475","title":"Stormy weather / written by Katy Pike","contributor":["Pike, Katy, 1965-"],"issued":"1900-2012","type":["Book\/Illustrated","Book"],"holdingsCount":25,"versionCount":4,"hasCorrections":"N","relevance":{"score":63.357803,"value":"very relevant"},"snippet":["Stormy <b>weather<\/b> \/","Stormy <b>weather<\/b>.","Primary school students. Junior primary school age. <b>Weather<\/b>. Last week we had a storm. The rain"]},{"id":6580103,"url":"/work/6580103","troveUrl":"https://trove.nla.gov.au/work/6580103","title":"Manual of meteorology. Bureau of Meteorology","contributor":["Australia. Bureau of Meteorology"],"issued":"1900-2024","type":["Book","Book\/Illustrated","Government publication"],"holdingsCount":61,"versionCount":32,"hasCorrections":"N","relevance":{"score":60.475124,"value":"very relevant"},"snippet":["Manual of meteorology. Fire <b>weather<\/b> supplement.","Manual of meteorology fire <b>weather<\/b> supplement."," chapters 1-18. Aviation supp. chapters 21-2 7. Fire <b>weather<\/b> supp. chapters 31-34. Pt. 1. Reprinted with"]},{"id":31948236,"url":"/work/31948236","troveUrl":"https://trove.nla.gov.au/work/31948236","title":"Weather","contributor":["Ellyard, David"],"issued":"1900-2016","type":["Book","Book\/Illustrated"],"holdingsCount":16,"versionCount":8,"hasCorrections":"N","relevance":{"score":59.023056,"value":"very relevant"},"snippet":["<b>Weather<\/b> \/","Eyewitness <b>weather<\/b>"," Eyewitness <b>Weather<\/b> and become an expert on the skies above us. From giant tornadoes to the smallest of"," snowflakes, discover all about a wide-range of <b>weather<\/b> conditions and how they are created. Eyewitness"]},{"id":196110015,"url":"/work/196110015","troveUrl":"https://trove.nla.gov.au/work/196110015","title":"Our weather / written by Pam Holden ; illustrated by Deborah C. Johnson","contributor":["Holden, Pam"],"issued":"1900-2013","type":["Book","Book\/Illustrated"],"holdingsCount":18,"versionCount":3,"hasCorrections":"N","relevance":{"score":57.834545,"value":"very relevant"},"snippet":["Our <b>weather<\/b> \/","Our <b>weather<\/b>. Emergent level, Red Rocket Readers \/","There are lots of different kinds of <b>weather<\/b>. Have you seen a storm with wind and thunder and"," lightning? Some days have rain and hail. In cold places there is snow and frost. What <b>weather<\/b> do you like"]},{"id":230578024,"url":"/work/230578024","troveUrl":"https://trove.nla.gov.au/work/230578024","title":"Listen for the weather / Justine Delaney Wilson","contributor":["Delaney Wilson, Justine"],"issued":"1900-2018","type":["Book"],"holdingsCount":37,"versionCount":2,"hasCorrections":"N","relevance":{"score":56.86124,"value":"very relevant"},"snippet":["Listen for the <b>weather<\/b> \/","? Listen for the <b>Weather<\/b> is the story of a marriage. It's a story about consequences. And how we make our"," own <b>weather<\/b>. A family has recently emigrated from Ireland to New Zealand when some shocking and"]},{"id":18298540,"url":"/work/18298540","troveUrl":"https://trove.nla.gov.au/work/18298540","title":"The Weather book / Ralph Hardy ... [et al.]","contributor":["Hardy, Ralph"],"issued":"1900-1985","type":["Book","Book\/Illustrated"],"holdingsCount":12,"versionCount":6,"hasCorrections":"N","relevance":{"score":55.32606,"value":"very relevant"},"snippet":["The <b>Weather<\/b> book [electronic resource]","The <b>Weather<\/b> book \/",". Bibliography: p. 223.\nIncludes index. Explores the mysteries of meteorology and <b>weather<\/b> forecasting, discussing"," the workings of the <b>weather<\/b>, atmospheric phenomena and <b>weather<\/b> conditions, <b>weather<\/b> myths and"],"identifier":[{"type":"url","linktype":"restricted","linktext":"Direct link to full text: http://openlibrary.org/details/weatherbook0000unse_m4e9","value":"http://openlibrary.org/books/OL18339746M"}]},{"id":226603379,"url":"/work/226603379","troveUrl":"https://trove.nla.gov.au/work/226603379","title":"Tornado weather / Deborah E. Kennedy","contributor":["Kennedy, Deborah Elaine"],"issued":"1900-2017","type":["Book","Audio book"],"holdingsCount":21,"versionCount":4,"hasCorrections":"N","relevance":{"score":54.240665,"value":"very relevant"},"snippet":["Tornado <b>weather<\/b> [electronic resource]","Tornado <b>weather<\/b>"," life. Tornado <b>Weather<\/b> is an affecting portrait of a complex and flawed cast of characters striving to"," rich fabric to life. Tornado <b>Weather<\/b> is an affecting portrait of a complex and flawed cast of"],"identifier":[{"type":"url","linktype":"restricted","linktext":"Direct link to full text: http://openlibrary.org/details/tornadoweather0000kenn","value":"http://openlibrary.org/books/OL27239225M"}]},{"id":192856414,"url":"/work/192856414","troveUrl":"https://trove.nla.gov.au/work/192856414","title":"The weather report / written by Pam Holden ; illustrated by Richard Hoit","contributor":["Holden, Pam"],"issued":"1900-2017","type":["Book","Book\/Illustrated"],"holdingsCount":12,"versionCount":7,"hasCorrections":"N","relevance":{"score":53.949863,"value":"very relevant"},"snippet":["The <b>weather<\/b> report [electronic resource]","The <b>weather<\/b> report. Early level 2, Red Rocket Readers \/"," a lot of questions about the <b>weather<\/b>. Includes teaching notes and photocopiable flashcards of key"," letters of the alphabet. A robot has lots of questions about the <b>weather<\/b>. Junior primary school age"],"identifier":[{"type":"url","linktype":"restricted","linktext":"Direct link to full text: http://openlibrary.org/details/weatherreport0000hold","value":"http://openlibrary.org/books/OL28297347M"}]},{"id":674206,"url":"/work/674206","troveUrl":"https://trove.nla.gov.au/work/674206","title":"Weather : a popular exposition of the nature of weather changes from day to day / by the Hon. Ralph Abercromby ..","contributor":["Abercromby, Ralph, 1842-1897"],"issued":"1887-1993","type":["Book","Book\/Illustrated","Microform"],"holdingsCount":11,"versionCount":11,"hasCorrections":"N","relevance":{"score":52.941383,"value":"very relevant"},"snippet":["<b>Weather<\/b>; a popular exposition of the nature of","<b>Weather<\/b> A popular exposition of the nature of <b>weather<\/b> changes from day to day [microform] : By the"],"identifier":[{"type":"url","linktype":"restricted","linktext":"Direct link to full text: http://openlibrary.org/details/weatherpopularex00aberrich","value":"http://openlibrary.org/books/OL7210104M"}]},{"id":16281081,"url":"/work/16281081","troveUrl":"https://trove.nla.gov.au/work/16281081","title":"Weather / [series writers, Darlene Lauw, Lim Cheng Puay]","contributor":["Lauw, Darlene"],"issued":"1900-2003","type":["Book\/Illustrated","Book"],"holdingsCount":11,"versionCount":2,"hasCorrections":"N","relevance":{"score":52.367626,"value":"very relevant"},"snippet":["<b>Weather<\/b> \/",". verso. Introduces concepts related to <b>weather<\/b> through various activities and projects. Includes index",". The power of the sun! -- The weight of air affects <b>weather<\/b> -- Windy days are fun! -- Water, water"]}]}}]}}
Click on any of the examples below to open them in this console, then modify them to suit. If you want to use them in your own code you'll need to get an API key and add &key=[Your API key]
to the url.
See the Trove API documentation for a full list of available parameters and detailed information on constructing queries.
For more examples, tools, and hacks using the Trove API see the GLAM Workbench.
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=all
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
use a space or a '+' to get everything |
zone
|
zone(s) to search in (required) |
all
|
possible values are 'all', 'newspaper', 'gazette', 'book', 'article', 'picture', 'music', 'map', 'collection', 'list', 'people' |
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=book,newspaper
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
|
zone
|
zone(s) to search in (required) |
book,newspaper
|
separate multiple zones with commas |
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=newspaper
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
|
zone
|
zone(s) to search in (required) |
newspaper
|
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=newspaper&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query |
wragge
|
|
zone
|
zone(s) to search in |
newspaper
|
|
encoding
|
format of results |
json
|
possible values are 'xml' (default) or 'json' |
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=newspaper&encoding=json&n=100
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query |
wragge
|
|
zone
|
zone(s) to search in |
newspaper
|
|
encoding
|
format of results |
json
|
possible values are 'xml' (default) or 'json' |
n
|
number of results |
100
|
possible values are 0 to 100 (default is 20) |
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=newspaper&encoding=json&sortby=dateasc
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query |
wragge
|
|
zone
|
zone(s) to search in |
newspaper
|
|
encoding
|
format of results |
json
|
possible values are 'xml' (default) or 'json' |
sortby
|
order of results |
dateasc
|
possible values are 'relevance' (default), 'dateasc', 'datedesc' |
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=newspaper&encoding=json&reclevel=full
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
|
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
reclevel
|
request additional article metadata |
full
|
Adding reclevel=full
adds a number of additional fields to the article metadata, the actual fields added depends on the zone. In newspapers and gazettes it adds illustrated
, wordCount
, correctionCount
, tagCount
, commentCount
, listCount
, trovePageUrl
, and pdf
(which is a link to a PDF of the whole page on which the article is published). In works it adds tagCount
, commentCount
, and listCount
.
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=newspaper&encoding=json&include=tags,comments
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query |
wragge
|
|
zone
|
zone(s) to search in |
newspaper
|
|
encoding
|
format of results |
json
|
possible values are 'xml' (default) or 'json' |
include
|
include extra information |
tags,comments
|
possible values include 'tags' and 'comments'; separate multiple values with commas |
The accepted values for the include
parameter differ across zones, but some values, like 'tags' and 'comments', are consistent. Other examples are included below.
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=newspaper&encoding=json&bulkHarvest=true&s=*
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query |
wragge
|
|
zone
|
zone(s) to search in |
newspaper
|
you can only harvest from one zone at a time, so this must be set to a single zone such as 'newspaper' |
encoding
|
format of results |
json
|
possible values are 'xml' (default) or 'json' |
bulkHarvest
|
setting this to 'true' ensures that results will stay in the same order when you request subsequent pages; without it results might be duplicated or missing |
true
|
|
s
|
supply a resumption token to get the next page of results |
*
|
use '*' for the first request, then replace with the value of |
Three parameters are important when harvesting a complete result set: zone
must be set to a single zone, bulkHarvest
set to 'true', and s
must be updated after each request with the value of nextStart
. Note that the nextStart
value will only appear if there is another page of results to download, so you can use it in your loop as a check to see if you've finished.
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=newspaper&encoding=json&l-category=Article
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
|
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
l-category
|
category to include |
Article
|
see Trove help documentation, or use the |
This parameter can be used multiple times, however, this will behave like an AND
query and only those articles in all of the specified categories will be returned. So adding &l-category=Article&l-category=Advertising
will return zero results, as no articles are in both the 'Article' and 'Advertising' categories.
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=newspaper&encoding=json&l-state=Victoria
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
|
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
l-state
|
place in which articles were published |
Victoria
|
possible values are 'ACT', 'International', 'National', 'New South Wales', 'Northern Territory', 'Queensland', 'South Australia', 'Tasmania', 'Victoria' |
This parameter can be used multiple times. Unlike the category
facet, this will behave like an OR
query, returning articles published in any of the specified places. So adding &l-state=Victoria&l-state=ACT
will return articles published in either Victoria or the ACT.
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=newspaper&encoding=json&l-decade=192
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
|
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
l-decade
|
limit to articles from this decade |
192
|
192 includes the years 1920 to 1929 |
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
|
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
l-decade
|
limit to articles from this decade |
192
|
|
l-year
|
limit to articles from this year ( |
1924
|
limit the results to articles from 1924, the |
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
|
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
l-decade
|
limit to articles from this decade |
192
|
|
l-year
|
limit to articles from this year ( |
1924
|
limit the results to articles from 1924 |
l-month
|
limit to articles from this month ( |
3
|
limit the results to articles from March 1924, possible values are numbers from 1 to 12 |
https://api.trove.nla.gov.au/v2/result?q=firstpageseq:1&zone=newspaper&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
firstpageseq:1
|
use the |
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
date:[1942-10-31T00:00:00Z TO 1942-11-30T00:00:00Z]
|
use the |
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge date:[1942-11-01T00:00:00Z TO 1942-11-02T00:00:00Z]
|
use the |
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=newspaper&encoding=json&l-illustrated=true
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
|
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
l-illustrated
|
limit to articles with illustrations |
true
|
accepted values are 'true' or 'false' |
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
|
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
l-illustrated
|
limit to articles with illustrations |
true
|
accepted values are 'true' or 'false' |
l-illtype
|
limit to articles with this type of illustration |
Photo
|
the |
This parameter can be used multiple times, however, this will behave like an AND
query and only those articles with all of the specified illustration types will be returned.
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=newspaper&encoding=json&l-word=<100 Words
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
|
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
l-word
|
filter by number of words in the article |
<100 Words
|
accepted values are '<100 Words', '100 - 1000 Words', or '1000+ Words' |
https://api.trove.nla.gov.au/v2/result?q=wragge has:tags&zone=newspaper&encoding=json&include=tags
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge has:tags
|
add |
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
include
|
tags
|
you need to specifically |
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=newspaper&encoding=json&include=articletext
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
|
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
include
|
add additional information to the record |
articletext
|
this adds the full OCRd text to the record, other possible values are 'tags', 'comments' |
The OCRd text is return as HTML, so depending on you use you might need to strip the tags out.
https://api.trove.nla.gov.au/v2/result?q=+&zone=newspaper&encoding=json&facet=category&n=0
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
+
|
'+' is an empty search, so will return everything |
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
n
|
0
|
we don't need results, just the facets, so we can set |
|
facet
|
include facet data |
category
|
break down results by category; see the Trove API documentation for a full list of facets |
https://api.trove.nla.gov.au/v2/result?q=+&zone=newspaper&encoding=json&l-decade=192&facet=year&n=0
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
+
|
'+' is an empty search, so will return everything |
zone
|
zone(s) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
n
|
number of results |
0
|
we don't need results, just the facets, so we can set |
l-decade
|
set the decade |
192
|
needs to be set to find the totals by year |
facet
|
include facet data |
year
|
break down results by year in the given decade; see the Trove API documentation for a full list of facets |
For more examples using the year
facet see Visualise Trove newspaper searches over time in the GLAM Workbench.
https://api.trove.nla.gov.au/v2/result?q=weather&zone=book&encoding=json&l-format=Thesis
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
weather
|
|
zone
|
zone(s) to search in (required) |
book
|
|
encoding
|
format of results |
json
|
|
l-format
|
format or type of work |
Thesis
|
see the Trove help documentation for a list of formats |
This parameter can be used multiple times, however, this will behave like an AND
query and only those articles in all of the specified formats will be returned.
https://api.trove.nla.gov.au/v2/result?q=weather NOT format:Book &zone=picture&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
weather NOT format:Book
|
by adding |
zone
|
zone(s) to search in (required) |
picture
|
|
encoding
|
format of results |
json
|
You can use the format
index in both the query and as a facet, that means you can say that you don't want works with particular formats. This is handy for filtering out noise.
https://api.trove.nla.gov.au/v2/result?q=weather date:[* TO 1900]&zone=book&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
weather date:[* TO 1900]
|
using the |
zone
|
zone(s) to search in (required) |
book
|
|
encoding
|
format of results |
json
|
https://api.trove.nla.gov.au/v2/result?q=weather imageInd:thumbnail &zone=picture&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
weather imageInd:thumbnail
|
set |
zone
|
zone(s) to search in (required) |
picture
|
|
encoding
|
format of results |
json
|
The actual thumbnail link is included in the identifier
field with a linktype
of 'thumbnail'. To ensure you get all the possible values for identifier
you can also add &include=links
to your query.
https://api.trove.nla.gov.au/v2/result?q=wragge&zone=picture&encoding=json&include=workversions
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
wragge
|
|
zone
|
zone(s) to search in (required) |
picture
|
|
encoding
|
format of results |
json
|
|
include
|
format of results |
workversions
|
include the metadata for each individual version of this work |
The way that versions are grouped as works in Trove can be quite confusing. The work level metadata is generally quite consistent, but it can leave out useful metadata that's attached to an individual version. The version metadata is richer, but is also less consistent, so you have to be prepared for some trial and error if you want to extract information from it.
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
weather fullTextInd:y
|
set |
zone
|
zone(s) to search in (required) |
article
|
|
encoding
|
format of results |
json
|
|
include
|
workversions
|
the full text is buried down in the version-level metadata, so you need to add this parameter if you want to actually get to it |
The fullTextInd
index seems quite misleading as it includes articles from commercial databases where only a truncated sample of the full text is actually available, and electronic legal deposit works where access to the text is restricted. It would seem better to combine this indicator with a search for "nla.obj" or nuc:ANL:DL
to try and limit to resources digitised by the NLA and partners.
https://api.trove.nla.gov.au/v2/result?q=weather&zone=article&encoding=json&l-title=The bulletin
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
weather
|
|
zone
|
zone(s) to search in (required) |
article
|
|
encoding
|
format of results |
json
|
|
l-title
|
limit to this journal title |
The bulletin
|
There's no controlled list of journal titles to use with this facet, so you probably need to get the values from the web interface.
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
weather "https://nla.gov.au/nla.obj-68375465"
|
|
zone
|
zone(s) to search in (required) |
article
|
|
encoding
|
format of results |
json
|
|
l-format
|
limit to this format |
Article
|
limit the results to articles so we don't get the records for the periodicals themselves |
An alternative to using the title
facet is to include the identifier of the parent journal in the q
parameter. This is how the Trove Digitised Journals app works.
https://api.trove.nla.gov.au/v2/result?q=rights:Free&zone=picture&encoding=json&include=workversions
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (required) |
rights:Free
|
see the Trove help documentation for a full list of possible values for |
zone
|
zone(s) to search in (required) |
picture
|
|
encoding
|
format of results |
json
|
|
l-format
|
format of work |
Photo
|
|
include
|
workversions
|
the rights statements are attached to versions, so to see them you need to ask for the full versions data |
This facet only works with records where the copyright status is specified in the record. Some out-of-copyright photographs might be missing from results because their status has not been identified. A search for photos created before 1955 using date[* TO 1954]
might find additional out-of-copyright images.
Article or work identifiers are supplied as part of the url rather than as a query parameter. For example, https://api.trove.nla.gov.au/v2/newspaper/41697877
returns the details of the article with the identifier 41697877
.
parameter | parameter note | value | value note |
---|---|---|---|
encoding
|
format of results |
json
|
|
reclevel
|
amount of detail in record |
full
|
|
include
|
include extra information |
articletext,tags,comments
|
include the OCRd text, as well as any tags or comments, in the record |
parameter | parameter note | value | value note |
---|---|---|---|
encoding
|
format of results |
json
|
|
reclevel
|
amount of detail in record |
full
|
|
include
|
include extra information |
workversions,tags,comments
|
include metadata from all grouped versions, as well as any tags or comments |
https://api.trove.nla.gov.au/v2/list/43805?encoding=json&reclevel=full&include=listitems
parameter | parameter note | value | value note |
---|---|---|---|
encoding
|
format of results |
json
|
|
reclevel
|
amount of detail in record |
full
|
|
include
|
include extra information |
listitems
|
include details of all items in the list |
You only get the brief record version for each of the list items, so to get extra information, such as OCRd text for a newspaper article, you'll have to request each article individually. Also, the list items are not paginated, so if you have a long list this will return a lot of data.
There's a bug in the API so that a request for newspaper titles also returns the gazette titles. See the GLAM Workbench for a workaround.
https://api.trove.nla.gov.au/v2/newspaper/titles?encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
encoding
|
format of results |
json
|
https://api.trove.nla.gov.au/v2/gazette/titles?encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
encoding
|
format of results |
json
|
https://api.trove.nla.gov.au/v2/newspaper/titles?encoding=json&state=vic
parameter | parameter note | value | value note |
---|---|---|---|
encoding
|
format of results |
json
|
|
state
|
limit to this state |
vic
|
possible values are 'nsw', 'act', 'qld', 'tas', 'sa', 'nt', 'wa', 'vic', 'national' |
https://api.trove.nla.gov.au/v2/newspaper/title/35?encoding=json&include=years
parameter | parameter note | value | value note |
---|---|---|---|
encoding
|
format of results |
json
|
|
include
|
years
|
list the years available on Trove, with the number of issues per year |
The newspaper identifier is included in the url as indicated. This example will return details of the Sydney Morning Herald which has an identifier of '35'.
parameter | parameter note | value | value note |
---|---|---|---|
encoding
|
format of results |
json
|
|
include
|
years
|
this needs to be included to retrieve the full issue information |
|
range
|
date range of issues to return |
18420101-18421231
|
dates are in YYYYMMDD format; this example will return details of all issues of the Sydney Morning Herald published in 1842 |
The issue details include a publication date and a url which redirects to the first page of the issue.
Organisations can be nested under other organisations (as children
), this makes the data structure a bit complex.
https://api.trove.nla.gov.au/v2/contributor?encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
encoding
|
format of results |
json
|
https://api.trove.nla.gov.au/v2/contributor/ANL?encoding=json&reclevel=full
parameter | parameter note | value | value note |
---|---|---|---|
encoding
|
format of results |
json
|
|
reclevel
|
amount of detail to return |
full
|
The organisation's identifier is included in the url as indicated. This example retrieves details for the National Library of Australia, whose identifier is 'ANL'.