GitHub API: How to get social image

Hi, as the title says: is there a way to get the social preview image link via github api?

I am listing the available repositories via the GET /users/{owner}/repos but I am unable to find it.

Regards, LightDestory.

Hello @LightDestory and welcome to the community.

I don’t believe that information is available via the REST API. However you should be able to find that information using the GraphQL API on the Repository object in the openGraphImageUrl field.

Let us know if you have more questions.