Version exclusive: only in Sun, not in Moon; only in Ultra Sun, not in Ultra Moon; only in Sword, not in Shield.
Pokémon Sun
Location
Method
Level
Conditions
Altar of the Sunne
One-time encounter
55
–
Pokémon Ultra Sun
Location
Method
Level
Conditions
Mahalo Trail
Gift
60
–
Pokémon Sword
Location
Method
Level
Conditions
Max Lair
Dynamax Adventure
70
–
Pokémon Scarlet
Location
Method
Level
Conditions
Pokémon League
One-time encounter
70
–
Pokémon Violet
Location
Method
Level
Conditions
Pokémon League
One-time encounter
70
–
Not obtainable in: Moon, Ultra Moon. Trade it over from another game.
Locations from PokeAPI, for Brilliant Diamond/Shining Pearl, Legends: Arceus, Scarlet/Violet and Legends: Z-A from PKHeX. Omega Ruby/Alpha Sapphire locations are still incomplete; their version exclusives are marked.