Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONDecodeError when trying to call .get_vocabulary() #139

Open
luizmatheuz opened this issue Mar 9, 2024 · 4 comments · May be fixed by #141
Open

JSONDecodeError when trying to call .get_vocabulary() #139

luizmatheuz opened this issue Mar 9, 2024 · 4 comments · May be fixed by #141

Comments

@luizmatheuz
Copy link

Hey community!

I'm currently facing an error when trying to call .get_vocabulary() from the Duolingo API. Anybody else having the same issue or may know what is going on?

Thanks

@wsycqyz
Copy link

wsycqyz commented Mar 11, 2024

It seems that API is changed.
https://www.duolingo.com/vocabulary/overview
returns:(non json format)
<Response [200]>

@Mordano
Copy link

Mordano commented Mar 14, 2024

Duolingo made a change to their Vocabulary API... I ran into the same problem with my own project. At the same time they introduced a new feature to their app, a vocabulary exercise. If I have time I will try to reverse-engineer how that exercise gets its data. I assume that they updated their vocabulary endpoint to fit that new feature, which led to a change to deprecate the known endpoint.

@Iamnvincible
Copy link

same problem. It seems that the vocabulary/overview api is gone.

the new feature as @Mordano has mentioned , endpoint is https://www.duolingo.com/2017-06-30/users/{id}/courses/{lang1}/{lang2}/learned-lexemes?limit=50&sortBy=LEARNED_DATE&startIndex=0.
But this new api returns much less information as compared to the former, it is a pity. The old api provides the Unit one word belongs to.

@HumanBot000
Copy link

What is the state of this issue? I see a linked PR fixing this issue. Did anyone tested this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants