Get the list of streamers recommended by a user
GET
/xrpc/place.stream.live.getRecommendations
const url = 'https://example.com/xrpc/place.stream.live.getRecommendations?userDID=example';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.getRecommendations?userDID=example'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”userDID
required
The DID of the user whose recommendations to fetch
string format: did
The DID of the user whose recommendations to fetch
Responses
Section titled “Responses”Success
Media typeapplication/json
object
recommendations
required
Ordered list of recommendations
Array
One of:
object
did
required
The DID of the recommended streamer
string format: did
source
required
Source of the recommendation
string
userDID
The user DID this recommendation is for
string format: did
Example
{ "recommendations": [ { "source": "streamer" } ]}