How to Identify the Gender of your Twitter Followers

Do you ever wonder what is the demographics of people who follow you on Twitter. How many of your Twitter friends are men? Or women? Or random colored eggs, people who are either too lazy to change their default avatar or maybe they are Twitter bots.

The Graph Search of Facebook can provide deep insights into the demographics of people who are connected with you on the social network. For instance, you can write a natural language query like “My friends who are older than 30” or “My female friends who live in Delhi” and the answer will be available instantly. Such granular data is however not available for Twitter users.

Who Follows You? Males, Females or Eggs

How do you programmatically determine the gender of a person on Twitter?

The Twitter API doesn’t provide the gender information but there’s a workaround. You can take the profile picture of a Twitter user, feed it into Siftr’s Vision API and it will detect the gender of the most prominent face in the photograph. You can go a step further and use Microsoft’s Face API and it will even provide the approximate age of the subject in the photo.

Image Recognition to know the gender of Twitter followersDetecting Gender of Twitter users with Image Recognition

Analyze your Twitter Followers

Meet Twitter Analyzer, a web app that analyzes your Twitter network (friends or followers) and logs the details of all user inside a Google Spreadsheet (see screenshot). You get to know their gender, how often they tweet, where are they located, when did they last join Twitter and more.

Getting started is easy. Go to labnol.org/analyzer and sign-in with your Google Account. It requires all these permissions because the underlying Google Script saves everything inside a Google Spreadsheet that will be in your Google Drive. Once the Twitter followers have been analyzed, you’ll get an email notification.

After you’ve granted the necessary permissions, click “Authorize Twitter” to allow the sheet to access your Twitter account. It will never post any tweet to your profile. Next click the scan button and close the page. You’ll get an email once the analysis is complete and this time will vary based on the number of followers you have.

Twitter Eggs Go to labnol.org/analyzer to scan your Twitter followers

Identifying Humans vs Twitter Bots

Camisani Calzolari wrote a set of rules (PDF) that can help detect real users from bots, inactive accounts and fake Twitter users. Some of the rules are:

  • The account has written at least 50 tweets
  • the account has at least 30 followers
  • the profile contains a URL
  • the profile contains an image
  • the profile contains a biography
  • it has been inserted into other Twitter lists

The Google Spreadsheet that is generated by the Twitter Analyzer app includes most of this information as well. Thus, apart from gender analysis, the Analyzer app may help you figure out how many fake bots and inactive profiles follow you on Twitter.

Amit Agarwal is a web geek, solo entrepreneur and loves making things on the Internet. Google recently awarded him the Google Developer Expert and Google Cloud Champion title for his work on Google Workspace and Google Apps Script.

Awards & Recognition

Google Developer Expert

Google Developer Expert

Google awarded us the Developer Expert title recogizing our work in Workspace

ProductHunt Golden Kitty

ProductHunt Golden Kitty

Our Gmail tool won the Lifehack of the Year award at ProductHunt Golden Kitty Awards

Microsoft MVP Alumni

Microsoft MVP Alumni

Microsoft awarded us the Most Valuable Professional title for 5 years in a row

Google Cloud Champion

Google Cloud Champion

Google awarded us the Champion Innovator award for technical expertise

Want to stay up to date?
Sign up for our email newsletter.

We will never send any spam emails. Promise 🫶🏻