As an alternative, here’s [some code I knocked together](https://github.com/alphagov/govuk_need_api/commit/2b1409a6457f735f3edd84a8de7b37a11b2dec78) in the need API¹. Just an idea.

¹May contain bugs. Definitely doesn’t contain tests.