Rate shopping involves applying for several loans within a short period of time, which can potentially hurt your credit, at least temporarily. However, there are some ways to lessen the impact.
Check your credit score before you begin shopping so you have a general idea of what rates you may receive
Do some research and see if a lender allows you to apply for preapproval without a hard credit pull so you can get a sense of the estimated loan amount, terms, and rates you may receive without affecting your credit
Limit your loan applications to a short period of time, as some credit-scoring models consider multiple inquiries in a 14-day window as just one inquiry