Explore the workings of the Trove API (v3)
parameter | value |
---|---|
q | wragge |
category | newspaper |
encoding | json |
l-illustrated | true |
l-illustrationType | Photo |
{
"query" : "wragge",
"category" : [ {
"code" : "newspaper",
"name" : "Newspapers & Gazettes",
"records" : {
"s" : "*",
"n" : 20,
"total" : 1935,
"next" : "https://api.trove.nla.gov.au/v3/result?q=wragge&category=newspaper&encoding=json&l-illustrated=true&l-illustrationType=Photo&s=AoIIQvebSCg0OTEzMzUyNQ%3D%3D",
"nextStart" : "AoIIQvebSCg0OTEzMzUyNQ==",
"article" : [ {
"id" : "145708725",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/145708725",
"heading" : "Mr. Clement Wragge.",
"category" : "Article",
"title" : {
"id" : "713",
"title" : "Table Talk (Melbourne, Vic. : 1885 - 1939)"
},
"date" : "1902-11-20",
"page" : "13",
"pageSequence" : "13",
"relevance" : {
"score" : 216.41500854492188,
"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://nla.gov.au/nla.news-article145708725?searchTerm=wragge"
}, {
"id" : "21765046",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/21765046",
"heading" : "Mrs. Adelaide Wragge.",
"category" : "Article",
"title" : {
"id" : "16",
"title" : "The Brisbane Courier (Qld. : 1864 - 1933)"
},
"date" : "1931-12-16",
"page" : "13",
"pageSequence" : "13",
"relevance" : {
"score" : 216.0685272216797,
"value" : "very relevant"
},
"snippet" : "Formerly of Victoria, and in 1864 Mayoress of Melbourne, the late Mrs. Wragge, who died recently, had been",
"troveUrl" : "https://nla.gov.au/nla.news-article21765046?searchTerm=wragge"
}, {
"id" : "215898727",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/215898727",
"heading" : "BAD LUCK FOR WRAGGE.",
"category" : "Article",
"title" : {
"id" : "1170",
"title" : "Sport (Adelaide, SA : 1911 - 1948)"
},
"date" : "1933-09-07",
"page" : "4",
"pageSequence" : "4",
"relevance" : {
"score" : 200.19427490234375,
"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://nla.gov.au/nla.news-article215898727?searchTerm=wragge"
}, {
"id" : "162833980",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/162833980",
"heading" : "Clement Wragge at Home.",
"category" : "Article",
"title" : {
"id" : "698",
"title" : "The Sydney Mail and New South Wales Advertiser (NSW : 1871 - 1912)"
},
"date" : "1894-09-08",
"page" : "491",
"pageSequence" : "491",
"relevance" : {
"score" : 197.88755798339844,
"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://nla.gov.au/nla.news-article162833980?searchTerm=wragge"
}, {
"id" : "87003549",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/87003549",
"heading" : "THE FAILURE OF CLEMENT WRAGGE.",
"category" : "Article",
"title" : {
"id" : "344",
"title" : "The Bunbury Herald and Blackwood Express (WA : 1919 - 1929)"
},
"date" : "1920-01-17",
"page" : "7",
"pageSequence" : "7",
"relevance" : {
"score" : 183.32382202148438,
"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://nla.gov.au/nla.news-article87003549?searchTerm=wragge"
}, {
"id" : "33148089",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/33148089",
"heading" : "MR. WRAGGE AND THE MOON.",
"category" : "Article",
"title" : {
"id" : "101",
"title" : "Western Mail (Perth, WA : 1885 - 1954)"
},
"date" : "1897-12-17",
"page" : "26",
"pageSequence" : "26",
"relevance" : {
"score" : 182.8036651611328,
"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://nla.gov.au/nla.news-article33148089?searchTerm=wragge"
}, {
"id" : "20858713",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/20858713",
"heading" : "METEOROLOGY AND MUSIC. MR. WRAGGE'S \"REMARKS.\"",
"category" : "Article",
"title" : {
"id" : "42",
"title" : "The Queenslander (Brisbane, Qld. : 1866 - 1939)"
},
"date" : "1899-04-15",
"page" : "691",
"pageSequence" : "691 S",
"relevance" : {
"score" : 169.8726348876953,
"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://nla.gov.au/nla.news-article20858713?searchTerm=wragge"
}, {
"id" : "20858554",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/20858554",
"heading" : "METEOROLOGY AND MUSIC. MR WRAGGE'S REMARKS.",
"category" : "Article",
"title" : {
"id" : "42",
"title" : "The Queenslander (Brisbane, Qld. : 1866 - 1939)"
},
"date" : "1899-04-15",
"page" : "687",
"pageSequence" : "687 S",
"relevance" : {
"score" : 169.2427520751953,
"value" : "very relevant"
},
"snippet" : "In his General Remarks Mr Wragge of fers the following observations.—The dis tribution of pressure over Australasia to day is very curious and complicated, on .",
"troveUrl" : "https://nla.gov.au/nla.news-article20858554?searchTerm=wragge"
}, {
"id" : "224164262",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/224164262",
"heading" : "Mr. Clement Wragge's Death AUCKLAND, Monday.",
"category" : "Article",
"title" : {
"id" : "1180",
"title" : "The Sun (Sydney, NSW : 1910 - 1954)"
},
"edition" : "FINAL EXTRA",
"date" : "1922-12-11",
"page" : "8",
"pageSequence" : "8 S",
"relevance" : {
"score" : 168.40159606933594,
"value" : "very relevant"
},
"snippet" : "The death is announced of the well-known scientist. Mr. Clement Wragge, F.R.G.S., F.R.M.S., F.R.C.A. Mr. Wragge had held many Important",
"troveUrl" : "https://nla.gov.au/nla.news-article224164262?searchTerm=wragge"
}, {
"id" : "165903575",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/165903575",
"heading" : "MR. CLEMENT WRAGGE. FORECAST AND PRAYER.",
"category" : "Article",
"title" : {
"id" : "823",
"title" : "Observer (Adelaide, SA : 1905 - 1931)"
},
"date" : "1919-12-06",
"page" : "5",
"pageSequence" : "5",
"relevance" : {
"score" : 167.69081115722656,
"value" : "very relevant"
},
"snippet" : "Mr. Clement Wragge wrote to The Observer on November 17, from \"Wragge's Australasian Weather Bureau.\" Birkenhead, Auckland (N.Z.):—\"A report has",
"troveUrl" : "https://nla.gov.au/nla.news-article165903575?searchTerm=wragge"
}, {
"id" : "87517976",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/87517976",
"heading" : "MR. CLEMENT WRAGGE. DEATH IN NEW ZEALAND",
"category" : "Article",
"title" : {
"id" : "291",
"title" : "Chronicle (Adelaide, SA : 1895 - 1954)"
},
"date" : "1922-12-16",
"page" : "37",
"pageSequence" : "37",
"relevance" : {
"score" : 158.62319946289062,
"value" : "very relevant"
},
"snippet" : "Our Auckland correspondent reports the death at the age of 70 years of MR. Clement Wragge, who had a widespread reputation in South Australia and other",
"troveUrl" : "https://nla.gov.au/nla.news-article87517976?searchTerm=wragge"
}, {
"id" : "162513592",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/162513592",
"heading" : "THE 1938 DROUGHT A Clement Wragge Forecast",
"category" : "Article",
"title" : {
"id" : "648",
"title" : "Mudgee Guardian and North-Western Representative (NSW : 1890 - 1954)"
},
"date" : "1938-05-19",
"page" : "16",
"pageSequence" : "16",
"relevance" : {
"score" : 158.03659057617188,
"value" : "very relevant"
},
"snippet" : "ABOUT 25 years ago the late Mr. clement wragge, Government meteorologist, delivered a lecture in Wangaratta. Mudgee District Ambulance Waggon.",
"troveUrl" : "https://nla.gov.au/nla.news-article162513592?searchTerm=wragge"
}, {
"id" : "197307937",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/197307937",
"heading" : "MOUNT KOSCIUSKO OBSERVATORY. WHAT MR. WRAGGE SAYS.",
"category" : "Article",
"title" : {
"id" : "319",
"title" : "Leader (Melbourne, Vic. : 1862 - 1918, 1935)"
},
"date" : "1897-12-11",
"page" : "5",
"pageSequence" : "5",
"relevance" : {
"score" : 157.18553161621094,
"value" : "very relevant"
},
"snippet" : "Mr. Clement Wragge, meteorologist to the Queensland Government, who has proceeded to Mount Kosciusko for the purpose of establishing a high-level observatory on its summit, has furnished",
"troveUrl" : "https://nla.gov.au/nla.news-article197307937?searchTerm=wragge"
}, {
"id" : "58587529",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/58587529",
"heading" : "Illustrated Interviews Christie the Wizard— Wragge Routed",
"category" : "Article",
"title" : {
"id" : "93",
"title" : "Sunday Times (Perth, WA : 1902 - 1954)"
},
"date" : "1915-03-28",
"page" : "11",
"pageSequence" : "11",
"relevance" : {
"score" : 156.9502410888672,
"value" : "very relevant"
},
"snippet" : "A \"Sunday Times\" scribe met our old friend W. Bede Christie in the vestibule of the Shaftesbury Hotel the other morning. That gentleman had",
"troveUrl" : "https://nla.gov.au/nla.news-article58587529?searchTerm=wragge"
}, {
"id" : "129697637",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/129697637",
"heading" : "MR. HAROLD LAMB TO MISS O. M. WRAGGE.",
"category" : "Article",
"title" : {
"id" : "596",
"title" : "Punch (Melbourne, Vic. : 1900 - 1918; 1925)"
},
"date" : "1914-03-12",
"page" : "33",
"pageSequence" : "33",
"relevance" : {
"score" : 148.47088623046875,
"value" : "very relevant"
},
"snippet" : "The celebration of St. David's Day took place on Monday, March 2. The Welsh people had their 41st annual picnic on board the Hygeia and at Sorrento. The P.S. Hygeia left. Port",
"troveUrl" : "https://nla.gov.au/nla.news-article129697637?searchTerm=wragge"
}, {
"id" : "51750912",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/51750912",
"heading" : "WEATHER CYCLES. SEASONAL FORECASTS. Clement Wragge and Others.",
"category" : "Article",
"title" : {
"id" : "30",
"title" : "The West Australian (Perth, WA : 1879 - 1954)"
},
"date" : "1945-05-28",
"page" : "4",
"pageSequence" : "4",
"relevance" : {
"score" : 146.3816680908203,
"value" : "very relevant"
},
"snippet" : "\"Recently I heard the opinion expressed that the late Mr Clement Wragge had prophesied that this year there would be the worst",
"troveUrl" : "https://nla.gov.au/nla.news-article51750912?searchTerm=wragge"
}, {
"id" : "29124448",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/29124448",
"heading" : "WEATHER FORECASTING Ancient Method of Hindus Mr. Wragge's Predictions.",
"category" : "Article",
"title" : {
"id" : "10",
"title" : "The Mercury (Hobart, Tas. : 1860 - 1954)"
},
"date" : "1925-12-25",
"page" : "7",
"pageSequence" : "7",
"relevance" : {
"score" : 139.10511779785156,
"value" : "very relevant"
},
"snippet" : "People are saying. \"Wragge predicted this.\" What Mr. Clement Wragge actually predicted I give below from a report in \"The Mercury\" of his lecture at",
"troveUrl" : "https://nla.gov.au/nla.news-article29124448?searchTerm=wragge"
}, {
"id" : "21811480",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/21811480",
"heading" : "In the South-West Corner. WRAGGE\" AND THE DROUGHT.",
"category" : "Article",
"title" : {
"id" : "42",
"title" : "The Queenslander (Brisbane, Qld. : 1866 - 1939)"
},
"date" : "1903-04-11",
"page" : "812",
"pageSequence" : "812 S",
"relevance" : {
"score" : 139.06031799316406,
"value" : "very relevant"
},
"snippet" : "\"Wragge,\" of 2nd April, writes on the subject of the drought thus:—\"In view of the many inquiries which have reached us from all parts of the Australian",
"troveUrl" : "https://nla.gov.au/nla.news-article21811480?searchTerm=wragge"
}, {
"id" : "278915332",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/278915332",
"heading" : "W.D.H.A. APPOINTS THIRD PRESIDENT IN 16 YEARS Mrs. D. Wragge, 10 years, and Mrs. L. Wragge, 6 years, Previous Officers",
"category" : "Article",
"title" : {
"id" : "1813",
"title" : "The Pastoral Times (South Deniliquin, NSW : 1866 - 1950)"
},
"date" : "1949-08-02",
"page" : "1",
"pageSequence" : "1",
"relevance" : {
"score" : 125.81491088867188,
"value" : "very relevant"
},
"snippet" : "MRS. LEN Wragge, president of the West Deniliquin Hospital Auxiliary for the past six years, declined nomination when the annual meeting was held on Saturday. One of the earliest members of the auxiliary, Mrs.",
"troveUrl" : "https://nla.gov.au/nla.news-article278915332?searchTerm=wragge"
}, {
"id" : "49133525",
"url" : "https://api.trove.nla.gov.au/v3/newspaper/49133525",
"heading" : "MR. CLEMENT WRAGGE. ADVICE TO THE AGED. \"TRY TO KEEP YOUNG.\"",
"category" : "Article",
"title" : {
"id" : "34",
"title" : "The Advertiser (Adelaide, SA : 1889 - 1931)"
},
"date" : "1922-12-13",
"page" : "14",
"pageSequence" : "14",
"relevance" : {
"score" : 123.80328369140625,
"value" : "very relevant"
},
"snippet" : "Mrs. Cowan, of Norwood, is in possession of one at the last letters written by Mr. dement Wragge, the well-known meteorologist. The letter, which was",
"troveUrl" : "https://nla.gov.au/nla.news-article49133525?searchTerm=wragge"
} ]
}
} ]
}
Version 3 of the API was made available in July 2023. For more information about the changes made in version 3 see the official release notes. I've also created a summary of breaking changes for users wanting to update their code from version 2 to version 3.
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 the key to your request either using the key
parameter, or setting X-API-KEY
in the request headers.
See the Trove API v3 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.
See the Trove API v3 status page to check for problems.
https://api.trove.nla.gov.au/v3/result?q=wragge&category=all&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
wragge
|
|
category
|
category(ies) to search in (required) |
all
|
possible values are 'all', 'newspaper', 'magazine', 'image', 'research', 'book', 'diary', 'music', 'people', 'list' |
encoding
|
format of results |
json
|
possible values are 'xml' (default) or 'json' |
https://api.trove.nla.gov.au/v3/result?q=wragge&category=book,newspaper&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
wragge
|
|
category
|
category(ies) to search in (required) |
book,newspaper
|
separate multiple categorys with commas |
encoding
|
format of results |
json
|
possible values are 'xml' (default) or 'json' |
https://api.trove.nla.gov.au/v3/result?q=wragge&category=newspaper&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
wragge
|
|
category
|
category(ies) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
possible values are 'xml' (default) or 'json' |
https://api.trove.nla.gov.au/v3/result?q=wragge&category=newspaper&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query |
wragge
|
|
category
|
category(ies) to search in |
newspaper
|
|
encoding
|
format of results |
json
|
possible values are 'xml' (default) or 'json' |
https://api.trove.nla.gov.au/v3/result?q=wragge&category=newspaper&encoding=json&n=100
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query |
wragge
|
|
category
|
category(ies) 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/v3/result?q=wragge&category=newspaper&encoding=json&sortby=dateasc
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query |
wragge
|
|
category
|
category(ies) 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/v3/result?q=wragge&category=newspaper&encoding=json&reclevel=full
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
wragge
|
|
category
|
category(ies) 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 category. 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
.
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query |
wragge
|
|
category
|
category(ies) to search in |
newspaper
|
|
encoding
|
format of results |
json
|
possible values are 'xml' (default) or 'json' |
include
|
include extra information |
tags
|
possible values include 'tags', 'comments', and 'lists'; repeat parameter for multiple values |
include
|
include extra information |
comments
|
possible values include 'tags', 'comments', and 'lists'; repeat parameter for multiple values |
The accepted values for the include
parameter differ across categorys, but some values, like 'tags' and 'comments', are consistent. Other examples are included below.
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query |
wragge
|
|
category
|
category(ies) to search in |
newspaper
|
you can only harvest from one category at a time, so this must be set to a single category 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: category
must be set to a single category, 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/v3/result?q=wragge&category=newspaper&encoding=json&l-category=Article
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
wragge
|
|
category
|
category(ies) 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/v3/result?q=wragge&category=newspaper&encoding=json&l-state=Victoria
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
wragge
|
|
category
|
category(ies) 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/v3/result?q=wragge&category=newspaper&encoding=json&l-decade=192
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
wragge
|
|
category
|
category(ies) 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 (optional) |
wragge
|
|
category
|
category(ies) 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 (optional) |
wragge
|
|
category
|
category(ies) 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/v3/result?q=firstpageseq:1&category=newspaper&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
firstpageseq:1
|
use the |
category
|
category(ies) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
date:[1942-10-31T00:00:00Z TO 1942-11-30T00:00:00Z]
|
use the |
category
|
category(ies) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
wragge date:[1942-11-01T00:00:00Z TO 1942-11-02T00:00:00Z]
|
use the |
category
|
category(ies) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
https://api.trove.nla.gov.au/v3/result?q=wragge&category=newspaper&encoding=json&l-illustrated=true
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
wragge
|
|
category
|
category(ies) 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 (optional) |
wragge
|
|
category
|
category(ies) 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-illustrationType
|
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.
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
wragge
|
|
category
|
category(ies) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
l-wordCount
|
filter by number of words in the article |
<100 Words
|
accepted values are '<100 Words', '100 - 1000 Words', or '1000+ Words' |
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
wragge has:tags
|
add |
category
|
category(ies) to search in (required) |
newspaper
|
|
encoding
|
format of results |
json
|
|
include
|
tags
|
you need to specifically |
https://api.trove.nla.gov.au/v3/result?q=wragge&category=newspaper&encoding=json&include=articletext
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
wragge
|
|
category
|
category(ies) 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/v3/result?q=%00&category=newspaper&encoding=json&facet=category&n=0
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
%00
|
'%00' is an empty search, so will return everything |
category
|
category(ies) 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 |
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
%00
|
'%00' is an empty search, so will return everything |
category
|
category(ies) 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/v3/result?q=weather&category=book&encoding=json&l-format=Thesis
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
weather
|
|
category
|
category(ies) 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/v3/result?q=weather NOT format:Book &category=image&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
weather NOT format:Book
|
by adding |
category
|
category(ies) to search in (required) |
image
|
|
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/v3/result?q=weather date:[* TO 1900]&category=book&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
weather date:[* TO 1900]
|
using the |
category
|
category(ies) to search in (required) |
book
|
|
encoding
|
format of results |
json
|
https://api.trove.nla.gov.au/v3/result?q=weather imageInd:thumbnail &category=image&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
weather imageInd:thumbnail
|
set |
category
|
category(ies) to search in (required) |
image
|
|
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/v3/result?q=wragge&category=image&encoding=json&include=workversions
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
wragge
|
|
category
|
category(ies) to search in (required) |
image
|
|
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 (optional) |
weather fullTextInd:y
|
set |
category
|
category(ies) to search in (required) |
magazine
|
|
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.
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
weather
|
|
category
|
category(ies) to search in (required) |
magazine
|
|
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 (optional) |
weather "https://nla.gov.au/nla.obj-68375465"
|
|
category
|
category(ies) to search in (required) |
magazine
|
|
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.
parameter | parameter note | value | value note |
---|---|---|---|
q
|
the search query (optional) |
rights:Free
|
see the Trove help documentation for a full list of possible values for |
category
|
category(ies) to search in (required) |
image
|
|
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.
Facets break the result set into sections and can provide a useful overview. Note that there are limits on the number of facets returned, so they might not include the whole result set.
https://api.trove.nla.gov.au/v3/result?category=all&facet=decade&n=0&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
category
|
category(ies) to search in (required) |
all
|
|
encoding
|
format of results |
json
|
|
facet
|
facet to return |
decade
|
|
n
|
number of results |
0
|
We just want facets, not the list of results. |
https://api.trove.nla.gov.au/v3/result?category=all&facet=partnerNuc&n=0&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
category
|
category(ies) to search in (required) |
all
|
|
encoding
|
format of results |
json
|
|
facet
|
facet to return |
partnerNuc
|
|
n
|
number of results |
0
|
We just want facets, not the list of results. |
Contributors are identified by NUC identifiers.
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/v3/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/v3/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/v3/newspaper/titles?encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
encoding
|
format of results |
json
|
https://api.trove.nla.gov.au/v3/gazette/titles?encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
encoding
|
format of results |
json
|
https://api.trove.nla.gov.au/v3/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/v3/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.
Although this endpoint is included in the technical documention, as of 23 May 2023 it was returning no results. Hopefully it'll start working soon!
https://api.trove.nla.gov.au/v3/magazine/titles?encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
encoding
|
format of results |
json
|
Organisations can be nested under other organisations (as children
), this makes the data structure a bit complex.
https://api.trove.nla.gov.au/v3/contributor?q=&encoding=json
parameter | parameter note | value | value note |
---|---|---|---|
q
|
search query (optional) |
|
leave blank for everything |
encoding
|
format of results |
json
|
https://api.trove.nla.gov.au/v3/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'.