Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.22 KB

email_lookup.md

File metadata and controls

22 lines (16 loc) · 1.22 KB

Lookup By Email

The Ohloh API allows you to retrieve an Account using the MD5 hash of the account’s email address.

You can pass the MD5 hash of an email address in any URL that normally expects an Account ID.

This is useful if you know someone’s email address, but do not know the Ohloh account ID. This might be the case if you are hosting a web site with registered users who have supplied their email addresses. With the Ohloh API, you can easily find Ohloh statistics about your registered users.

For example, here’s how to find the account data for [email protected]:

require 'digest'
Digest::MD5.hexdigest('[email protected]').to_s
f1c4c8746d8e42872f6db32977ad5d61
  • Pass this hash in place of the account ID in the normal http request:
$ curl https://www.openhub.net/accounts/f1c4c8746d8e42872f6db32977ad5d61.xml?api_key=<YOUR API KEY>

Ohloh does not publish email addresses. You must already know the email address of the account you are looking for. Because the search is done using the MD5 hash of the email address, the email address comparison is case sensitive and must match exactly.