Get Avatar Image by Email
get_avatar_by_emailRetrieve a user's Gravatar avatar image by email address, with options for size, rating, and fallback defaults. Automatically normalizes and hashes the email for secure lookup.
Instructions
Retrieve the avatar image for a Gravatar profile using an email address. The email is automatically normalized and hashed before querying the Gravatar API. 'Get the avatar image for user@example.com' or 'Show me a 200px avatar for john.doe@company.com.'
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. | |
| Yes | The email address associated with the Gravatar profile. Can be any valid email format - the system will automatically normalize and hash the email for lookup. The email is processed securely and not stored. | ||
| 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. |