Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any public streaming api? [closed]

I have read the github api docs and I haven't found any streaming api like twitter streaming api.
I want to implement public github repository feed via js on client side without a server. Is it possible?
Should I create a server and github app and authenticate my server on github so I can make all requests through it?

like image 806
freemanoid Avatar asked Nov 13 '22 00:11

freemanoid


1 Answers

There is no streaming API for GitHub. I doubt they have plans of adding one either to be frank.

Your initial request can get the last 30 events and then poll with the ETag header of that request for updates. You'll need to be authenticated (somehow, not necessary via an app) to make it work. Considering each request should come from a different IP address I would hazard a guess that the rate-limits wouldn't be applied globally to all visitors regardless of who they're authenticating as. That, however, would be an excellent question for the API support team at GitHub.

like image 101
Ian Stapleton Cordasco Avatar answered Nov 15 '22 06:11

Ian Stapleton Cordasco