# Trove

> Search digitized Australian newspapers and gazettes, and retrieve article and publication details from the National Library of Australia.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/trove

## Actions

### Get a Trove newspaper article

Read article metadata, including its publication, date, page and Trove link.

**Inputs**

- Article ID (`article_id`, text, required): Article ID from search results or the Trove article URL.

**Outputs**

- `data` (object): The response from Trove.

**Example output**

```json
{
  "data": {
    "category": "example",
    "date": "example",
    "heading": "example",
    "id": "example",
    "page": "example",
    "snippet": "example",
    "title": {
      "endDate": "example",
      "id": "example",
      "publisher": "example",
      "startDate": "example",
      "state": "example",
      "title": "example",
      "troveUrl": "example"
    },
    "troveUrl": "example"
  }
}
```

### Get a Trove newspaper title

Read publication details such as the publisher, state and date range for a newspaper title.

**Inputs**

- Title ID (`title_id`, text, required): Title ID from an article's title field.

**Outputs**

- `data` (object): The response from Trove.

**Example output**

```json
{
  "data": {
    "endDate": "example",
    "id": "example",
    "publisher": "example",
    "startDate": "example",
    "state": "example",
    "title": "example",
    "troveUrl": "example"
  }
}
```

### Search Trove newspaper articles

Search digitized newspapers and gazettes by keyword. Optionally narrow by year or continue from a page token.

**Inputs**

- Query (`query`, text, required): Words or a phrase to search for.
- Year (`year`, number): Publication year to search. From 1700 to 2200.
- Page size (`page_size`, number): Maximum articles per page (1 to 100). From 1 to 100.
- Page token (`page_token`, text): Next page token returned as nextStart in the previous page.

**Outputs**

- `data` (object): The response from Trove.

**Example output**

```json
{
  "data": {
    "category": [
      {
        "code": "example",
        "name": "example",
        "records": {
          "article": [
            {
              "category": "example",
              "date": "example",
              "heading": "example",
              "id": "example",
              "page": "example",
              "snippet": "example",
              "title": {
                "endDate": "example",
                "id": "example",
                "publisher": "example",
                "startDate": "example",
                "state": "example",
                "title": "example",
                "troveUrl": "example"
              },
              "troveUrl": "example"
            }
          ],
          "nextStart": "example",
          "total": 1
        }
      }
    ],
    "query": "example"
  }
}
```
