Skip to main content
GET
/
api
/
get_following
/
{username}
Get Following
curl --request GET \
  --url https://api.example.com/api/get_following/{username}
{
  "200": {},
  "404": {},
  "following": [
    {
      "username": "<string>",
      "avatar_url": "<string>"
    }
  ]
}
Retrieves a list of users that the specified user is following, ordered by most recently followed first.

Path Parameters

username
string
required
The username whose following list to retrieve

Response

following
array
Array of following objects
username
string
The username being followed
avatar_url
string
URL to the followed user’s avatar image (defaults to “default.png” if not set)

Status Codes

200
Success
Following list retrieved successfully
404
Error
User not found
{
  "error": "user not found"
}

Example Request

curl -X GET https://api.example.com/api/get_following/johndoe

Example Response

{
  "following": [
    {
      "username": "alice",
      "avatar_url": "https://example.com/avatars/alice.png"
    },
    {
      "username": "bob",
      "avatar_url": "default.png"
    },
    {
      "username": "charlie",
      "avatar_url": "https://example.com/avatars/charlie.png"
    }
  ]
}

Build docs developers (and LLMs) love