I was thinking of creating a nice question on Programming Puzzles & Code Golf related to Winter Bash 2014, but I need some specific data for that question - The number of hats of each user.
Thus my question. Is there a way to query the nunber of hats owned by a user using the stack exchange API ?