API for sponsorship #24649
-
Is there an API to access sponsorship information? What I’d like to have: connect via PHP to GitHub
as displayed here: https://github.com/sponsors/GregSlazinski/dashboard
having known their email address and tier, I can automatically grant badges/ranks/colors on my own forum for my supporters. Thanks, Greg |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 2 replies
-
Hi @gregslazinski, Thank you for being here! Per @devonzuegel: " We’re currently building an Activity Timeline that shows a bunch of different types of events, including transactions. We’re also planning to build a transaction CSV download that you can export to do this sort of analysis on. We’re projecting that both of these will be out in the next month or two. 😊 In the meantime, you could look at (a) what tier a sponsor was on and (b) look up when you received the celebration email saying that they’ve started sponsor you as a fairly good approximation of how much they’ve sponsored you in total." To read more about “Viewing your sponsors and sponsorships” and “Contacting your sponsors”:
I hope this helps! |
Beta Was this translation helpful? Give feedback.
-
You can learn about the Sponsors API and see public sponsor-related schema info by going to developer.github.com/v4/explorer and searching |
Beta Was this translation helpful? Give feedback.
-
My post got removed? How would you write GraphQL to see if a particular user has sponsored you? I don’t want to paginate through all the sponsors, specially when the rateLimit is 5000 requests per hour!? |
Beta Was this translation helpful? Give feedback.
-
+1 for a REST API endpoint where we can check if a user sponsors the authenticated user, an at what tier. This would enable us to do a lot more! |
Beta Was this translation helpful? Give feedback.
-
Is there any progress on this? |
Beta Was this translation helpful? Give feedback.
-
@devonzuegel it seems that the API returns
Another dev reported the same issue on StackOverflow https://stackoverflow.com/questions/60281942/github-graphql-getting-sponsor-tier-information-for-the-sponsors-of-a-user I’d appreciate if you could help us figure this out :slight_smile: Thank you in advance for your time! |
Beta Was this translation helpful? Give feedback.
-
So, as of to date, it is still impossible to determine which users have sponsored me via api? |
Beta Was this translation helpful? Give feedback.
-
Also interested in having the ability to access this information in a cleaner more reliable way than web scraping! |
Beta Was this translation helpful? Give feedback.
-
I was also confused that the sponorship tier always seemed to be null no matter what permissions I requested, however it does seem to work if a “personal access token” is used as authorization for GraphQL. I’m not sure why it doesn’t work with the regular OAuth token that gets generated, though. |
Beta Was this translation helpful? Give feedback.
-
Can we please have a way to distinguish private vs. public sponsors through the GraphQL API? I’m trying to automate listing of sponsors on our webpage but the API gives me all sponsors, not just public ones, meaning I need to double check this every time I run the script. 😦 |
Beta Was this translation helpful? Give feedback.
-
Hi, I am very interested in being able to get a list of public sponsors from API (with tiers), to include them on a web page thanking them. This seems like a core use case for github sponsors, right? I am new to GraphQL so was having trouble figuring out how to do this... but it seems that it actually may not be currently possible? @liskin do you have an update from two years ago, does the situation remain the same? It would take me a while to figure out how to do this with GraphQL even if it is possible (athank you for linking to your code, to give me a head start), but if it is not in fact possible I'll save my time! Is there any place we can formally register a request for this feature? |
Beta Was this translation helpful? Give feedback.
You can learn about the Sponsors API and see public sponsor-related schema info by going to developer.github.com/v4/explorer and searching
"sponsor"
in the search bar to the right, halfway down the page: