Gravatar existence check
POST /api/gravatar-checkCheck whether an email address has a Gravatar: hashes the normalized email (MD5, pure CPU - the raw address is never sent upstream), probes gravatar.com for an avatar, and fetches the public profile when one exists (display name, username, profile URL). Send POST /api/gravatar-check with no required fields (2 optional) and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with hash, exists, avatarUrl, profile and note.
Accepts a raw email or a precomputed MD5/SHA-256 hash. Signal-only: a Gravatar's existence suggests a real, web-active address but does NOT verify identity or deliverability - pair with /api/email-validate for MX checks.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
email | string | no | Email address to check (hashed locally; never sent upstream). |
hash | string | no | Precomputed lowercase MD5 (32 hex) or SHA-256 (64 hex) of the normalized email. Provide email OR hash. |
Example request
curl -i -X POST https://agent402.tools/api/gravatar-check \
-H "Content-Type: application/json" \
-d '{"hash":"205e460b479e2e5b48aec07710c08d50"}'
Without payment this returns HTTP 402 Payment Required with the exact price for gravatar-check; any x402 v2 or MPP client pays it and retries.
Example response
{
"hash": "205e460b479e2e5b48aec07710c08d50",
"exists": true,
"avatarUrl": "https://gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50",
"profile": {
"displayName": "Beau Lebens",
"preferredUsername": "beau",
"profileUrl": "https://gravatar.com/beau"
},
"note": "Existence is a web-activity signal only - it does not verify identity or deliverability."
}
| Field | Type | Always present | In the example |
|---|---|---|---|
hash | string | yes | 205e460b479e2e5b48aec07710c08d50 |
exists | boolean | yes | true |
avatarUrl | string | yes | https://gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50 |
profile | object | yes | 3 fields: displayName, preferredUsername, profileUrl |
note | string | yes | Existence is a web-activity signal only - it does not verify identity or deli... |
From an MCP client
catalog.call {
"slug": "gravatar-check",
"params": {
"hash": "205e460b479e2e5b48aec07710c08d50"
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for gravatar-check; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
- Every field is optional. An input the tool rejects returns an HTTP 4xx whose body carries
error,tool,expected,requiredandexample. - A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is cancelled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
GETorHEADto /api/gravatar-check returns the same 402 quote, so the price can be read without a body. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/gravatar-check", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"hash": "205e460b479e2e5b48aec07710c08d50"
}),
});
Related tools
ASN + IP geolocation
POST /api/asn-infoLook up the Autonomous System (ASN), prefix, country, registry, and allocation date for an IPv4 address - or for a hostn…
DKIM key lookup
POST /api/dkim-lookupFetch and parse a DKIM public-key record at <selector>._domainkey.<domain> (RFC 6376). Returns the parsed key params (al…
DMARC check
POST /api/dmarc-checkFetch and validate a domain's DMARC policy at _dmarc.<domain> (RFC 7489). Surfaces the enforcement policy (none/quaranti…
DNS lookup
POST /api/dns-lookupResolve any DNS record type for a host: A, AAAA, MX, TXT, CNAME, NS, SOA, CAA, SRV, PTR. Returns the records plus a coun…
DNS propagation check
POST /api/dns-propagationResolve the same DNS record against 4 public resolvers (Google, Cloudflare, Quad9, OpenDNS) in parallel; surface diverge…
Email deliverability check
POST /api/email-deliverabilityEnd-to-end email-auth report for a domain: SPF + DMARC + DKIM (probes common selectors automatically) + MX records + sco…