# Programmatic usage tracking for Sprites, API or webhook for billing data?

**URL:** <https://community.fly.io/t/programmatic-usage-tracking-for-sprites-api-or-webhook-for-billing-data/27523>\
**Category:** General\
**Tags:** billing, sprites\
**Created:** [April 5, 2026, 8:53am UTC](https://community.fly.io/t/programmatic-usage-tracking-for-sprites-api-or-webhook-for-billing-data/27523 "2026-04-05T08:53:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonnyburch](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@jonnyburch](https://community.fly.io/u/jonnyburch)\
**Post date:** [April 5, 2026, 8:53am UTC](https://community.fly.io/t/programmatic-usage-tracking-for-sprites-api-or-webhook-for-billing-data/27523/1 "2026-04-05T08:53:53Z")

</div>

Hey team,

I’m using Sprites fairly heavily and want to track usage programmatically so I can understand where my costs are going. Right now I’m finding it difficult to reconcile what I’m being charged.

A couple of specific questions:

**1. Is there an API for per-sprite usage data?**

I need to see CPU-hours, memory-hours, and storage per sprite. The Sprites API gives me `status`, `last_started_at`, and `last_active_at`, but nothing about actual resource consumption. I can see totals in the [Fly.io](http://Fly.io) Cost Explorer dashboard, but I need this data programmatically — ideally broken down per sprite so I can track which environments are costing what.

Is there an existing API endpoint for this, or is it on the roadmap? Even a daily usage dump or webhook on billing events would work.

**2. Help understanding a high bill last month**

My bill for March was significantly higher than expected, specifically RAM costing nearly $60 just with my personal experimentation for a few hours. I’m using auto\_stop with a 30-minute idle timeout and actively stopping sprites when sessions end, so I didn’t expect the compute hours to be this high. It’s hard to debug without per-sprite usage breakdowns.

Is there any way to see which sprites consumed the most resources, or get a breakdown of CPU vs memory vs storage costs? The Cost Explorer groups everything under “Sprites” \> “RAM” without much granularity.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [April 12, 2026, 8:54am UTC](https://community.fly.io/t/programmatic-usage-tracking-for-sprites-api-or-webhook-for-billing-data/27523/2 "2026-04-12T08:54:29Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
