google / go-github

Go library for accessing the GitHub v3 API

Home Page:https://pkg.go.dev/github.com/google/go-github/v62/github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

events list api

Jerry-yz opened this issue · comments

how can I retrieve the entire content of the events list API when it only supports pagination?

The data retrieved for the same page varies with each request, and the pagination information displays a maximum of 3 pages

The data retrieved for the same page varies with each request, and the pagination information displays a maximum of 3 pages

i have the same question, why the data retrieved for the same page varies with each request, and the pagination information displays a maximum of 3 pages

Are you talking about this endpoint: https://docs.github.com/en/rest/activity/events?apiVersion=2022-11-28#list-public-events ?

If so, the public events list is a firehose, and there are probably better ways to consume this streaming data than through this API endpoint. It will constantly be changing every time you call it. Why they support pagination at all is beyond me... probably for historical reasons.

Depending on your use case, you may wish to contact GitHub technical support directly and ask if there are better ways for you to stream this massive amount of data.

Are you talking about this endpoint: https://docs.github.com/en/rest/activity/events?apiVersion=2022-11-28#list-public-events ?

If so, the public events list is a firehose, and there are probably better ways to consume this streaming data than through this API endpoint. It will constantly be changing every time you call it. Why they support pagination at all is beyond me... probably for historical reasons.

Depending on your use case, you may wish to contact GitHub technical support directly and ask if there are better ways for you to stream this massive amount of data.

thinks a lot, i contact github technical support directly

Feel free to report back here any findings you learn.

I'm going to go ahead and close this issue for now but we can re-open it if there are any issues that need resolving.