Follower/following counts for a feed
GET
/v1/feeds/{group}/{id}/stats
const url = 'http://localhost:3000/v1/feeds/example/example/stats';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/v1/feeds/example/example/stats \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”group
required
string
id
required
string
Responses
Section titled “Responses”Denormalized follower/following counts (spec §4).
Media typeapplication/json
object
follower_count
required
integer
following_count
required
integer
Examplegenerated
{ "follower_count": 1, "following_count": 1}Invalid, expired, revoked, or absent token.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
requestId
required
string
fields
Present only for VALIDATION_FAILED.
Array<object>
object
path
string
message
string
Example
{ "error": { "code": "VALIDATION_FAILED" }}