While sunlight remains the best source for getting vitamin D, especially vitamin D3, ingesting foods like cod liver oil, milk, egg yolk, seafood, and beef liver are great ways to get vitamin D into the body.