Get Avatar Image by ID
get_avatar_by_idRetrieve a Gravatar avatar image by its identifier. Use this tool to fetch a profile's avatar with custom size, rating, and fallback options.
Instructions
Retrieve the avatar image for a Gravatar profile using an avatar identifier. More efficient when you already have the hashed identifier. 'Get the avatar image for this Gravatar ID' or 'Show me a 150px avatar for user ID abc123...'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Desired avatar size in pixels (1-2048). Images are square, so this sets both width and height. Common sizes: 80 (default web), 200 (high-res web), 512 (large displays). Gravatar will scale the image appropriately. | |
| rating | No | Maximum content rating to display. 'G' (general audiences), 'PG' (parental guidance), 'R' (restricted), 'X' (explicit). If user's avatar exceeds this rating, the default image is shown instead. | |
| forceDefault | No | When true, always returns the default image instead of the user's avatar. Useful for testing default options or ensuring consistent placeholder images. | |
| defaultOption | No | Fallback image style when no avatar exists. Options: '404' (return HTTP 404 error instead of image), 'mp' (mystery person silhouette), 'identicon' (geometric pattern), 'monsterid' (generated monster), 'wavatar' (generated face), 'retro' (8-bit style), 'robohash' (robot), 'blank' (transparent). If not specified, Gravatar's default image is returned when no avatar exists. | |
| avatarIdentifier | Yes | Avatar identifier for the Gravatar profile. An Avatar Identifier is an email address that has been normalized (e.g. lower-cased and trimmed) and then hashed with either SHA256 (preferred) or MD5 (deprecated). Note: Unlike profile identifiers, avatar identifiers cannot use URL slugs - only email hashes are supported. |