Qrzy / bgg-xml-api-client

A simple library providing functions that return requested BGG data as JSON object.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get All Logged P

JGSolutions opened this issue · comments

Is there a way to get all plays there were logged between 2 dates?

Hey, this is more of a question about the API itself than this lib :)
According to: https://boardgamegeek.com/wiki/page/BGG_XML_API2#toc10
it should be possible, as it accepts mindate and maxdate parameters.
So, using the functions provided here, it would be like:

const { data } = getBggPlays({ username: 'Qrzy88', id: 167791, mindate: '2023-01-01', maxdate: '2023-01-31' })

as an example for all my (Qrzy88) plays of Terraforming Mars (id 167791) in January.

Yes thanks for reply. Probably more of a question for BGG but not sure who to ask.

The main question is if there is a way to get all play logs for all games. Not for a particular game.

Apparently it is, you can call it without id param and then it returns all the plays within given timaframe. :)

thank you soo much. will try it soon