Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Displaying Stackoverflow rating/ reputation/ badges in website

Earning reputation in Stackoverfow is a hard job, and somewhere i'll feel happy if i can get the Reputations Displayed in my website. Is it possible?

Does stackoverflow exposes any API with respect to user?

[UPDATE]

When i simply type in

http://api.stackoverflow.com/1.1/users/{user-id}/

it gives me a JSON data, which seems fine to me. Is it OKAY to use it like this?

Got it from stackapps.com replied by Nathan Osman

Thanks.

like image 371
Shubh Avatar asked Apr 16 '13 22:04

Shubh


1 Answers

Stackoverflow provides an Option to display your Reputations in your website . we can do it via two way's(as per my knowledge):-

Hard Way(doing everything from your own)

  • Hit the URL http://api.stackoverflow.com/1.1/users/{User-Id}/
  • The above returns JSON data, which can be consumed via Ajax, and we can extract Reputations, Badges etc.
  • Create your User Interface and bind the values according to your need.

Easy Way(using Flair)

  • Go go User profile and look for hyperlink as "flair" shown below:- Flair Option In user Profile

  • Click on it and you'll be redirected to Flair Page. Shown below: Flair Themes

  • It gives HTML snippet, just copy and paste it where you need.

thanks.

like image 60
Shubh Avatar answered Sep 19 '22 12:09

Shubh