GitHub data can be retrieved using these apis. The return format is JSON. By using this data, you can use Flutter, ReactNative, Android, IOS and other technologies developed this GitHub client to practice and consolidate the knowledge learned, isn’t it a means to learn a new technology efficiently?

This API list mainly includes the following aspects:

  1. Login authentication information
  2. All Activity information
  3. Trending information
  4. Personal User Information
  5. All information contained in Repos

The apis for each aspect are detailed below, along with information about the links called and the JSON results returned. Awe-github-api Also requires the user’s token to access all private data, otherwise there will be an authentication problem.

1. Log in

Recommended to use OAuth2 authentication login, security. Related links: developer.github.com/v3/#authent…

2. About my -API

The apis involved in my page include:

  1. My home page
  2. My attention
  3. My warehouse
  4. I am a fan of

2.1 My Personal homepage

2.1.1 Request Description

instructions URL note
The request URL Api.github.com/user?access…
parameter access_token

2.1.2 Returning a response

For detailed JSON results, see the link to my personal information JSON parsing results

2.2 My concern follows the Following

2.2.1 Request Description

instructions URL note
The request URL Api.github.com/users/ {user…
Parameter 1 page The int type
Parameter 2 user A user
For example, Api.github.com/users/crazy… It needs to be paginated

2.2.2 Returning a Response

Note: The result returns an array

For detailed JSON results, see the link to my personal information JSON parsing results

2.3 My Followers

2.3.1 Request Description

instructions URL note
The request URL Api.github.com/users/ {user… Support paging
Parameter 1 page The int type
Parameter 2 user My user loginName
For example, Api.github.com/users/crazy… It needs to be paginated

2.3.2 Returning a response

For detailed JSON results, see the link to my personal information JSON parsing results

My Repository

2.4.1 Request Description

instructions URL note
The request URL Api.github.com/user/repos?…
Parameter 1 affiliation Membership, fixed value owner
Parameter 2 direction Sorting mode: ASC ascending, DESC descending
Parameter 3 page paging
Four parameters sort
Parameter 5 visibility

2.4.2 Returning a Response

For detailed JSON results, see the link to my personal information JSON parsing results

3. About All activity-API

The apis involved in All Activity include:

3.1 All the activity

3.1.1 Request Description

instructions URL note
The request URL Api.github.com/users/ {user…
Parameter 1 user
Parameter 2 name
Parameter 3 page
demo Api.github.com/users/crazy…

3.1.2 Returning a Response

The result returned by all-activity is JSON

4. About Trending – API

The apis Trending deals with include:

  1. Trending-Repositories
  2. Trending-Developers

4.1 Trending – Repositories

4.1.1 Request Description

instructions URL note
The request URL Lot – trending – API. Now. Sh/repositorie…
Parameter 1 since Reference values are daily-weekly-monthly
demo Lot – trending – API. Now. Sh/repositorie…

4.1.2 Returning a response

Trending-Repositories returns all the resulting JSON

4.2 Trending – Developers

4.2.1 Request Description

instructions URL note
The request URL github-trending-api.now.sh/developers? …
Parameter 1 since Reference values are daily-weekly-monthly
demo github-trending-api.now.sh/developers? …

4.2.2 Returning a response

Trending-Developers return all the resulting JSON

5. About the User – Repos – API

The apis involved in user-repos include:

  1. User Indicates the information about a User
  2. Repos Information about a warehouse under a user

5.1 the User

Example Query information about a user

5.1.1 Request Description

instructions URL note
The request URL URL Api.github.com/users/ {user…
Parameter 1 user The user name
demo URL Api.github.com/users/arvid…

5.1.2 Returning a response

User-rebs-api result returns JSON

5.2 Repos

Example Query information about a Repos user

5.2.1 Request Description

instructions URL note
The request URL Api.github.com/repos/ {user…
Parameter 1 user A user
Parameter 2 repos The name of a repository under this user
demo Api.github.com/repos/xings…

5.2.2 Returning a response

User-rebs-api result returns JSON

6. About search -API

The apis involved in the search include:

  1. Search the entire GitHub repository

6.1 the search

Search the entire GitHub repository

6.1.1 Request Description

instructions URL note
The request URL Api.github.com/search/repo…
Parameter 1 q Search content
demo Api.github.com/search/repo…

6.1.2 Returning a Response

The search returns all content JSON

7. To summarize

By using the above API, we can basically obtain all the data of GitHub. With the reliable network data, we can develop a GitHub client using RN, Flutter, Android, iOS and other technologies to consolidate what we have learned and improve our learning efficiency by organizing these data.

8. About the author

Focus on Android development for many years, like to write blog record summary learning experience, blog synchronous update in my public number, welcome everyone to pay attention to, exchange learning ~