An unofficial REST API for GitHub Sponsors.
If you need something for GraphQL instead, there is an official API provided by GitHub. Some links and examples can be found in the Notes section.
Get the count of people who sponsor user
. Includes private sponsors.
Example query: https://ghs.vercel.app/v2/count/filiptronicek/
Get details of people who sponsor user
. Does not include private sponsors.
Example query: https://ghs.vercel.app/v3/sponsors/filiptronicek
Get all users who are sponsored by user
.
Example query: https://ghs.vercel.app/sponsoring/svobodavl
/sponsors/user/
and /count/user/
endpoints got themselves an official API (as of June of 2021)! you can use them like this: (https://github.com/github/feedback/discussions/3818)query {
user(login: "filiptronicek") {
... on Sponsorable {
sponsors(first: 100) {
totalCount
nodes {
... on User { login }
... on Organization { login }
}
}
}
}
}
/sponsoring/user/
endpoint is implemented in the GraphQL API since August of 2021, usable like this: https://github.com/github/feedback/discussions/3818#discussioncomment-1131586query {
user(login: "cheshire137") {
sponsoring(first: 10) {
totalCount
nodes {
... on User { login }
... on Organization { login }
}
}
}
}