Are you developing an app?
If yes, currently there are two ways.
1. Using the Asset api endpoint, you can change the content of the home page
Recently, shopify has announced some updates and introduced a new method to add content to online stores. This new method is "shopify app extensions". This is the preffered method. I would recommend you to start with this.