obsidian-media-db-plugin icon indicating copy to clipboard operation
obsidian-media-db-plugin copied to clipboard

boardgamegeek API call now requires registration and API key

Open bharker75 opened this issue 1 month ago • 2 comments

I started receiving 401 errors when using Media DB to pull board game info from BGG. Tried outside of Obsidian and same result. Turns out BoardGameGeek is rolling out registration requirements to access its API

https://boardgamegeek.com/using_the_xml_api

We are in the process of requiring registration and authorization for use of the XML API. If you are an existing XML API user, in order to prevent a disruption in your service, we recommend that you register and add authorization to all of your XML API requests.

Media DB will need to add a user assignable BoardGameGeek key same as OMDb, Moby, etc.

bharker75 avatar Oct 29 '25 15:10 bharker75

:(

mProjectsCode avatar Oct 29 '25 16:10 mProjectsCode

I wouldn't mind trying to make a PR for this if someone temporarily shares an api key. Personally I don't like that the registration asks for full legal name and the city you live in.

It's a shame that all of these previously open api's all need authentication now or sometimes even monthly subscriptions.

ltctceplrm avatar Nov 04 '25 15:11 ltctceplrm

Hi, I would love to have this working with BGG's API again. I have an API key I can share. What's the best way to get it to you, @ltctceplrm ?

MichaelSims avatar Nov 16 '25 23:11 MichaelSims

Maybe a pastebin with burn after reading turned on (or just a 24h expiration date)

ltctceplrm avatar Nov 17 '25 00:11 ltctceplrm

https colon slash slash pastebin dot com slash xCCDEVT9

It will prompt you for a password, which is axJrEf8CdV

I have burn after reading turned on, so if someone has retrieved the above before you, let me know so I can revoke the token.

Thank you for looking into this

MichaelSims avatar Nov 17 '25 07:11 MichaelSims

I've got the API key, thanks.

ltctceplrm avatar Nov 17 '25 10:11 ltctceplrm

@MichaelSims I've made a PR (#223) to fix it, if you can't build from the source then here is the main.js file to put in your plugin folder.

If you want you can revoke the token now or you can wait a bit in case I need to fix something.

Please let me know if it works well

ltctceplrm avatar Nov 17 '25 12:11 ltctceplrm

It works like a charm! So many thanks to you sir!

EDIT: I'll keep that key active for a while (at least a couple of weeks) in case you need to do any testing along the way to getting it into a release.

MichaelSims avatar Nov 17 '25 17:11 MichaelSims