Spending

Get Category Breakdown

GET
/v1/households/{household_id}/analytics/category-breakdown

Breaks down income and expenses by category group and category over an inclusive date range, with totals and percentage shares. Ungrouped categories and uncategorized transactions are returned in ungrouped_categories.

Amounts use the household's reporting currency, with expenses reported as positive magnitudes. Excludes transfer categories, hidden or deleted transactions, deleted accounts, and split parents (their children count instead). Pending transactions are included.

Authorization

PersonalApiToken
AuthorizationBearer <token>

Personal API token (penny_pat_…). Paste only the token; the Bearer prefix is added automatically. Read-only tokens only allow read requests, and read/write tokens follow your current household membership and role. See https://penny.finance/docs/api#authentication.

In: header

Path Parameters

household_id*string

ID of the household that owns the resource. GET /v1/households lists the households you can access.

Query Parameters

start_date*string

First day of the range, inclusive, as YYYY-MM-DD. Transactions are selected by their date.

Formatdate
end_date*string

Last day of the range, inclusive, as YYYY-MM-DD. If it is earlier than start_date, no transactions match; this is not an error.

Formatdate
tag_ids?array<string>

Comma-separated tag IDs, such as Tg8qN1cK5rWd,Tg2bX6mJ9pHs; repeating the parameter for each ID also works. Limits the results to transactions that have at least one of these tags.

account_ids?array<string>

Comma-separated account IDs, such as Ac7kP2mN9qRs,Ac4tW8bL1xDv; repeating the parameter for each ID also works. Limits the results to transactions in these accounts.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.penny.finance/v1/households/Hh4vK8pQ2sLm/analytics/category-breakdown?start_date=2026-08-01&end_date=2026-08-31" \  -H "Authorization: Bearer $PENNY_API_TOKEN"
{  "income": {    "group_type": "income",    "total": {      "amount": "5200.00",      "currency": "USD"    },    "groups": [      {        "group_id": "Cg6tJ1nR8dKa",        "group_name": "Income",        "amount": {          "amount": "5200.00",          "currency": "USD"        },        "percentage": "100.00",        "categories": [          {            "category_id": "Ct9bH2kM4wPz",            "category_name": "Salary",            "emoji": "💼",            "amount": {              "amount": "5200.00",              "currency": "USD"            },            "percentage": "100.00"          }        ]      }    ],    "ungrouped_categories": []  },  "expenses": {    "group_type": "expense",    "total": {      "amount": "450.92",      "currency": "USD"    },    "groups": [      {        "group_id": "Cg2mV7pL4zXe",        "group_name": "Everyday Expenses",        "amount": {          "amount": "390.75",          "currency": "USD"        },        "percentage": "86.66",        "categories": [          {            "category_id": "Ct5nR8wY1jFu",            "category_name": "Groceries",            "emoji": "🥬",            "amount": {              "amount": "312.75",              "currency": "USD"            },            "percentage": "69.36"          },          {            "category_id": "Ct3xD6gQ8mVs",            "category_name": "Dining Out",            "emoji": "🍣",            "amount": {              "amount": "78.00",              "currency": "USD"            },            "percentage": "17.30"          }        ]      }    ],    "ungrouped_categories": [      {        "category_id": "Ct8fK2rB6yNd",        "category_name": "Subscriptions",        "emoji": "📺",        "amount": {          "amount": "17.99",          "currency": "USD"        },        "percentage": "3.99"      },      {        "category_id": null,        "category_name": null,        "emoji": null,        "amount": {          "amount": "42.18",          "currency": "USD"        },        "percentage": "9.35"      }    ]  },  "start_date": "2026-08-01",  "end_date": "2026-08-31"}