Gooby
Gooby

Reputation: 733

How can I get a JSON response from Github's REST API?

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

Answers (1)

Chris
Chris

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

Related Questions