How do I fetch all of the sponsors of my github username/organisation?

Seems there is no REST API for sponsors, and the GraphQL API doesn’t seem to have any documentation on how to overcome the pagination limits.

Working with the node/deno/typescript/javascript ecosystem (if that matters), any guidance appreciated, can take it from there.

Link dump while I search for solutions:

Figured it out, will share once it is released.

Unfortunately as GitHub can do pro-rata changes to tiers and does not expose this via the activity API it is impossible to calculate the historical totals accurately. I have contacted GitHub Support to see if they can add an API for fetching historical totals.

I will proceed with releasing a package for fetching only the active sponsors.