Skip to content

place.stream.media.getVideoList

Lexicon Version: 1

Type: query

List videos for a given repo DID, newest first. Returns hydrated video views with author info and view counts.

Parameters:

NameTypeReq’dDescriptionConstraints
repostringDID of the repo whose videos to list.Format: did
limitintegerMaximum number of videos to return.Min: 1
Max: 100
Default: 25
cursorstringPagination cursor from a previous response.

Output:

  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
videosArray of place.stream.media.getVideo#videoView
cursorstringPagination cursor for the next page, if any.

Possible Errors:

  • RepoNotFound: No repo indexed at the supplied DID.

{
"lexicon": 1,
"id": "place.stream.media.getVideoList",
"defs": {
"main": {
"type": "query",
"description": "List videos for a given repo DID, newest first. Returns hydrated video views with author info and view counts.",
"parameters": {
"type": "params",
"required": ["repo"],
"properties": {
"repo": {
"type": "string",
"format": "did",
"description": "DID of the repo whose videos to list."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 25,
"description": "Maximum number of videos to return."
},
"cursor": {
"type": "string",
"description": "Pagination cursor from a previous response."
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["videos"],
"properties": {
"videos": {
"type": "array",
"items": {
"type": "ref",
"ref": "place.stream.media.getVideo#videoView"
}
},
"cursor": {
"type": "string",
"description": "Pagination cursor for the next page, if any."
}
}
}
},
"errors": [
{
"name": "RepoNotFound",
"description": "No repo indexed at the supplied DID."
}
]
}
}
}