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":"wragge","zone":[{"name":"newspaper","records":{"s":"*","n":20,"total":3274,"next":"/result?q=wragge&encoding=json&l-illustrated=true&zone=newspaper&s=AoIIQyk9kSkxMzMxOTkyMDE%3D","nextStart":"AoIIQyk9kSkxMzMxOTkyMDE=","article":[{"id":145708725,"url":"/newspaper/145708725","heading":"Mr. Clement Wragge.","category":"Article","title":{"id":713,"value":"Table Talk (Melbourne, Vic. : 1885 - 1939)"},"date":"1902-11-20","page":13,"pageSequence":13,"relevance":{"score":216.42522,"value":"very relevant"},"snippet":"Clement W[?]ge, the Queensland meteorologist, who will lecture on December 1 in the Melbourne Athen[?]um Hall, is a every remarkable man. He is the best","troveUrl":"https://trove.nla.gov.au/ndp/del/article/145708725?searchTerm=wragge"},{"id":21765046,"url":"/newspaper/21765046","heading":"Mrs. Adelaide Wragge.","category":"Article","title":{"id":16,"value":"The Brisbane Courier (Qld. : 1864 - 1933)"},"date":"1931-12-16","page":13,"pageSequence":13,"relevance":{"score":216.04001,"value":"very relevant"},"snippet":"Formerly of Victoria, and in 1864 Mayoress of Melbourne, the late Mrs. Wragge, who died recently, had been","troveUrl":"https://trove.nla.gov.au/ndp/del/article/21765046?searchTerm=wragge"},{"id":98393067,"url":"/newspaper/98393067","heading":"MR. CLEMENT WRAGGE.","category":"Article","title":{"id":358,"value":"Globe (Sydney, NSW : 1911 - 1914)"},"edition":"WEEKLY","date":"1911-09-20","page":9,"pageSequence":"9 S","relevance":{"score":215.27368,"value":"very relevant"},"snippet":"The well-known weather expert.","troveUrl":"https://trove.nla.gov.au/ndp/del/article/98393067?searchTerm=wragge"},{"id":215898727,"url":"/newspaper/215898727","heading":"BAD LUCK FOR WRAGGE.","category":"Article","title":{"id":1170,"value":"Sport (Adelaide, SA : 1911 - 1948)"},"date":"1933-09-07","page":4,"pageSequence":4,"relevance":{"score":200.15486,"value":"very relevant"},"snippet":"Harry Wragge, the well-known English rider, met with a painful accident at Newmarket. A horse that he was riding","troveUrl":"https://trove.nla.gov.au/ndp/del/article/215898727?searchTerm=wragge"},{"id":92314890,"url":"/newspaper/92314890","heading":"MR. C. L. WRAGGE.","category":"Article","title":{"id":290,"value":"South Australian Chronicle (Adelaide, SA : 1889 - 1895)"},"date":"1894-08-25","page":7,"pageSequence":7,"relevance":{"score":199.1,"value":"very relevant"},"snippet":"Mr. Clement Lindley Wragge, F.R.G.S., F.R. Met. S., is the son of a solicitor, and was born at Stourbridge, Worcestershire, on September 18, 1852, and educated at Uttoxeter Stafford. In England Mr. Wragge studied meteorology and olimature, and established three observatories in the Churnet Valley and moorlands of North Staffordshire, a fourth on","troveUrl":"https://trove.nla.gov.au/ndp/del/article/92314890?searchTerm=wragge"},{"id":162334033,"url":"/newspaper/162334033","heading":"MR. CLEMENT L. WRAGGE.","category":"Article","title":{"id":821,"value":"Adelaide Observer (SA : 1843 - 1904)"},"date":"1898-11-26","page":14,"pageSequence":14,"relevance":{"score":198.87524,"value":"very relevant"},"snippet":"Clement L. Wragge first uttered a childish cry at Stourbridge, Worcestershire, England, in 1852. Since that time he has uttered many, but not childish ones. His","troveUrl":"https://trove.nla.gov.au/ndp/del/article/162334033?searchTerm=wragge"},{"id":138250169,"url":"/newspaper/138250169","heading":"AN AMERICAN CLEMENT WRAGGE.","category":"Article","title":{"id":356,"value":"Newcastle Morning Herald and Miners' Advocate (NSW : 1876 - 1954)"},"date":"1902-12-03","page":5,"pageSequence":5,"relevance":{"score":198.67732,"value":"very relevant"},"snippet":"Elias Hartz is the Clement Wragge of America. His fame throughout Pennsylvania is astonishing, and what is more he deserve it. Just as there are men who use","troveUrl":"https://trove.nla.gov.au/ndp/del/article/138250169?searchTerm=wragge"},{"id":117993048,"url":"/newspaper/117993048","heading":"Wragge Among the Elements","category":"Article","title":{"id":451,"value":"The Farmer and Settler (Sydney, NSW : 1906 - 1955)"},"date":"1911-10-17","page":1,"pageSequence":1,"relevance":{"score":198.49876,"value":"very relevant"},"snippet":"THE STORMY PETREL OF AUSTRALIAN WEATHER. some years ago we woz all joggin' along nicety when this are Rag takes a hand an begins forecastin' all there most orrible kinds of droughts and, storms.—\"Dingo Flat,\" pages.","troveUrl":"https://trove.nla.gov.au/ndp/del/article/117993048?searchTerm=wragge"},{"id":113874277,"url":"/newspaper/113874277","heading":"MR. WRAGGE'S WEATHER FORECAST.","category":"Article","title":{"id":508,"value":"Evening News (Sydney, NSW : 1869 - 1931)"},"date":"1902-01-23","page":3,"pageSequence":3,"relevance":{"score":198.37746,"value":"very relevant"},"snippet":"South Australia: Terrific ouststorms, as previously forecasted, quickly followed by cool and somewhat squally weather from southward, especially in south, with rain under increasing pressure.","troveUrl":"https://trove.nla.gov.au/ndp/del/article/113874277?searchTerm=wragge"},{"id":208986902,"url":"/newspaper/208986902","heading":"MR. C. L. WRAGGE.","category":"Article","title":{"id":1093,"value":"The Express and Telegraph (Adelaide, SA : 1867 - 1922)"},"date":"1894-08-18","page":4,"pageSequence":4,"relevance":{"score":198.03082,"value":"very relevant"},"snippet":"Mr. Clement Lindley Wragge, F.R.G.S., F.R. Met. S., is the son of a solicitor, and was born at Stourbridge, Worcestershire, on September 18, 1852, and educated at Uttoxeter","troveUrl":"https://trove.nla.gov.au/ndp/del/article/208986902?searchTerm=wragge"},{"id":162833980,"url":"/newspaper/162833980","heading":"Clement Wragge at Home.","category":"Article","title":{"id":698,"value":"The Sydney Mail and New South Wales Advertiser (NSW : 1871 - 1912)"},"date":"1894-09-08","page":491,"pageSequence":491,"relevance":{"score":197.89114,"value":"very relevant"},"snippet":"The name of Clement L. Wragge, F.R.G.S., F.R. Met. Soc, Queensland Government Meteorologist, is a household word throughout Australasia. It is scarcely less well-known throughout the British","troveUrl":"https://trove.nla.gov.au/ndp/del/article/162833980?searchTerm=wragge"},{"id":61384174,"url":"/newspaper/61384174","heading":"An American Clement Wragge.","category":"Article","title":{"id":64,"value":"Clarence and Richmond Examiner (Grafton, NSW : 1889 - 1915)"},"date":"1902-12-09","page":8,"pageSequence":8,"relevance":{"score":197.45099,"value":"very relevant"},"snippet":"Elias Hartz is the Clement Wragge of America. His fame throughout Pennsylvania is astonishing, and what is more, he deserves it. Just as there are men who use","troveUrl":"https://trove.nla.gov.au/ndp/del/article/61384174?searchTerm=wragge"},{"id":87003549,"url":"/newspaper/87003549","heading":"THE FAILURE OF CLEMENT WRAGGE.","category":"Article","title":{"id":344,"value":"The Bunbury Herald and Blackwood Express (WA : 1919 - 1929)"},"date":"1920-01-17","page":7,"pageSequence":7,"relevance":{"score":183.32722,"value":"very relevant"},"snippet":"There are still people who swear by Clement Wragge and honestly believe that he is gifted with the capacity of foretelling the weather correctly","troveUrl":"https://trove.nla.gov.au/ndp/del/article/87003549?searchTerm=wragge"},{"id":33148089,"url":"/newspaper/33148089","heading":"MR. WRAGGE AND THE MOON.","category":"Article","title":{"id":101,"value":"Western Mail (Perth, WA : 1885 - 1954)"},"date":"1897-12-17","page":26,"pageSequence":26,"relevance":{"score":182.796,"value":"very relevant"},"snippet":"Mr. Wragge offers the following as a change of subject:— It is gratifying to find that our recent forecasts are in course of verification to","troveUrl":"https://trove.nla.gov.au/ndp/del/article/33148089?searchTerm=wragge"},{"id":79155530,"url":"/newspaper/79155530","heading":"MR WRAGGE ON WEATHER CANNONS.","category":"Article","title":{"id":258,"value":"The Northern Miner (Charters Towers, Qld. : 1874 - 1954)"},"date":"1901-03-09","page":6,"pageSequence":6,"relevance":{"score":181.77545,"value":"very relevant"},"snippet":"I have been to Styria, have seen the cannons made in the forges, have witnessed the experiments, have visited Herr Stiger, the inventor of the","troveUrl":"https://trove.nla.gov.au/ndp/del/article/79155530?searchTerm=wragge"},{"id":82346354,"url":"/newspaper/82346354","heading":"MR WRAGGE ON WEATHER CANNONS.","category":"Article","title":{"id":269,"value":"The North Queensland Register (Townsville, Qld. : 1892 - 1905)"},"date":"1901-03-11","page":10,"pageSequence":10,"relevance":{"score":181.75746,"value":"very relevant"},"snippet":"I have been to Styria, have seen the cannons made in the forges, have witnessed the experiments, have visited Herr Stiger, the inventor of the","troveUrl":"https://trove.nla.gov.au/ndp/del/article/82346354?searchTerm=wragge"},{"id":70926752,"url":"/newspaper/70926752","heading":"GRAND EXTRAVAGANZA CONDUCTED BY MR. WRAGGE.","category":"Article","title":{"id":191,"value":"Worker (Brisbane, Qld. : 1890 - 1955)"},"date":"1898-06-11","page":6,"pageSequence":6,"relevance":{"score":170.46431,"value":"very relevant"},"troveUrl":"https://trove.nla.gov.au/ndp/del/article/70926752?searchTerm=wragge"},{"id":20858713,"url":"/newspaper/20858713","heading":"METEOROLOGY AND MUSIC. MR. WRAGGE'S \"REMARKS.\"","category":"Article","title":{"id":42,"value":"The Queenslander (Brisbane, Qld. : 1866 - 1939)"},"date":"1899-04-15","page":691,"pageSequence":"691 S","relevance":{"score":169.87007,"value":"very relevant"},"snippet":"In his General Remarks Mr. Wragge offers the following observations:—The distribution of pressure over Australasia today is very curious and complicated, ands","troveUrl":"https://trove.nla.gov.au/ndp/del/article/20858713?searchTerm=wragge"},{"id":279046339,"url":"/newspaper/279046339","heading":"GOLF Double Success to G. Wragge","category":"Article","title":{"id":1813,"value":"The Pastoral Times (South Deniliquin, NSW : 1866 - 1950)"},"date":"1948-07-06","page":2,"pageSequence":2,"relevance":{"score":169.41896,"value":"very relevant"},"snippet":"G. Wragge (99-30-69) won the T.B. Cup and singles handicap conducted by the Deniliquin Golf Club oh Saturday. These two events were held in","troveUrl":"https://trove.nla.gov.au/ndp/del/article/279046339?searchTerm=wragge"},{"id":133199201,"url":"/newspaper/133199201","heading":"Australia's Weather Prophet MR. CLEMENT WRAGGE.","category":"Article","title":{"id":356,"value":"Newcastle Morning Herald and Miners' Advocate (NSW : 1876 - 1954)"},"date":"1894-08-10","page":5,"pageSequence":5,"relevance":{"score":169.2405,"value":"very relevant"},"snippet":"IN the above sketch will be seen the features of one whose name is a household word, not only in the colony where he resides, but in Australasia. When people unconsciously","troveUrl":"https://trove.nla.gov.au/ndp/del/article/133199201?searchTerm=wragge"}]}}]}}
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'.