Skip to content

com.atproto.repo.listRecords

Lexicon Version: 1

Type: query

List a range of records in a repository, matching a specific collection. Does not require auth.

Parameters:

NameTypeReq’dDescriptionConstraints
repostringThe handle or DID of the repo.Format: at-identifier
collectionstringThe NSID of the record type.Format: nsid
limitintegerThe number of records to return.Min: 1
Max: 100
Default: 50
cursorstring
reversebooleanFlag to reverse the order of the returned records.
Output:
  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
cursorstring
recordsArray of #record

Type: object

Properties:

NameTypeReq’dDescriptionConstraints
uristringFormat: at-uri
cidstringFormat: cid
valueunknown

{
"lexicon": 1,
"id": "com.atproto.repo.listRecords",
"defs": {
"main": {
"type": "query",
"description": "List a range of records in a repository, matching a specific collection. Does not require auth.",
"parameters": {
"type": "params",
"required": [
"repo",
"collection"
],
"properties": {
"repo": {
"type": "string",
"format": "at-identifier",
"description": "The handle or DID of the repo."
},
"collection": {
"type": "string",
"format": "nsid",
"description": "The NSID of the record type."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50,
"description": "The number of records to return."
},
"cursor": {
"type": "string"
},
"reverse": {
"type": "boolean",
"description": "Flag to reverse the order of the returned records."
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"records"
],
"properties": {
"cursor": {
"type": "string"
},
"records": {
"type": "array",
"items": {
"type": "ref",
"ref": "#record"
}
}
}
}
}
},
"record": {
"type": "object",
"required": [
"uri",
"cid",
"value"
],
"properties": {
"uri": {
"type": "string",
"format": "at-uri"
},
"cid": {
"type": "string",
"format": "cid"
},
"value": {
"type": "unknown"
}
}
}
}
}