Hi, not discouraging further contributions here, but FYI /u/itsallfolklore has tackled this question a couple of times
[Is there any truth behind the Pied Piper fairytale?] (https://www.reddit.com/r/AskHistorians/comments/8nsto6/is_there_any_truth_behind_the_pied_piper_fairytale)