DuolingoNET 1.2.2

dotnet add package DuolingoNET --version 1.2.2
                    
NuGet\Install-Package DuolingoNET -Version 1.2.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DuolingoNET" Version="1.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DuolingoNET" Version="1.2.2" />
                    
Directory.Packages.props
<PackageReference Include="DuolingoNET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DuolingoNET --version 1.2.2
                    
#r "nuget: DuolingoNET, 1.2.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DuolingoNET@1.2.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DuolingoNET&version=1.2.2
                    
Install as a Cake Addin
#tool nuget:?package=DuolingoNET&version=1.2.2
                    
Install as a Cake Tool

DuolingoNET

NuGet NuGet

Unofficial .NET Core Duolingo (https://www.duolingo.com/) API. Available as a NuGet package.

Usage

  • Register an account on Duolingo.

  • Create an instance of the Duolingo class and provide it with either a username or email, a password and a HttpClient.

var duolingo = new Duolingo(username, password, httpclient);

Note: a valid Duolingo account is needed to get any data from the API. If you signed in with Google you need to switch to a Duolingo account.

Documentation

Account
GetUserDataRaw()
var duolingo = new Duolingo(username, password, httpclient);
var userData = GetUserDataRaw();

Returns a User.Root containing all the raw data for the user, as pulled by the API. Lacks ads and tracking data.

GetUserInfo()
var duolingo = new Duolingo(username, password, httpclient);
var userData = GetUserInfo();

Returns a UserInfo containing various information on the user.

GetFriends()
var duolingo = new Duolingo(username, password, httpclient);
var friends = GetFriends();

Returns a User.PointsRankingData representing the friends of the the user.

GetCalendar()
var duolingo = new Duolingo(username, password, httpclient);
var friends = GetCalendar();

Returns a User.Calendar representing the actions of the user.

GetStreak()
var duolingo = new Duolingo(username, password, httpclient);
var friends = GetStreak();

Returns a Streak representing the info on the active streak of the user.

Language
GetLearnedSkills()
var duolingo = new Duolingo(username, password, httpclient);
var skills = GetLearnedSkills();

Returns a List<User.Skill> containing all the skills learned within the active language("learned": True) by the user.

GetKnownWords()
var duolingo = new Duolingo(username, password, httpclient);
var skills = GetKnownWords();

Returns a List<string> containing all the words known within the active language by the user.

GetLexemeDataAsync()
var duolingo = new Duolingo(username, password, httpclient);
var lexeme = GetLexemeDataAsync(lexemeId);

Returns a Task<Lexeme.Root> representing a single word.

Paramaters

string lexemeId required

-- The id of the word you want to retrieve data for.

GetVocabularyAsync()
var duolingo = new Duolingo(username, password, httpclient);
var lexeme = GetVocabularyAsync(lexemeId);

Returns a Task<Vocabulary.Root> representing the user's vocabulary.

GetLearningLanguages()
var duolingo = new Duolingo(username, password, httpclient);
var learningLanguages = GetLearningLanguages();

Returns a List<User.Language> representing the languages being studied by the user.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.2 553 9/21/2021
1.2.1 436 9/15/2021
1.2.0 403 9/3/2021
1.1.0 489 6/19/2021
1.0.0 457 6/18/2021