{"__v":0,"_id":"5707e577b8993d17005bb8be","category":{"__v":0,"_id":"5705b12221cfed0e00e8c580","project":"56abbf55f25f160d00e17f4e","version":"56abbf55f25f160d00e17f51","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-04-07T01:00:18.230Z","from_sync":false,"order":4,"slug":"server-side-api","title":"Server Side API"},"editedParams":true,"editedParams2":true,"parentDoc":null,"project":"56abbf55f25f160d00e17f4e","user":"56abbec30b9e0b0d00616274","version":{"__v":12,"_id":"56abbf55f25f160d00e17f51","project":"56abbf55f25f160d00e17f4e","createdAt":"2016-01-29T19:36:53.665Z","releaseDate":"2016-01-29T19:36:53.665Z","categories":["56abbf56f25f160d00e17f52","56abca6bf9757e0d007c6650","56acddfa0ab3c00d00ce3332","56af65da9d32e30d0006d30f","56af66cab34d210d003d9ad0","56af6afcd21e9c0d00b628d1","56af6d6ecc4cbd0d00ce2c88","5705b12221cfed0e00e8c580","570a5676ade45d0e00c1ad33","570d7d25d1e4b82000d9e385","570eac3c3160d10e0041df0e","575709000fd6a3200010dded"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-08T17:08:07.758Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl -XGET 'http://api.kongregate.com/accounts/vinsonb/badges.json'","language":"curl","name":"Retrieve User Badges"}]},"method":"get","results":{"codes":[{"name":"Retrieve User Badges","code":"[\n  {\n    \"badge_id\": 1993,\n    \"created_at\": \"2015-11-03T05:56:50-08:00\"\n  },\n  {\n    \"badge_id\": 1852,\n    \"created_at\": \"2012-11-27T18:34:48-08:00\"\n  },\n  {\n    \"badge_id\": 1853,\n    \"created_at\": \"2012-11-27T18:34:48-08:00\"\n  },\n  {\n    \"badge_id\": 1250,\n    \"created_at\": \"2010-12-08T09:48:34-08:00\"\n  },\n  {\n    \"badge_id\": 1251,\n    \"created_at\": \"2010-12-08T09:48:34-08:00\"\n  },\n  {\n    \"badge_id\": 250,\n    \"created_at\": \"2009-09-28T19:31:38-07:00\"\n  },\n  {\n    \"badge_id\": 249,\n    \"created_at\": \"2009-09-28T19:23:16-07:00\"\n  },\n  {\n    \"badge_id\": 248,\n    \"created_at\": \"2009-09-16T23:09:00-07:00\"\n  },\n  {\n    \"badge_id\": 128,\n    \"created_at\": \"2007-12-07T14:06:03-08:00\"\n  },\n  {\n    \"badge_id\": 127,\n    \"created_at\": \"2007-12-07T13:50:15-08:00\"\n  },\n  {\n    \"badge_id\": 126,\n    \"created_at\": \"2007-12-07T13:50:08-08:00\"\n  },\n  {\n    \"mobile_badge_id\": 2220,\n    \"created_at\": \"2013-12-19T18:26:14-08:00\"\n  },\n  {\n    \"mobile_badge_id\": 2927,\n    \"created_at\": \"2013-12-05T19:26:51-08:00\"\n  },\n  {\n    \"mobile_badge_id\": 2926,\n    \"created_at\": \"2013-09-16T17:29:52-07:00\"\n  },\n  {\n    \"mobile_badge_id\": 2916,\n    \"created_at\": \"2013-08-08T19:26:18-07:00\"\n  },\n  {\n    \"mobile_badge_id\": 2907,\n    \"created_at\": \"2013-08-08T09:02:57-07:00\"\n  },\n  {\n    \"mobile_badge_id\": 2219,\n    \"created_at\": \"2013-04-23T05:34:13-07:00\"\n  },\n  {\n    \"mobile_badge_id\": 2218,\n    \"created_at\": \"2013-04-23T05:34:12-07:00\"\n  },\n  {\n    \"mobile_badge_id\": 1717,\n    \"created_at\": \"2012-12-30T07:32:38-08:00\"\n  },\n  {\n    \"mobile_badge_id\": 1604,\n    \"created_at\": \"2011-03-29T10:02:02-07:00\"\n  },\n  {\n    \"mobile_badge_id\": 1724,\n    \"created_at\": \"2011-03-29T10:00:25-07:00\"\n  },\n  {\n    \"mobile_badge_id\": 1670,\n    \"created_at\": \"2011-02-16T15:03:41-08:00\"\n  },\n  {\n    \"mobile_badge_id\": 1611,\n    \"created_at\": \"2011-02-01T12:34:58-08:00\"\n  }\n]","language":"json","status":200}]},"settings":"","auth":"required","params":[{"_id":"5707e577b8993d17005bb8bf","ref":"","in":"path","required":true,"desc":"Username of the user to retrieve badges for","default":"","type":"string","name":"username"}],"url":"/accounts/:username/badges.json"},"isReference":true,"order":2,"body":"This endpoint allows you to retrieve a list of badges that a given user has been awarded. You can query for a list of all available badges using the [Badges](doc:server-api-badges) API.","excerpt":"Retrieves information about a user's badges","slug":"server-api-user-badges","type":"endpoint","title":"Badges - User"}

getBadges - User

Retrieves information about a user's badges

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

username:
required
string
Username of the user to retrieve badges for

Examples


Result Format


Documentation

This endpoint allows you to retrieve a list of badges that a given user has been awarded. You can query for a list of all available badges using the [Badges](doc:server-api-badges) API.

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}