Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to get repository insights via the GitHub Rest API v3

I want to get statistics for the number of issues opened/closed for a repository during a specified period of time. I can view this information in GitHub by clicking the insights tab.

For example: https://github.com/nodejs/node/pulse

Can I pull any of this information via the GitHub Rest API v3? I was looking through the documentation but couldn't find any information. Thanks in advance

like image 373
sgonzalez Avatar asked Sep 03 '25 16:09

sgonzalez


1 Answers

You can use GitHub API V3 to search issues and PRs. For example, if I want to search all issues on the repo nodejs/node created for the duration October 6, 2017 – October 13, 2017 you can make the following request - https://api.github.com/search/issues?q=repo:nodejs/node+created:2017-10-06..2017-10-13. From the JSON search response received you can determine those issues that result in PRs and its status. Ref:Search Issues

like image 101
Poonacha Avatar answered Sep 05 '25 16:09

Poonacha