Budget allocation for a user's spending category. Tracks budgeted amount, actual spending, period, and currency for personal finance and expense management.
https://api.mockly.codes/budgets?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/budgetsGet a collection of budgets
/finance/budgets/budgets/:idGet a single budget by ID
/finance/budgets/:id/budgets/metaGet resource metadata and schema
/finance/budgets/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/budgets?q=laptopGET https://api.mockly.codes/budgets?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 budgets
fetch('https://api.mockly.codes/budgets?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/budgets?count=10'
)
data = response.json()curl "https://api.mockly.codes/budgets?count=10"fetch('https://api.mockly.codes/budgets?nocache=true')idintegerUnique identifier for the budget record
random_intuser_idintegerForeign key reference to the user who owns this budget
random_intcategorystringBudget category (e.g., groceries, entertainment, transportation, utilities)
categoryamountnumberBudgeted amount allocated for this category
pricespentnumberTotal amount already spent in this category for the current period
priceperiodstringBudget period (e.g., monthly, weekly, yearly, custom)
wordcurrencystringISO currency code for budget amounts (e.g., USD, EUR, GBP)
currencycountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request