I switched from an individual Apple Music plan to a family plan and now most of my playlists and downloaded songs are gone from the Music app.
Did I lose my library, and how do I get it back?
Your library is tied to your Apple Account, not the subscription tier, so it is almost certainly still there. The usual cause is that the Music app signed into a different account — family plans create the same account for everyone, but it is easy to sign into a household member's account on a device.
Check Settings → Music → Account in iOS, or Music → Account in macOS, and confirm it shows your email. Sign out and back in with the correct account, then enable 'Sync Library' under Settings → Music.
If you use more than one device, iCloud Music Library can also hide tracks that were matched incorrectly. Wait a few minutes with a stable Wi-Fi connection, and check the 'Recently Added' playlist. If the playlists still do not appear, sign out of all devices, then sign back in on one device first and let it rebuild before doing the others.