Bunpro API when?

Hello, I recently noticed that there is an Bunpro API option in the settings page. Yet despite generating a key, I haven’t been able to figure out how or if it is even possible to use it. Is there a Bunpro API out yet? If not now when? I don’t want to do anything crazy, just collecting the daily reviews every so often for a dashboard and for some automation stuff. Had it working for a bit just mimicking the page requests, but it seems to have broken for me now.
image

4 Likes

This looks relevant

https://patrickayoup.github.io/pybunpro/

it doesn’t look like there are many endpoints set up, but there is grammar points, study queue, and user info

1 Like

That doesn’t seem official. Plus its just a library for python.

3 Likes

It actually seems outdated. What I meant was if you look at that documentation it could point you in the direction of some endpoints

pybunpro/pybunpro at master · patrickayoup/pybunpro · GitHubinit.py

like if you check the documentation in the code you can see the urls of the endpoints. However, it does not seem to be accurate anymore.

2 Likes

Welcome to the community! :tada:

We previously had an API, with Docs and everything.

Maintaining was slowing down our development on other stuff, so we deprecated the API and removed the Docs.
Accessing the API Key is still doable as you mentioned, and this is mainly because the routes are still accessible, just not documented.

If we get enough people offering to do free labor volunteer work on useful/cool community projects/plugins etc, we could defs reconsider!

You can also of course reverse engineer our API that’s currently used on the website.
Just note that we can’t make any guarantees on it not changing at any point in time, unlike a normal API system with docs and stuff.
DM me if you have any questions about that.

6 Likes

well count me in as one of those volunteers. ive enjoyed trying reverse engineer the API thus far. my issue is it seems that the authentication token expires and i have not been able to catch the network token that refreshes it. feels like even a basic API could be useful to some of us.

3 Likes

@veritas_nz you can count me in as well, I’m interested.

5 Likes

Any chance you could share the old API docs? With the understanding that they’re outdated–but there might be some stuff in there that’s still applicable?

3 Likes

@veritas_nz @highliuk if there’s any update on this, please let me know! Im down to help too. enjuichang (Eric) · GitHub

2 Likes

Made used of what we have and found a way to at least get some data from bunpro by reverse engineering the endpoints (potentially a security vulnerability but you do need user login info to get to this point). I used the troubled grammar/ghost grammar points to create a chatbot using llms (https://bunpro-llm.streamlit.app/). Feel free to fork and commit (GitHub - enjuichang/bunpro-llm: A Streamlit-powered Japanese grammar assistant that leverages your Bunpro account data and LLM technology to provide personalized Japanese grammar explanations and assistance.)

1 Like

I’m not good at the api stuff and just try to play a bit with the api’s of the websites I’m using. Therefore I tried to make any sens of the bunPro api. My knowledge are is not good enough to make out the api endpoints in the documentations of the other tools. The only working endpoint i could make out is “study_queue”. Do anybody has some other working endpoints for me?