Module Group: Accounts
Parsing Order: 180
Database Size: 5.232 GB
The followers_api provides access to follower and following relationships, including mutes/ignores and historical follow activity.
{
"id": "followers_api",
"group_id": "accounts",
"parsing_order": 180,
"required_modules": ["chain_api"],
"parse_reversible": true,
"parsed_ops": ["custom_json"],
"available_events": ["onFollowAccount", "onUnfollowAccount"],
"store_history": true,
"store_history_days": 90
}
Returns this module's active configuration.
Endpoint
/followers_api/getConfig
Returns the list of accounts following a given account.
Endpoint
/followers_api/getFollowers/:target/:limit?/:offset?
Example
/followers_api/getFollowers/steemchiller/10
Example Response:
{
"code": 0,
"result": [
"a-0-0",
"a-0-0-0",
"a-0-0-0-a",
"a-2",
"a-7",
"a-a-0",
"a-a-a",
"a-a-a-a",
"a-a-lifemix",
"a-angel"
]
}
Returns the list of accounts that a given account follows.
Endpoint
/followers_api/getFollowing/:source/:limit?/:offset?
Example
/followers_api/getFollowing/steemchiller/10
Example Response:
{
"code": 0,
"result": [
"adeljose",
"afzalqamar",
"aiyumi",
"akdx",
"andyjaypowell",
"angel76",
"angelahbl",
"anneadam",
"anusha96",
"anyiglobal"
]
}
Returns followers of the target that are also followed by the source (mutual connections).
Endpoint
/followers_api/getKnownFollowers/:source/:target/:limit?/:offset?
Example
/followers_api/getKnownFollowers/blocktrades/steemchiller/10
Example Response:
{
"code": 0,
"result": [
"abigail-dantes",
"acidyo",
"creativetruth",
"zest"
]
}
These 4 accounts follow @steemchiller AND are followed by @blocktrades.
Returns accounts that have muted/ignored the target.
Endpoint
/followers_api/getIgnorers/:target/:limit?/:offset?
Example
/followers_api/getIgnorers/steemchiller/10
Example Response:
{
"code": 0,
"result": [
"angeltirado",
"anonymous-09",
"ayra-stark",
"blankfish",
"conformity",
"dalaunge",
"jnetsworld",
"johnpatrick12",
"johnpm75",
"kemsa"
]
}
Returns accounts that the source has muted/ignored.
Endpoint
/followers_api/getIgnored/:source/:limit?/:offset?
Example
/followers_api/getIgnored/steemchiller/10
Example Response:
{
"code": 0,
"result": []
}
Empty result means @steemchiller hasn't muted anyone.
Returns both follower and following counts for an account.
Endpoint
/followers_api/getCounts/:account
Example
/followers_api/getCounts/steemchiller
Example Response:
{
"code": 0,
"result": {
"followers": 6432,
"following": 295
}
}
Returns the number of followers for an account.
Endpoint
/followers_api/getFollowerCount/:target
Example
/followers_api/getFollowerCount/steemchiller
Example Response:
{
"code": 0,
"result": 6432
}
Returns the number of accounts a user is following.
Endpoint
/followers_api/getFollowingCount/:source
Example
/followers_api/getFollowingCount/steemchiller
Example Response:
{
"code": 0,
"result": 295
}
History is stored for the last 90 days.
Returns historical follow events where accounts followed the target.
Endpoint
/followers_api/getFollowedHistory/:target/:fromTime-:toTime/:limit?/:offset?
Example
/followers_api/getFollowedHistory/steemchiller/1767000000-1767640000/10
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
:target |
string | No | Account that was followed |
:fromTime |
int | No | Start time (Unix timestamp) |
:toTime |
int | No | End time (Unix timestamp) |
:limit |
int | Yes | Max results |
:offset |
int | Yes | Result offset |
Returns historical follow events where the source followed other accounts.
Endpoint
/followers_api/getFollowHistory/:source/:fromTime-:toTime/:limit?/:offset?
Returns historical unfollow events where accounts unfollowed the target.
Endpoint
/followers_api/getUnfollowedHistory/:target/:fromTime-:toTime/:limit?/:offset?
Returns historical unfollow events where the source unfollowed other accounts.
Endpoint
/followers_api/getUnfollowHistory/:source/:fromTime-:toTime/:limit?/:offset?
| Metric | @steemchiller |
|---|---|
| Followers | 6,432 |
| Following | 295 |
| Known followers with @blocktrades | 4 |
| Accounts muted | 0 |