DigitalNZ

App · 3 actions

Search New Zealand's public cultural collections, read source and rights information, and count matches by category or collection.

Actions

ActionWhat it does
Count DigitalNZ matches by fieldGroup matching records by categories, content partners, collections, creators or decades and get a count for each group.
Get a DigitalNZ recordRead a record's metadata, the contributing organization, the source link and reuse rights.
Search DigitalNZ recordsFind images, maps, newspapers and other records across New Zealand collections.

Count DigitalNZ matches by field

Group matching records by categories, content partners, collections, creators or decades and get a count for each group.

Inputs

QueryquerytextRequired
Words to look for in DigitalNZ collection records.
Group bygroup_bytextRequired
Field to group counts by.One of: category, content_partner (Content partner), display_collection (Display collection), creator, decade.
Limitlimitnumber
Maximum groups to return (1 to 50).From 1 to 50.

Outputs

dataobject
The response from DigitalNZ.
Example output
{
  "data": {
    "search": {
      "facets": {},
      "result_count": 1
    }
  }
}

Get a DigitalNZ record

Read a record's metadata, the contributing organization, the source link and reuse rights.

Inputs

Record IDrecord_idnumberRequired
Numeric DigitalNZ record ID.At least 1.

Outputs

dataobject
The response from DigitalNZ.
Example output
{
  "data": {
    "record": {
      "category": [
        "example"
      ],
      "content_partner": [
        "example"
      ],
      "creator": [
        "example"
      ],
      "description": "example",
      "id": 1,
      "landing_url": "example",
      "rights": "example",
      "title": "example",
      "usage": [
        "example"
      ]
    }
  }
}

Search DigitalNZ records

Find images, maps, newspapers and other records across New Zealand collections.

Inputs

QueryquerytextRequired
Words to look for in DigitalNZ collection records.
Pagepagenumber
Page number to return, starting at 1.At least 1.
Page sizepage_sizenumber
Records to return per page (1 to 100).From 1 to 100.

Outputs

dataobject
The response from DigitalNZ.
Example output
{
  "data": {
    "search": {
      "page": 1,
      "per_page": 1,
      "result_count": 1,
      "results": [
        {
          "category": [
            "example"
          ],
          "content_partner": [
            "example"
          ],
          "creator": [
            "example"
          ],
          "description": "example",
          "id": 1,
          "landing_url": "example",
          "rights": "example",
          "title": "example",
          "usage": [
            "example"
          ]
        }
      ]
    }
  }
}

On this page