# computer.localnetwork.directory.listRecords

> List the records of one collection in one account's repo that the directory indexed, by record key, last first, like com.atproto.repo.listRecords.

- Kind: query
- Authority: directory.localnetwork.computer
- Lexicon: 1
- Published by [localnetwork.computer](https://lexicon.garden/identity/did:plc:d42l64gsczg6qh2vo243xv5l), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.directory.listRecords)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.directory.listRecords/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.directory.listRecords/analytics)

## Query (`computer.localnetwork.directory.listRecords`)

Type: query · GET

### Parameters (query string)

- `actor` (string · did, required)
- `collection` (string · nsid, required)
- `cursor` (string): The record key the last page ended on.
  - Constraints: maxLength: 512
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50

### Output (application/json)

- `cursor` (string)
  - Constraints: maxLength: 512
- `records` (array, required)
  - `items` (ref)
    - Reference: `computer.localnetwork.directory.defs#recordView`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List the records of one collection in one account's repo that the directory indexed, by record key, last first, like com.atproto.repo.listRecords.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "maxLength": 512,
              "type": "string"
            },
            "records": {
              "items": {
                "ref": "computer.localnetwork.directory.defs#recordView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "records"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "format": "did",
            "type": "string"
          },
          "collection": {
            "format": "nsid",
            "type": "string"
          },
          "cursor": {
            "description": "The record key the last page ended on.",
            "maxLength": 512,
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "actor",
          "collection"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "computer.localnetwork.directory.listRecords",
  "lexicon": 1
}
```
