Get a list of livestream segments for a user
GET
/xrpc/place.stream.live.getSegments
const url = 'https://example.com/xrpc/place.stream.live.getSegments?userDID=example&limit=50';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/xrpc/place.stream.live.getSegments?userDID=example&limit=50'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”userDID
required
The DID of the potentially-following user
string format: did
The DID of the potentially-following user
limit
integer
before
string format: date-time
Responses
Section titled “Responses”Success
Media typeapplication/json
object
segments
Array<object>
object
cid
required
string format: cid
record
required
Example generated
{ "segments": [ { "cid": "example", "record": "example" } ]}