Github REST API is not working for custom url

I am trying to use the Github API v3 in order to get all the files in the repositories and other details. But in my organization we have the github url as In this case I keep my REST url as instead of It keep gives “Could not get any response”.

I tried with different authentication. I am not able to get any 200 response. Please help me.

Ref URL :

To access APIs on GitHub Enterprise, you need to call the APIs as below:


So if your GitHub url is, then you need to call the APIs with the base url as below:\

Also note that you would need to add Basic Auth header when you make the API call since the APIs would be secured.