REST API for checking if a specific user is a sponsor and how much they are sponsoring #54644
-
Select Topic AreaProduct Feedback Bodyhiya! On my web app I want to give sponsors a little icon. Currently GitHub Sponsors only offers a webhook for this, which works, but it doesn't have an easy way of checking if a user is a sponsor for cases where maybe the server received the webhook but was unable to save the new data. I want to have a little refresh button in my web app's settings that when clicked uses some GitHub provided REST API to check if that specific user is sponsoring and for how much, but at the moment it doesn't seem like there's an API for this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Hi @catgirlinspace! I'm an engineer on the Sponsors team. The data you're looking for is available through GitHub's GraphQL API: https://docs.github.com/en/graphql/reference/objects#sponsorship |
Beta Was this translation helpful? Give feedback.
Yep! You could do something like this
replacing my login with the sponsor's login