Social Media Scraping

How to Get the Estimated Age & Gender of a Social Media Creator (Using Just Their Profile Pic)

@adrian_horning_
2 mins read
Image of Instagram profile on left and the json of their age and gender on right

Table of Contents

Ever wish you could instantly figure out how old a creator is, or whether they're male or female, just by looking at their profile picture?

Well…now you can!

With Amazon Rekognition, you can analyze any profile picture and get things like:

  • Age range (e.g. 25–34)
  • Gender (Male/Female)
  • Confidence score (%)
  • Whether they’re smiling, wearing glasses, have a beard, etc.
  • Even their emotion (happy, sad, confused, etc.)

This is crazy powerful, especially for anyone doing influencer research, ad targeting, or demographic analysis.

How It Works

To get this kind of insight, here’s what you’d need to do:

  1. Scrape the creator’s social profile
  2. Download their avatar/profile image
  3. Send it to Amazon Rekognition
  4. Boom. Get the age/gender back

Here’s an example of the AWS Rekognition portion in Node.js:

 import { RekognitionClient, DetectFacesCommand } from "@aws-sdk/client-rekognition";

// Initialize the Rekognition client
const rekognition = new RekognitionClient({
  region: "us-east-1", // Your AWS region
  credentials: {
    accessKeyId: process.env.accessKeyId,
    secretAccessKey: process.env.secretAccessKey,
  },
});

// Prepare the parameters
const params = {
  Image: {
    Bytes: imageBuffer, // Buffer of the image
  },
  Attributes: ["ALL"], // Request all attributes
};

// Call Rekognition
const command = new DetectFacesCommand(params);
const response = await rekognition.send(command);

// Extract results
const face = response?.FaceDetails?.[0];
const result = {
  ageRange: {
    low: face?.AgeRange?.Low || null,
    high: face?.AgeRange?.High || null,
  },
  gender: face?.Gender?.Value || null,
  confidence: {
    gender: face?.Gender?.Confidence || null,
  },
};

Pretty slick, right?

Or… Just Use Scrape Creators (No Code Needed)

Don’t worry, we already built this for you.

With Scrape Creators, you can:

  • Just paste in a profile URL
  • We scrape the profile + download the image
  • Then run it through Amazon Rekognition for you
  • You get back age, gender, confidence

It’s one simple API call. No scraping or AWS setup required.

All you need is a GET request to our API, like this: https://api.scrapecreators.com/v1/detect-age-gender?url=https://x.com/adrian_horning_

Then you will get a response that will look like:

 {
    "ageRange": {
        "low": 27,
        "high": 35
    },
    "gender": "Male",
    "confidence": {
        "gender": 98.2852783203125
    }
}

And this is scary accurate.

When I got that picture taken I was 32 🤯

Try It Now

Use our /detect-age-gender endpoint and pass a social profile URL.

📄 Docs here

Or check out our full suite of APIs for TikTok, Instagram, YouTube, Reddit and more, including ad libraries.

Frequently Asked Questions

It’s an image and video analysis service from AWS that detects faces, emotions, age ranges, gender, and more.
It works on any platform where the profile image is of a real person, TikTok, Instagram, YouTube, etc.
It gives an age range and a confidence score for gender. It’s surprisingly good, but of course, it’s an estimate. Try it easily by using the Scrape Creators endpoint (100 free requests)
Amazon Rekognition has a free tier, but if you want no code and full automation, use Scrape Creators instead.

Try the ScrapeCreators API

Get 100 free API requests

No credit card required. Instant access.

Start building with real-time social media data in minutes. Join thousands of developers and businesses using ScrapeCreators.