Rowling has revealed information and stories about the wizarding world in other formats besides the novels. All (or most) of the information from these sources can be verified as being created by Rowling, so we consider it to be canon.
The other sources used by the Lexicon are:
Pottermore Presents ebooks
Fantastic Beasts and Where to Find Them (first film in the FB series)