Skip to content

AppeazeTheCheese/EmojipediaApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmojipediaApi

Unofficial Emojipedia.org API for .NET written in C#.

Dependencies:

Currently retrieves:

  • Emoji (as string)
  • Unicode Name
  • Apple Name
  • "Also Known As" names
  • Emoji Description
  • URL to the Emojipedia page

Examples:

Retrieve emoji by name:

private static void Main()
{
  var searcher = new EmojiSearcher();
  var results = searcher.Search("smile");
  if(results.Length > 0){
    var desiredResult = results[0];
    Console.WriteLine(desiredResult.Emoji);
    var info = desiredResult.getEmojiInfo();
    Console.WriteLine(info.Description);
  }
  else
    Console.WriteLine("No search results returned.");
}

Retrieve random emoji:

private static void Main()
{
  var searcher = new EmojiSearcher();
  var emojiInfo = searcher.Random();
  Console.WriteLine(emojiInfo.Emoji);
  Console.WriteLine(emojiInfo.Description);
}