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","zone":[{"name":"book","records":{"s":"*","n":20,"total":4146,"next":"/result?q=weather&encoding=json&l-format=Thesis&zone=book&s=AoIIQdorKCpzdTE3Mzk5MDIz","nextStart":"AoIIQdorKCpzdTE3Mzk5MDIz","work":[{"id":22799605,"url":"/work/22799605","troveUrl":"https://trove.nla.gov.au/work/22799605","title":"Statistically based weather forecast guidance / Harvey Stern","contributor":["Stern, Harvey"],"issued":"1996-1999","type":["Government publication","Thesis","Article\/Report","Article"],"holdingsCount":16,"versionCount":3,"hasCorrections":"N","relevance":{"score":42.71468,"value":"very relevant"},"snippet":"Statistically based <b>weather<\/b> forecast guidance /"},{"id":191696180,"url":"/work/191696180","troveUrl":"https://trove.nla.gov.au/work/191696180","title":"Mathematical modelling of solar radiation and other weather variables for quality assured weather data sets","contributor":["Ridley, Barbara"],"issued":2008,"type":["Thesis"],"holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":38.572342,"value":"very relevant"},"snippet":["Mathematical modelling of solar radiation and other <b>weather<\/b> variables for quality assured <b>weather<\/b>"," natural resource requires the availability of appropriate <b>weather<\/b> data. The evaluation of the performance"," Australian Climate Data Bank. The project called for updating the previous data set using post-1986 <b>weather<\/b>"],"identifier":[{"type":"url","linktype":"restricted","value":"http://researchoutputs.unisa.edu.au/1959.8/47030"}]},{"id":30387905,"url":"/work/30387905","troveUrl":"https://trove.nla.gov.au/work/30387905","title":"Weather analysis and forecasting : applying satellite water vapor imagery and potential vorticity analysis / Patrick Santurette, Christo G. Georgiev","contributor":["Santurette, Patrick"],"issued":"2005-2016","type":["Book","Book\/Illustrated","Thesis"],"holdingsCount":13,"versionCount":10,"hasCorrections":"N","relevance":{"score":37.580822,"value":"very relevant"},"snippet":["<b>Weather<\/b> Analysis and Forecasting Applying Satellite Water Vapor Imagery and Potential Vorticity","<b>Weather<\/b> Analysis and Forecasting : Applying Satellite Water Vapor Imagery and Potential Vorticity"," Development -- \"Satellite images provide a rich source of data for predicting Earth's <b>weather<\/b>; however, even"," <b>weather<\/b> prediction accuracy is learning how to properly distill, manipulate, and interpret relevant"],"identifier":[{"type":"url","linktype":"restricted","linktext":"Table of contents","value":"http://catdir.loc.gov/catdir/toc/ecip0510/2005007906.html"}]},{"id":32355916,"url":"/work/32355916","troveUrl":"https://trove.nla.gov.au/work/32355916","title":"Understanding the weather : an interactive multimedia program / Livio Regano","contributor":["Regano, Livio"],"issued":"2001-2018","type":["Thesis"],"holdingsCount":3,"versionCount":3,"hasCorrections":"N","relevance":{"score":33.597706,"value":"very relevant"},"snippet":["Understanding the <b>weather<\/b> : an interactive multimedia program \/","Understanding the <b>weather<\/b> : an interactive multimedia program"],"identifier":[{"type":"url","linktype":"restricted","linktext":"View online","value":"http://hdl.handle.net/1885/147204"}]},{"id":230134074,"url":"/work/230134074","troveUrl":"https://trove.nla.gov.au/work/230134074","title":"Literature and weather : Shakespeare - Goethe - Zola / Johannes Ungelenk","contributor":["Ungelenk, Johannes"],"issued":2018,"type":["Book","Thesis"],"holdingsCount":7,"versionCount":2,"hasCorrections":"N","relevance":{"score":33.27687,"value":"very relevant"},"snippet":["Literature and <b>weather<\/b> : Shakespeare - Goethe - Zola \/","\" \"Literature and <b>Weather<\/b>. Shakespeare -- Goethe -- Zola\" is dedicated to the relation between"," literature and <b>weather<\/b>, i.e. a cultural practice and an everyday phenomenon that has played very different"],"identifier":[{"type":"url","linktype":"restricted","linktext":"De Gruyter","value":"https://login.proxy.bib.uottawa.ca/login?url=https://www.degruyter.com/doi/book/10.1515/9783110560978"}]},{"id":34507581,"url":"/work/34507581","troveUrl":"https://trove.nla.gov.au/work/34507581","title":"Stochastic modelling of the weather : selected aspects / Eng-Hock Chia","contributor":["Chia, Eng-Hock"],"issued":"1991-2017","type":["Thesis"],"holdingsCount":2,"versionCount":3,"hasCorrections":"N","relevance":{"score":32.95037,"value":"very relevant"},"snippet":["Stochastic modelling of the <b>weather<\/b> : selected aspects \/","Stochastic modelling of the <b>weather<\/b> : selected aspects"],"identifier":[{"type":"url","linktype":"restricted","linktext":"View online","value":"http://hdl.handle.net/1885/138820"}]},{"id":21392150,"url":"/work/21392150","troveUrl":"https://trove.nla.gov.au/work/21392150","title":"Automatic numerical weather analysis for the Australian region / by R. Maine","contributor":["Maine, R"],"issued":1966,"type":["Book\/Illustrated","Book","Thesis"],"holdingsCount":7,"versionCount":2,"hasCorrections":"N","relevance":{"score":32.805206,"value":"very relevant"},"snippet":"Automatic numerical <b>weather<\/b> analysis for the Australian region /"},{"id":250449011,"url":"/work/250449011","troveUrl":"https://trove.nla.gov.au/work/250449011","title":"The Weather Diaries","contributor":["Ronin Films (Firm)"],"issued":"2000-2023","type":["Video","Thesis"],"holdingsCount":5,"versionCount":4,"hasCorrections":"N","relevance":{"score":32.177536,"value":"very relevant"},"snippet":["The <b>Weather<\/b> Diaries","The <b>Weather<\/b> Diaries."," feminist ethnographic documentary making and recent work in the environmental humanities, The <b>Weather<\/b>"," be found in people working directly or indirectly with climate change, The <b>Weather<\/b> Diaries supports a"]},{"id":7719274,"url":"/work/7719274","troveUrl":"https://trove.nla.gov.au/work/7719274","title":"Stormy weather : a history of research in the Bureau of Meteorology / John Gardner","contributor":["Gardner, John, 1949-"],"issued":1997,"type":["Government publication","Thesis"],"holdingsCount":18,"versionCount":1,"hasCorrections":"N","relevance":{"score":32.151928,"value":"very relevant"},"snippet":"Stormy <b>weather<\/b> : a history of research in the Bureau of Meteorology /","identifier":[{"type":"url","linktype":"unknown","linktext":"Access full text","value":"http://www.austehc.unimelb.edu.au/fam/0735.html"}]},{"id":12359822,"url":"/work/12359822","troveUrl":"https://trove.nla.gov.au/work/12359822","title":"Judgement and decision making in weather forecasting / by Gordon Allen","contributor":["Allen, Gordon, 1939-"],"issued":"1986-1987","type":["Thesis","Microform"],"holdingsCount":2,"versionCount":2,"hasCorrections":"N","relevance":{"score":31.264856,"value":"very relevant"},"snippet":["Judgement and decision making in <b>weather<\/b> forecasting","Judgement and decision making in <b>weather<\/b> forecasting [manuscript] \/"]},{"id":27545463,"url":"/work/27545463","troveUrl":"https://trove.nla.gov.au/work/27545463","title":"Wild weather / Julie Haydon","contributor":["Haydon, Julie"],"issued":2002,"type":["Thesis"],"holdingsCount":3,"versionCount":1,"hasCorrections":"N","relevance":{"score":30.723204,"value":"very relevant"},"snippet":"Wild <b>weather<\/b> /"},{"id":33040169,"url":"/work/33040169","troveUrl":"https://trove.nla.gov.au/work/33040169","title":"Severe weather forecasting in coastal East Antarctica / Bradley F. Murphy","contributor":["Murphy, Bradley F"],"issued":1999,"type":["Thesis"],"holdingsCount":2,"versionCount":2,"hasCorrections":"N","relevance":{"score":29.477015,"value":"very relevant"},"snippet":["Severe <b>weather<\/b> forecasting in coastal East Antarctica","Severe <b>weather<\/b> forecasting in coastal East Antarctica \/"]},{"id":6894528,"url":"/work/6894528","troveUrl":"https://trove.nla.gov.au/work/6894528","title":"Benign weather modification / Barry B. Coble","contributor":["Coble, Barry B"],"issued":1997,"type":["Government publication","Microform","Thesis"],"holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":29.25751,"value":"very relevant"},"snippet":["Benign <b>weather<\/b> modification [microform] \/","Benign <b>weather<\/b> modification"],"identifier":[{"type":"url","linktype":"restricted","linktext":"Adobe Acrobat Reader required","value":"http://purl.access.gpo.gov/GPO/LPS37868"}]},{"id":33661181,"url":"/work/33661181","troveUrl":"https://trove.nla.gov.au/work/33661181","title":"Real-time prediction of significant weather near the Tasman Sea : high resolution numerical weather prediction studies","contributor":["Buckley, Bruce W"],"issued":2000,"type":["Thesis"],"holdingsCount":1,"versionCount":2,"hasCorrections":"N","relevance":{"score":29.236723,"value":"very relevant"},"snippet":"Real-time prediction of significant <b>weather<\/b> near the Tasman Sea : high resolution numerical <b>weather<\/b>","identifier":[{"type":"url","linktype":"fulltext","value":"http://hdl.handle.net/1959.4/69397"}]},{"id":21793032,"url":"/work/21793032","troveUrl":"https://trove.nla.gov.au/work/21793032","title":"Meteorology : forecasting the weather / Heinz Wachter","contributor":["Wachter, Heinz, 1913-"],"issued":1973,"type":["Book\/Illustrated","Thesis","Book"],"holdingsCount":5,"versionCount":2,"hasCorrections":"N","relevance":{"score":29.05426,"value":"very relevant"},"snippet":"Meteorology : forecasting the <b>weather<\/b> /"},{"id":19464255,"url":"/work/19464255","troveUrl":"https://trove.nla.gov.au/work/19464255","title":"Mean reversion models for weather derivatives / Ben Petschel","contributor":["Petschel, Ben"],"issued":"1900-2005","type":["Thesis"],"holdingsCount":2,"versionCount":2,"hasCorrections":"N","relevance":{"score":28.786644,"value":"very relevant"},"snippet":["Mean reversion models for <b>weather<\/b> derivatives \/","Mean Reversion Models for <b>Weather<\/b> Derivatives"," Queensland 2005. <b>Weather<\/b> derivatives are a new type of financial contract that derive their value from ",";<b>weather<\/b> measurements over the period of the contract. In this thesis we focus on temperature-based"],"identifier":[{"type":"url","linktype":"restricted","value":"https://espace.library.uq.edu.au/view/UQ:107287/THE18872.pdf"}]},{"id":158277328,"url":"/work/158277328","troveUrl":"https://trove.nla.gov.au/work/158277328","title":"Extreme weather and financial markets : opportunities in commodities and futures / Lawrence J. Oxley","contributor":["Oxley, Lawrence J., 1969-"],"issued":2012,"type":["Book\/Illustrated","Book","Thesis"],"holdingsCount":7,"versionCount":3,"hasCorrections":"N","relevance":{"score":28.619389,"value":"very relevant"},"snippet":["Extreme <b>weather<\/b> and financial markets : opportunities in commodities and futures \/","Extreme <b>weather<\/b> and financial markets [electronic resource] : opportunities in commodities and"," Australia, chronic drought in Russia, and other dramatic <b>weather<\/b> events are getting increased attention from"," present major investing opportunities in the stock, bond, and futures markets. Extreme <b>Weather<\/b> and The"],"identifier":[{"type":"url","linktype":"restricted","linktext":"Red Deer College Access","value":"http://ebookcentral.proquest.com/lib/rdc/detail.action?docID=817840"}]},{"id":10416533,"url":"/work/10416533","troveUrl":"https://trove.nla.gov.au/work/10416533","title":"Studies of summertime cold fronts using a numerical weather prediction model / by Kathleen Lynne McInnes","contributor":["McInnes, Kathleen Lynne, 1961-"],"issued":"1991-1993","type":["Thesis","Book"],"holdingsCount":3,"versionCount":3,"hasCorrections":"N","relevance":{"score":27.85489,"value":"very relevant"},"snippet":["Studies of summertime cold fronts using a numerical <b>weather<\/b> prediction model","Studies of summertime cold fronts using a numerical <b>weather<\/b> prediction model [manuscript] \/"]},{"id":18625200,"url":"/work/18625200","troveUrl":"https://trove.nla.gov.au/work/18625200","title":"Objectively defined weather types of Brisbane, Queensland / by Roger C. Stone","contributor":["Stone, Roger C."],"issued":1985,"type":["Thesis"],"holdingsCount":2,"versionCount":1,"hasCorrections":"N","relevance":{"score":27.49161,"value":"very relevant"},"snippet":"Objectively defined <b>weather<\/b> types of Brisbane, Queensland /"},{"id":17399023,"url":"/work/17399023","troveUrl":"https://trove.nla.gov.au/work/17399023","title":"Numerical weather prediction over Antarctica / by Neil David Adams","contributor":["Adams, Neil David"],"issued":2004,"type":["Thesis"],"holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":27.271072,"value":"very relevant"},"snippet":["Numerical <b>weather<\/b> prediction over Antarctica [manuscript] \/","Numerical <b>weather<\/b> prediction over Antarctica"]}]}}]}}
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'.