Skip to main content
GET
/
api
/
get_followers
/
{username}
Get Followers
curl --request GET \
  --url https://api.example.com/api/get_followers/{username}
{
  "200": {},
  "404": {},
  "followers": [
    {
      "username": "<string>",
      "avatar_url": "<string>"
    }
  ]
}
Retrieves a list of users who follow the specified user, ordered by most recent followers first.

Path Parameters

username
string
required
The username whose followers to retrieve

Response

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

Status Codes

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

Example Request

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

Example Response

{
  "followers": [
    {
      "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