The libgravatar library contains an API for gravatar. WWW: https://github.com/KDE/libgravatar