When making an api call at /users/:username/badges.json only 1 batch per type(gold, silver and bronze) is obtained in return even if their are more than one badge in a type of badge for a user. Also if a badge has been granted multiple times their is no information of it in the data recived.
it looks like this
{
**"user_badges":[**
{
**"id":20,**
**"granted_at":"2015-06-30T03:35:18.661Z",**
**"badge_id":1,**
**"user_id":13,**
**"granted_by_id":-1**
**},**
{
**"id":1302,**
**"granted_at":"2015-07-22T10:30:55.626Z",**
**"badge_id":27,**
**"user_id":13,**
**"granted_by_id":-1**
**},**
{
**"id":1301,**
**"granted_at":"2015-07-22T10:30:55.606Z",**
**"badge_id":26,**
**"user_id":13,**
**"granted_by_id":-1**
**}**
],
"badges":[
{
"id":1,
"name":"Basic User",
"description":null,
"grant_count":2791,
"allow_title":false,
"multiple_grant":false,
"icon":"fa-user",
"image":null,
"listable":true,
"enabled":true,
"badge_grouping_id":4,
"system":true,
"badge_type_id":3
},
{
"id":27,
"name":"Champion",
"description":null,
"grant_count":2,
"allow_title":false,
"multiple_grant":false,
"icon":"fa-user-plus",
"image":null,
"listable":true,
"enabled":true,
"badge_grouping_id":2,
"system":true,
"badge_type_id":1
},
{
"id":26,
"name":"Campaigner",
"description":null,
"grant_count":2,
"allow_title":false,
"multiple_grant":false,
"icon":"fa-user-plus",
"image":null,
"listable":true,
"enabled":true,
"badge_grouping_id":2,
"system":true,
"badge_type_id":2
}
],
"badge_types":[
{
"id":3,
"name":"Bronze",
"sort_order":7
},
{
"id":1,
"name":"Gold",
"sort_order":9
},
{
"id":2,
"name":"Silver",
"sort_order":8
}
],
"users":[
{
"id":13,
"username":"medha",
"uploaded_avatar_id":null,
"avatar_template":"/letter_avatar/medha/{size}/5_fcf819f9b3791cb8c87edf29c8984f83.png"
},
{
"id":-1,
"username":"system",
"uploaded_avatar_id":1,
"avatar_template":"/user_avatar/community.vuniquehotels.com/system/{size}/1_1.png"
}
],
"user":{
"id":13,
"username":"medha",
"uploaded_avatar_id":null,
"avatar_template":"/letter_avatar/medha/{size}/5_fcf819f9b3791cb8c87edf29c8984f83.png",
"name":"Medha Lal",
"last_posted_at":"2015-08-11T07:55:59.660Z",
"last_seen_at":"2015-08-18T10:17:58.283Z",
"bio_raw":"i am a happy go lucky kind of a girl...who loves to read,party & travel & explore new places.",
"bio_cooked":"<p>i am a happy go lucky kind of a girl...who loves to read,party & travel & explore new places.</p>",
"created_at":"2015-06-29T11:37:25.583Z",
"website":"http://",
"website_name":null,
"can_edit":true,
"can_edit_username":true,
"can_edit_email":false,
"can_edit_name":true,
"stats":[
{
"action_type":13,
"count":13,
"id":null
},
{
"action_type":4,
"count":5,
"id":null
},
{
"action_type":5,
"count":1,
"id":null
},
{
"action_type":1,
"count":3,
"id":null
},
{
"action_type":2,
"count":3,
"id":null
},
{
"action_type":7,
"count":1,
"id":null
},
{
"action_type":11,
"count":4,
"id":null
}
],
"can_send_private_messages":true,
"can_send_private_message_to_user":true,
"bio_excerpt":"i am a happy go lucky kind of a girl...who loves to read,party & travel & explore new places.<br>",
"trust_level":1,
"moderator":false,
"admin":true,
"title":null,
**"badge_count":8,**
"notification_count":2029,
"has_title_badges":false,
"custom_fields":{ },
"pending_count":0,
"post_count":6,
"can_be_deleted":false,
"can_delete_all_posts":false,
"locale":"",
"email_digests":true,
"email_private_messages":true,
"email_direct":true,
"email_always":false,
"digest_after_days":7,
"mailing_list_mode":false,
"auto_track_topics_after_msecs":240000,
"new_topic_duration_minutes":2880,
"external_links_in_new_tab":true,
"dynamic_favicon":false,
"enable_quoting":true,
"muted_category_ids":[
],
"tracked_category_ids":[
],
"watched_category_ids":[
],
"private_messages_stats":{
"all":13,
"mine":0,
"unread":5
},
"disable_jump_reply":false,
"gravatar_avatar_upload_id":null,
"custom_avatar_upload_id":null,
"muted_usernames":[
],
"invited_by":null,
"custom_groups":[
],
"featured_user_badge_ids":[
20,
1302,
1301
],
"card_badge":null
}
}