BGG XML API redirected from XMLAPI
Introduction
You can access some information from the geek via the BoardGameGeek XML API. Each base URI is described and the various parameters are listed. The parameters and their values are URL-encoded in the standard manner. There are some examples at the end. The resultant output XML is not described here, but XML is "self-describing" right? The output should be quite clear from simple inspection.
For all of the parameters mentioned below, the first parameter you list follows a ? (question mark), and each subsequent parameter follows an & (ampersand).
Related wikis: Data Mining, and BGG XML API2
Commands
Search for games by name and by AKAs
/xmlapi/search
- Parameters:
- search: String to search for (required)
- exact: Exact name/aka search only (set it to 1, absent by default) [exact doesn't seem to work yet in BGG 2.0]
Retrieve information about a particular game or games
/xmlapi/boardgame/<gameid>
/xmlapi/boardgame/<gameid>,<gameid2>[...]
Retrieve games in a user's collection
/xmlapi/collection/<username>
Retrieve games in a user's collection. Important definition: A user's collection includes any games the user has added to her collection on BGG. This includes games she owns, games she used to own, games she's rated, games upon which she's commented, games she's played, and games on her wishlist, just to name a few. In this section, references to the collection mean this broader sense of BGG collection, not the user's personal stash of games.
- Example: http://www.boardgamegeek.com/xmlapi/collection/eekspider
- Filters: (You can use any combination of the below)
- own: In (or exclude for 0) a user's collection. That is, the user currently owns it. Collections include games that
- rated
- played
- comment: include (or exclude) games with comments
- trade: games listed for trade
- want
- wishlist
- wanttoplay
- wanttobuy
- prevowned
- preordered
- hasparts
- wantparts
- notifycontent
- notifysale
- notifyauction
- wishlistpriority: (a number from 1 to 5)
- minrating: minimum and maximum user rating
- maxrating
- minbggrating: minimum and maximum bgg rating
- maxbggrating
- minplays: minumum and maximum number of recorded plays
- maxplays
- Other parameters:
- showprivate: Show the private fields (purchase price, etc). Default is 1 for logged in users, 0 otherwise, and showprivate=1 only works on your own collection, when you are logged in.
Retrieve the messages from a forum/game thread
/xmlapi/thread/<threadid>
- Example: http://www.boardgamegeek.com/xmlapi/thread/381021 [Note: Your browser may interpret this as a request to subscribe to an RSS feed.]
- start: Start article (default = 0)
- count: Number of articles (default and max = 100)
- username: Username to filter for
Retrieve entries from a geeklist
/xmlapi/geeklist/<listid>
Note: the old "start" and "count" parameters are obsolete and no longer supported. They were required in the original api if you wanted to retreive all items on a geeklist longer than 150 items as that's the most that could be returned on a single api call. Currently however the geeklist xml api returns the entire geeklist (all items) in a single call.
|