# The National Archives Discovery

> Search the UK National Archives and partner archive catalogues, retrieve records and browse their hierarchy.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/national-archives-discovery

## Actions

### Get a UK archival record

Read a record's reference, description, holding institution and access information.

**Inputs**

- Record ID (`record_id`, text, required): Record ID from search results, such as C3181.

**Outputs**

- `data` (object): The response from The National Archives Discovery.

**Example output**

```json
{
  "data": {
    "accessConditions": "example",
    "citableReference": "example",
    "coveringDates": "example",
    "digitised": true,
    "heldBy": [
      {
        "xReferenceName": "example"
      }
    ],
    "id": "example",
    "isParent": true,
    "parentId": "example",
    "scopeContent": {
      "description": "example"
    },
    "title": "example"
  }
}
```

### List records within a UK archive series

Get the catalogue entries immediately below a series or other parent record.

**Inputs**

- Parent ID (`parent_id`, text, required): Parent record ID, such as C3181.
- Limit (`limit`, number): Maximum child records to return (1 to 100). From 1 to 100.
- After record ID (`after_record_id`, text): Last child ID from a previous page.

**Outputs**

- `data` (object): The response from The National Archives Discovery.

**Example output**

```json
{
  "data": {
    "assets": [
      {
        "citableReference": "example",
        "coveringDates": "example",
        "id": "example",
        "isParent": true,
        "parentId": "example",
        "title": "example"
      }
    ],
    "hasMoreAfterLast": true,
    "hasMoreBeforeFirst": true
  }
}
```

### Search UK archival records

Find records in Discovery by keyword or catalogue reference.

**Inputs**

- Query (`query`, text, required): Search terms or a catalogue reference.
- Limit (`limit`, number): Maximum results to return (1 to 100). From 1 to 100.
- Page (`page`, number): Results page number, from 0 to 100. From 0 to 100.

**Outputs**

- `data` (object): The response from The National Archives Discovery.

**Example output**

```json
{
  "data": {
    "count": 1,
    "nextBatchMark": "example",
    "records": [
      {
        "coveringDates": "example",
        "description": "example",
        "heldBy": [
          "example"
        ],
        "id": "example",
        "reference": "example",
        "title": "example"
      }
    ]
  }
}
```
