Reputation: 733
I'm trying to use this guide to get a list of all issues from a repository. For example, let's look at the facebook/react
repository.
When I do a GET request to https://github.com/facebook/react/issues/
it just returns the web page, but what I want is a JSON with all the issues.
How can I get a JSON response?
Upvotes: 0
Views: 2156
Reputation: 136880
You need to use the API's root endpoint, on the api
subdomain:
GET https://api.github.com/repos/facebook/react/issues
^^^^
Upvotes: 3