Two small gaps in the /api/v1/products routes, which are otherwise great:
First, products/sources rows only cover the time since the save was loaded in 4.3. On an existing save the recipe rows are a small part of the lifetime total (for me, 160 recipe-attributed steel out of 145,792 produced), so the rows never add up to the total.
Second, consumed has breakdown series for construction, maintenance, settlements, research, farms, export and fuel, but none for consumption by machines, so consumed cannot be fully broken down.
Suggestion:
- Add a consumedByMachines series (or a by-recipe series), and keep recipe and machine attribution for the whole game where possible.
Longer history than 120 days or months would also help, since the count parameter is clamped there.
Together this would make it possible to see which recipes drive a shortage, not only that there is one.
Related: https://coigame.com/Topic/21211