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":"article","records":{"s":"*","n":20,"total":25513,"next":"/result?q=weather&encoding=json&l-title=The+bulletin&zone=article&s=AoIIQYH0iytzdTIzMzY1MTMwNQ%3D%3D","nextStart":"AoIIQYH0iytzdTIzMzY1MTMwNQ==","work":[{"id":233648880,"url":"/work/233648880","troveUrl":"https://trove.nla.gov.au/work/233648880","title":"THE WEATHER. (6 February 1952)","issued":1952,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"Y","lastUpdated":"2024-01-25T03:12:04Z","relevance":{"score":16.329533,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b>. (6 February 1952)","THE <b>WEATHER<\/b>. By Inigo Jones. Appearance of a new sunspot group and a study of the cycles, showing"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-527625032"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-525289667-t"}]},{"id":233655411,"url":"/work/233655411","troveUrl":"https://trove.nla.gov.au/work/233655411","title":"THE WEATHER (11 November 1953)","issued":1953,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"Y","lastUpdated":"2024-03-12T02:18:06Z","relevance":{"score":16.329533,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b> (11 November 1953)","THE <b>WEATHER<\/b> By Inigo Jones November should bring general rains over eastern Australia, with many"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-533636215"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-526823527-t"}]},{"id":233657121,"url":"/work/233657121","troveUrl":"https://trove.nla.gov.au/work/233657121","title":"THE WEATHER (5 May 1954)","issued":1954,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.329533,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b> (5 May 1954)","THE <b>WEATHER<\/b> by Inigo Jones Bf® time of the final autumn rains has now come, and these should occur"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-533920341"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-528031057-t"}]},{"id":233658199,"url":"/work/233658199","troveUrl":"https://trove.nla.gov.au/work/233658199","title":"The Weather (18 August 1954)","issued":1954,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.329533,"value":"very relevant"},"snippet":["The <b>Weather<\/b> (18 August 1954)","The <b>Weather<\/b> by Inigo Jones <b>Weather<\/b> during the Brisbane Show illustrated very well the cyclical"," system of prediction. Later <b>weather<\/b> should be fine and frosty, with a recurrence rence of winter <b>weather<\/b>"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-535515154"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-528034509-t"}]},{"id":233659060,"url":"/work/233659060","troveUrl":"https://trove.nla.gov.au/work/233659060","title":"The Weather (10 November 1954)","issued":1954,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.329533,"value":"very relevant"},"snippet":["The <b>Weather<\/b> (10 November 1954)","The <b>Weather<\/b> by Inigo Jones Under the Main Cycle neither November nor December should be very wet"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-535704708"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-528071225-t"}]},{"id":233645884,"url":"/work/233645884","troveUrl":"https://trove.nla.gov.au/work/233645884","title":"THE WEATHER (11 April 1951)","issued":1951,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.270967,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b> (11 April 1951)","THE <b>WEATHER<\/b> By Inigo Jones The increase in the sunspot group, with a southern extension, was"," broken <b>weather<\/b> with two heavier falls at the beginning; at the close the long Uranian Cycle shows some"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-525246851"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-518157004-t"}]},{"id":233647817,"url":"/work/233647817","troveUrl":"https://trove.nla.gov.au/work/233647817","title":"THE WEATHER (17 October 1951)","issued":1951,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.270967,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b> (17 October 1951)","THE <b>WEATHER<\/b> By Inigo Jones Occurrence of rains in the dry areas —so long awaited was very close to"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-526077093"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-518411951-t"}]},{"id":233650839,"url":"/work/233650839","troveUrl":"https://trove.nla.gov.au/work/233650839","title":"THE WEATHER. (10 September 1952)","issued":1952,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.270967,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b>. (10 September 1952)","THE <b>WEATHER<\/b>. By Inigo Jones. On September 1 an interesting position had arisen in the <b>weather<\/b>"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-532412558"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-525399936-t"}]},{"id":233654554,"url":"/work/233654554","troveUrl":"https://trove.nla.gov.au/work/233654554","title":"THE WEATHER (19 August 1953)","issued":1953,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.270967,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b> (19 August 1953)","THE <b>WEATHER<\/b> By Inigo Jones Failure of sun-spot activity may reduce the chance of getting spring"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-533522284"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-526781679-t"}]},{"id":233658969,"url":"/work/233658969","troveUrl":"https://trove.nla.gov.au/work/233658969","title":"The Weather (3 November 1954)","issued":1954,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"Y","lastUpdated":"2024-06-08T22:52:06Z","relevance":{"score":16.270967,"value":"very relevant"},"snippet":["The <b>Weather<\/b> (3 November 1954)","The <b>Weather<\/b> by Inigo Jones About November 14-18, 84 years ago, there were some general and in"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-535693841"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-528071090-t"}]},{"id":233644126,"url":"/work/233644126","troveUrl":"https://trove.nla.gov.au/work/233644126","title":"THE WEATHER. (3 January 1951)","issued":1951,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.25585,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b>. (3 January 1951)","THE <b>WEATHER<\/b>. By Inigo Jones. In the cycle now come two important astronomical points, first the"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-524988772"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-518098731-t"}]},{"id":233646938,"url":"/work/233646938","troveUrl":"https://trove.nla.gov.au/work/233646938","title":"THE WEATHER (25 July 1951)","issued":1951,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.25585,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b> (25 July 1951)","THE <b>WEATHER<\/b> By Inigo Jones Prospects are for fine wintry <b>weather<\/b> over northern and central"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-525525377"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-518396251-t"}]},{"id":233648254,"url":"/work/233648254","troveUrl":"https://trove.nla.gov.au/work/233648254","title":"THE WEATHER. (28 November 1951)","issued":1951,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.25585,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b>. (28 November 1951)","THE <b>WEATHER<\/b>. By Inigo Jones. The southern sunspot groups have passed to their active position and"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-526648149"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-518412595-t"}]},{"id":233648537,"url":"/work/233648537","troveUrl":"https://trove.nla.gov.au/work/233648537","title":"THE WEATHER (26 December 1951)","issued":1951,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.25585,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b> (26 December 1951)","THE <b>WEATHER<\/b> By Inigo Jones There has just appeared a new sunspot group which will probably give the"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-526298163"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-518435812-t"}]},{"id":233651748,"url":"/work/233651748","troveUrl":"https://trove.nla.gov.au/work/233651748","title":"THE WEATHER (3 December 1952)","issued":1952,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.25585,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b> (3 December 1952)","THE <b>WEATHER<\/b> S(OBlao$ By Inigo Jones The forecast for general rain early in December, with a good"," made possible by the Long Range <b>Weather<\/b> Forecasting Trust of Sydney. "],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-532477009"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-525620923-t"}]},{"id":233651977,"url":"/work/233651977","troveUrl":"https://trove.nla.gov.au/work/233651977","title":"THE WEATHER (24 December 1952)","issued":1952,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.25585,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b> (24 December 1952)","THE <b>WEATHER<\/b> By Inigo Jones Recent observations seem to suggest that the transfer to the longer main"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-532487475"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-525621383-t"}]},{"id":233653801,"url":"/work/233653801","troveUrl":"https://trove.nla.gov.au/work/233653801","title":"THE WEATHER (10 June 1953)","issued":1953,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.25585,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b> (10 June 1953)","THE <b>WEATHER<\/b> By Inigo Jones Under the present cycle there should be very little ram during June in"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-533323440"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-526729010-t"}]},{"id":233655143,"url":"/work/233655143","troveUrl":"https://trove.nla.gov.au/work/233655143","title":"THE WEATHER (14 October 1953)","issued":1953,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.25585,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b> (14 October 1953)","THE <b>WEATHER<\/b> By Inigo Jones In southern areas present conditions are likely to continue tinue into"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-533572633"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-526823290-t"}]},{"id":233655481,"url":"/work/233655481","troveUrl":"https://trove.nla.gov.au/work/233655481","title":"THE WEATHER (18 November 1953)","issued":1953,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.25585,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b> (18 November 1953)","THE <b>WEATHER<\/b> By Inigo Jones Recent rains accord with the shorter Crohamhurst Cycle, and there should"],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-533747233"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-526823542-t"}]},{"id":233651305,"url":"/work/233651305","troveUrl":"https://trove.nla.gov.au/work/233651305","title":"THE WEATHER (22 October 1952)","issued":1952,"type":["Article\/Journal or magazine article","Article"],"isPartOf":"The bulletin.","holdingsCount":1,"versionCount":1,"hasCorrections":"N","relevance":{"score":16.244406,"value":"very relevant"},"snippet":["THE <b>WEATHER<\/b> (22 October 1952)","THE <b>WEATHER<\/b> By Inigo Jones The recent strong sunspot eruption produced increased rains for this"," hot <b>weather<\/b> lasting about ten days and followed by further good rains lasting into November. "],"identifier":[{"type":"url","linktype":"fulltext","value":"https://nla.gov.au/nla.obj-532443298"},{"type":"url","linktype":"thumbnail","value":"https://nla.gov.au/nla.obj-525400314-t"}]}]}}]}}
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'.