GitHub rebuilt its star history API from 2,511 requests to 24 by filtering before grouping
On 14 October 2026, GitHub published the engineering story behind its reworked stargazers endpoint, which took 2,511 requests to rebuild react/react’s curve and was being harvested for spam. The lesson transfers to any API: a smaller response doesn’t make a cheaper query — the order of work in the database does.