Search the collections
Api Documentation
Api Methods
Items
Themes
Tags
Locations
items/search
Search for items using a free text query. Results will be paged and sorted by relevance.
Parameters
| Parameter | Type | Default | Restrictions | Description |
|---|---|---|---|---|
q (required) |
string | Search term that is used for the free text query. | ||
detail (optional) |
integer | 1 | min>=1, max<=3 | Determines what level of detail the returned items will contain. 1 being the briefest through to 3, the most verbose. |
start (optional) |
integer | 1 | min>=1, max={totalItems} | Indicates at what item number to start paging at. If the value does not lie at the beginning of a page it will be rounded down to the nearest page. |
size (optional) |
integer | 1 | min>=1, max=500 | Specifies the amount of items to return per page. |
Example
For example this will search for items containing the text "tractor".
http://museumvictoria.com.au/collections/api/v1/items/search?q=tractor
The response will look something like this:
<items>
<pagedItems>
<item>
<id>1195489</id>
<name>Photograph - Daniel Harvey Pty Ltd, Tractor with Cultivator, ...</name>
<registrationNumber>MM 89310</registrationNumber>
<url>...</url>
<type>Image</type>
<summary>Photograph of a Howard DH22 tractor with a cultivator, manufactured ...</summary>
<description>Black and white photograph of a Howard DH22 tractor with a ..</description>
<image>
<description>Howard DH22 tractor with a cultivator, manufactured by ...</description>
<id>223139</id>
<title>Photograph - Tractor with cultivator</title>
</image>
</item>
...
</pagedItems>
<size>10</size>
<start>1</start>
<totalItems>101</totalItems>
</items>
Errors
| Code | Message |
|---|---|
| 1 | Maintenance - Site is down for maintenance and will be back shortly. |
| 4 | SearchTermError - Unable to Parse search term. |
| 400 | InvalidParameter - Request is either missing a required parameter or parameter is of an invalid type. |



