Skip to content

Is it possible to get the number of followers that an account has? #167

Open

Description

@nmills3

I'm trying to get the follower count of the user that the bot is running as, but i can't seem to find a way to do it

Activity

  1. sirkris commented on May 28, 2023

    @sirkris
    Owner

    Yes, though it's kinda hard to find because the Reddit API hides it in a weird place. You're familiar with user subreddits, right? What you need to do is actually retrieve the data for that user's subreddit. The "Subscribers" property in this case is actually the user's follower count.

    For example, here's a quick and dirty way to retrieve my follower count in C#:

    Console.WriteLine($"KrisCraig has {reddit.Models.Subreddits.About("u_KrisCraig").Subscribers} followers.");

    Now that I think of it, this is downright counter-intuitive. I think maybe I should go ahead and add a "Followers" property that performs the necessary API call and retrieves/caches the subscribers count.

  2. self-assigned this
    on May 28, 2023
  3. added
    enhancementNew feature or request
    questionSomebody asked a question.
    documentationSomething in the docs needs improvement.
    on May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationSomething in the docs needs improvement.enhancementNew feature or requestquestionSomebody asked a question.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions