GitHub REST API /user/starred missing star create date

Response from the REST API when calling the /user/starred endpoint doesn’t include the date when the repo was starred by the user. The documentation here says:
“You can also find out when stars were created by passing the following custom media type via the Accept header:”

What “following” custom media type should I add to the Accept header? I’ve tried all of the custom media types (including the preview ones) to no avail.

'Accept: application/vnd.github.v3.raw+json'
'Accept: application/vnd.github.v3+json'
'Accept: application/vnd.github.v3.full+json'
'Accept: application/vnd.github.mercy-preview+json'

^ These are all of the media types that I’ve tried. Did I miss anything?

Hi @digineo1

The media-type you want is probably application/vnd.github.v3.star+json
You can see it used in this PR to get stargazers with a schema of the resulting array you’ll receive - Add StargazersStream by ericboucher · Pull Request #33 · MeltanoLabs/tap-github · GitHub

Hope this helps!

This doesn’t provide the solution that I’m looking for:

In the PR that you shared, you are hitting the /repos/{org}/{repo}/stargazers endpoint to get stargazers for the repo. I’d like to hit the /user/starred endpoint to get that for the authenticated user. The documentation says this should be possible but doesn’t exactly say how.
I’d have to make multiple requests to a) get a user’s starred repos and b) iterate through those, hit the `/repos/{org}/{repo}/stargazers’ endpoint to get the starred date. Depending on how many starred repos a user has, I might run into API rate limits very quickly.