get_transaction_categories
Type: query
Gets all the categories configured in the account.
Signature
async def get_transaction_categories(
# No parameters
) -> Dict[str, Any]
Example
from monarchmoney import MonarchMoney
mm = MonarchMoney()
await mm.login(email, password)
result = await mm.get_transaction_categories()
print(result)
GraphQL Operation
Operation Name: GetCategories
GraphQL Query
query GetCategories {
categories {
...CategoryFields
__typename
}
}
fragment CategoryFields on Category {
id
order
name
systemCategory
isSystemCategory
isDisabled
updatedAt
createdAt
group {
id
name
type
__typename
}
__typename
}
Try It Out
To test this API method locally:
- Install the package:
pip install monarchmoney - Create a Python script with the example code above
- Replace
emailandpasswordwith your Monarch Money credentials - Run the script
See the Authentication Guide for details on logging in.