Forums : Ohloh API Discussion

How do I get a person's no of commits?

I'm messing around with the Ohloh API and PHP and I just found something's missing (or maybe I'm so dumb I've not found the way to do it ;).

I'm able to get the number of commits by a user to a specific project but not his 'full' set of changes, the number of commits a person has done. Is there any way to get it without recurring to the already-served widget?



over 7 years ago

Hi Giulio,

Yes, this data is not yet available through the API.

Internally, we have a data structure called a "Position" which joins an account to a project contribution. Positions are created when someone clicks the "I am this person" button on a contributor page.

Positions are not yet exposed through the API. This means you can't get the list of projects contributed to by an account, and so by extension you also can't get the commits associated with an account.

There's no technical reason that this data is not available -- we just had to limit the scope of the API to fit in available development time. It could be added relatively simply, and when we have time to work on the API again it will certainly be added.


Robin Luckey

over 7 years ago

Dear Robin,

Any update on developing this front of the API?




about 6 years ago

Anything new on that?


Johann Schmitz

over 5 years ago

No, there have been no changes to the API in quite a while.


Robin Luckey

over 5 years ago

I'm interested by this feature too, any news on this ?


C├ędric Vidal

about 5 years ago

Any news now that Ohloh has new owners? This is basically a blocker for my intended application.


Jon Nordby

over 4 years ago

It's interesting~



about 4 years ago

Any news? :)


Jon Nordby

almost 4 years ago

Ideally I'd like to be able to get a graph for a person/contributor similar to that off a project. To be able to see how the commits per month developers, number of lines of code contributed in different languages, et.c


Jon Nordby

over 3 years ago

Post a Response