There is a number of datasets available that allow you to search the abc notation tunes. The largest and most popular are included below. Feel free to add more in the comments.
Tune Find
Folk Tune Finder
Tune.db
Henrik Norbeck’s abc tunes
abc notation — over half a million tunes in abc