How to Host JSON on Github?

25/09/2023

Your JSON files are now accessible via a URL in the format: https://raw.githubusercontent.com/your-username/your-repository-name/main/your-json-file.json. You can use this URL to access your data from anywhere.

Host your JSON file on GitHub, follow the steps below.

Create a New GitHub Repository

You can create a new GitHub repository or you can use an existing one.

Create a New File

Create a new JSON file or append existing one.

Use GitHub Raw to Host JSON

In the JSON file click the Raw button and the browser redirects you to an accessible JSON URL. Your JSON files will be publicly accessible via a user-friendly URL, making it simple for you to share them with colleagues, clients, or integrate them into your projects.