Returns the value of certain fields in an addon's TOC file

See also Addon-related functions.


data = GetAddOnMetadata(index, "variable") or GetAddOnMetadata("name", "variable")


  • index - Index of an addon in the addon list (between 1 and GetNumAddOns()) (number)
  • name - Name of an addon (name of the addon's folder and TOC file, not the Title found in the TOC) (string)
  • variable - Name of a header from the addon's TOC file; only certain headers can be queried: Author, Title, Notes, Version, and any header whose name starts with "X-" (e.g. X-Website, X-Category) (string)


  • data - Contents of the given TOC file header, or nil if the header does not exist or cannot be queried (string)