Skip to content

Tag Functions

Christian Chaux edited this page Oct 2, 2019 · 8 revisions

The following information allows you to interact with the posts from the Booru websites

GetTag return information about a tag given it's name or it's ID (Please make not that searching by id isn't available for all Booru.)

Task<Search.Tag.SearchResult> GetTag(string name);
Task<Search.Tag.SearchResult> GetTag(int id);

GetTags return all tags similar to the one given (on some Booru, it may only return the tag with the exact name)

Task<Search.Tag.SearchResult[]> GetTags(string name);

BooruSharp.Tag.SearchResult is a structure containing the following data:

  • uint id: ID of the tag
  • string name: Name of the tag
  • TagType type: Type of the tag (Trivia, Artist, Copyright, Character or Metadata)
  • uint count: Number of images existing with this tag