- Takes: Email
- Passive: the target is not contacted
- Cost: Credits depend on the providers used
Tries each provider in order and stops at the first match. Set parallel to true to query all providers at once.
Request body (JSON) · 6ShowHide
username
Your account username
password
Your account password
email
Email address to look up
provider
Comma-separated providers in search order, for example Gravatar,Microsoft
parallel
Set to "true" to query all listed providers at once
AllowDefaultProfilePictures
Set to TRUE to keep placeholder images; useful for email validation
Response fields · 9ShowHide
Name
Name associated with the email
Image
URL of the profile image
Valid
Validity flag returned by the API
City
City, if available
Country
Country, if available
IsDefault
Whether the image is a default placeholder
Success
True on a match, false on failure
RawData
Provider-specific raw data, usually a JSON or XML string; the format may change
Name
Provider that returned the result
curl -X POST 'https://avatarapi.com/v2/api.aspx' \
-H 'Content-Type: application/json' \
-d '{"username":"YOUR_USERNAME","password":"YOUR_PASSWORD","email":"jane@example.com","provider":"Gravatar,Microsoft"}'{
"Name": "Jane Example",
"Image": "https://example.com/avatar/0123456789abcdef.jpg",
"Valid": true,
"City": "",
"Country": "",
"IsDefault": false,
"Success": true,
"RawData": "{}",
"Source": {
"Name": "Gravatar"
}
}