See short article from Arizona real estate attorney Chris Combs.

If you are buying a home and the location of sex offenders is important to you, you should research it during the inspection period when you can still cancel the contract and get all of your earnest money back.

Ideally, you will research it BEFORE you make an offer.

There are databases online where you can find where registered sex offenders live.