A C# API for searching on Wikipedia
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.


Wikipedia.NET - An implementation of the full text search API of Wikipedia


  • Based on RestSharp (http://restsharp.org) to deserialize the Wikipedia XML into objects
  • Support for all 283 languages on Wikipedia
  • Full support for all search parameters


Here is the simplest form of getting data from Wikipedia:

static void Main(string[] args)
	Wikipedia wikipedia = new Wikipedia();
	wikipedia.Limit = 5;
	QueryResult results = wikipedia.Search("Microsoft C#");

	Console.WriteLine("Found " + results.Search.Count + " English results:");

	foreach (Search s in results.Search)


http://en.wikipedia.org/wiki/Visual C++
http://en.wikipedia.org/wiki/Microsoft Visual C Sharp
http://en.wikipedia.org/wiki/Microsoft Roslyn
http://en.wikipedia.org/wiki/C Sharp (programming language)
http://en.wikipedia.org/wiki/Microsoft Visual Studio

For more examples, take a look at the Wikipedia.NET Client included in the project.