The codes as published by the International Code Council (ICC) are copyrighted and can be purchased from the ICC, either online via the ICC website, or by calling the ICC publication office at 800-786-4452.
The ICC also made copies of its codes accessible online, at no charge. You can access these online. Please note that this free service is very limited in terms of access (i.e, you will only be able to view one code section/subsection at a time, not whole pages) and search and print capabilities. If you want full access and features, you will either need to pay for full electronic access or purchase the desired codebook(s).