Back to browse
Free Coffee via Octopus Energy's Internal GraphQL API

Free Coffee via Octopus Energy's Internal GraphQL API

by pi3rre·Mar 9, 2026·1 point·0 comments

AI Analysis

MidShip It

Clever GraphQL reverse-engineering, but the API is deprecated and vanishes in August.

Strengths
  • Smart use of Chrome DevTools to discover undocumented internal endpoints.
  • Token rotation logic handles 60-minute expiry with automatic refresh fallback.
Weaknesses
  • Blog post about a hack, not a reusable product or library.
  • The claimOctoplusReward mutation is deprecated and scheduled for removal.
Category
Target Audience

UK Octopus Energy customers

Post Description

Octopus Energy gives Octoplus members a free weekly coffee at Nero or Greggs, but codes drop before 5am and are gone instantly. I reverse engineered the GraphQL API their web app uses, built a small Python poller on a VPS, and now claim it automatically every Monday night.

Similar Projects