-
Notifications
You must be signed in to change notification settings - Fork 128
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
Request: Call to get daily XP totals for past 7 days #114
Comments
Hi @saltedlolly, It is possible with duolingo API, but this package doesn't implement this method. The endpoint is www.duolingo.com/users/{userID}/xp_summaries It returns an array for the given time range, as following: Hope it helps. |
Thanks - this is just what I have been looking for! Unfortunately, I'm struggling to make it work. Could you possibly provide me with an example query? Sorry, I'm quite new at this. I tried |
Sorry, my bad. The URL should be The 2017-06-30 is missing. It's just a fixed prefix Duolingo currently use for their API endpoint. Example:
|
Amazing! Exactly what I needed! And even better it seems I don't even need to be authenticated. Many thanks. |
You're right, it works even without Authorization header or cookies, didn't realize that before. |
Thanks for all your help. As an aside, is there a query I can make to return the userid of a provided username? |
Yes, there is an endpoint which returns user information by username, it contains among other fields the userID:
e.g.: {
"users": [
{
"joinedClassroomIds": [],
"streak": 1873,
"id": 14397890
}
]
} Lot's of other things as well, but you can get ID from here. |
@igorskh, could you tell me where you took that API screenshot? I have previously searched for documentation on Duolingo's API, but had little success. What you have in that screenshot is certainly the kind of thing I would be interested in looking at. |
@golmschenk I have a repo with openAPI docs https://github.com/igorskh/duolingo-api |
I thought you might be interested to see what I built: https://twitter.com/saltedlolly/status/1512107599747067913 |
I want to recreate the Graph that displays the XP score for the last 7 days on a Tidbyt device: https://www.tidbyt.com
Currently the API let's you get the current daily XP score for right now, but I'd really like a call that also returns the total XP achieved for each of the past 7 days. Maybe something like this:
Would this be at all possible? Is there any way to get this data from Duolingo?
The text was updated successfully, but these errors were encountered: