Skip to main content

Get User Following

GET /:username/following

Description

Returns a paginated list of accounts followed by a user.

Request Parameters

Requires Authentication: true

PATH PARAMS

NameTypeRequiredDescription
usernamestringYesUsername of the target account.

QUERY PARAMS

NameTypeRequiredDescription
pagenumberNoPage number. Default is 1.
maxPageSizenumberNoPage size. Maximum is 20.

Usage Example

await axios.get("https://api.daykeeper.app/johndoe/following", {
headers: {
Authorization: `Bearer ${accessToken}`,
},
})

Success Response

{
"message": "Following fetched successfully",
"data": [],
"page": 1,
"pageSize": 0,
"maxPageSize": 20,
"totalPages": 0,
"totalCount": 0
}

Error Response

CodeDescription
401Missing or invalid access token
402One of the users is blocked
404User not found
409Private account route not accessible to the viewer
500Server error