Ssocialgraph.dev
API reference / Age & gender / Age & gender image analysis

Age & gender image analysis

Analyze a non-empty batch of publicly accessible image URLs and return age and gender estimates.

1 credit per successful call Errors are never charged

Request

GET https://socialgraph.dev/api/v1/age-gender/analyze/batch/download

Send your API key as Authorization: Bearer YOUR_API_KEY. Parameters go in the query string.

Parameters

NameTypeDescription
image_urls
required
array
max 10 items
Up to 10 publicly accessible HTTPS image URLs.

Code examples


Example response

[
    {
        "url": "https://example.com/photo-with-face.jpg",
        "result": {
            "age": 55,
            "gender": "Man",
            "face_confidence": 0.8426
        }
    },
    {
        "url": "https://example.com/photo-without-face.png",
        "result": null
    },
    {
        "url": "https://example.com/missing.jpg",
        "error": "Failed to download https://example.com/missing.jpg: HTTP 404",
        "status_code": 400
    }
]

Errors

StatusMeaningCharged?
401Missing, invalid or revoked API keyNo
402Not enough credits (insufficient_credits)No
404The account or post doesn't existNo
422Missing or invalid parametersNo
502 / 503The data source is temporarily unavailableNo

All error codes →

Try it live: Age & gender image analysis GET

🔒 Preset demo input. The live demo analyses a public-domain portrait of Abraham Lincoln (1863). Sign up free to use your own.

Start with 100 free credits

Create an account in seconds. No card, no subscription. Credits never expire.

Create free account →