---
title: "Get Archon records collection"
method: GET
path: "/repository/v1/collection"
tags: ["Repository"]
---

# Get Archon records collection

`GET /repository/v1/collection`

## Request

- Base URL: `https://discovery.nationalarchives.gov.uk/API`
- URL: `https://discovery.nationalarchives.gov.uk/API/repository/v1/collection`
- Auth: none declared
- TypeScript: <https://skmtc.dev/the-national-archives/apis/discovery/docs/repository/v1/collection/get.ts> (a function with typed inputs; its response is checked against the schema)

Values of {batchStartRecordId} and {batchStartMark} are case sensitive

## Query parameters

- `batchStartRecordId` string
- `direction` 'NEXT' | 'PREV'
- `includeCursor` boolean
- `batchStartMark` string
- `limit` integer

## Response `200`

OK

- AssetCollectionViewModelRepositoryIdentityViewModel: Represents a collection of assets with pagination information.
  - `Assets` RepositoryIdentityViewModel[]: Gets or sets the list of assets in the collection.
    - `ArchonReference` string: ARCHON code
    - `Id` string: Repository ID
    - `IsParent` boolean: Has records
    - `SortKey` string: Sort key
    - `Title` string: Repository name
    - `Location` string[]: Location/address of the archive
  - `HasMoreAfterLast` boolean: Gets or sets a value indicating whether there are more assets after the last item in the collection.
  - `HasMoreBeforeFirst` boolean: Gets or sets a value indicating whether there are more assets before the first item in the collection.

## Other responses

- `400`: Bad request
- `404`: Not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/the-national-archives/apis/discovery.md) - [All operations](https://skmtc.dev/the-national-archives/apis/discovery/llms.txt) - [OpenAPI document](https://skmtc.dev/the-national-archives/apis/discovery/revisions/1e8c76e26ab1?raw)
