{"uid":"cap_FNSjjnaAQzzC8U7kN5Xtx","slug":"marketing-spend-unit-economics-calculator-aac0c0bc","name":"Marketing Spend Unit Economics Calculator","description":"Per-channel unit economics from spend, conversions and revenue: CPC, CPM, CPA, CAC, ROAS, ROI, conversion rate, and LTV to CAC. Ranks channels and suggests a budget shift. Pure computation over your inputs.","url":"https://payai.agentstools.dev/marketing/spend","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","description":"Raw CSV or TSV text with a header row, as an alternative to rows"},"rows":{"type":"array","items":{"type":"object"},"description":"Per-channel rows with spend and any of impressions/clicks/conversions/revenue/ltv/customers"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wLh_XXRiFicdL671cVl6o","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes per-channel marketing unit economics (CPC, CPM, CPA, CAC, ROAS, ROI, conversion rate, LTV:CAC) from raw spend/conversion/revenue data, ranks channels, and suggests budget reallocation.","exampleAgentPrompt":"I have three marketing channels — Google Ads spent $12,000 with 400 conversions and $60,000 revenue, Facebook spent $8,000 with 200 conversions and $30,000 revenue, and TikTok spent $5,000 with 80 conversions and $10,000 revenue. Can you calculate CPA, ROAS, and ROI for each, rank them by efficiency, and tell me where to shift budget?","exampleUseCases":[{"title":"Cross-channel ROAS comparison for e-commerce","prompt":"Here's my Q3 ad spend data — Google $20k with 600 conversions and $90k revenue, Meta $15k with 350 conversions and $48k revenue, Pinterest $5k with 90 conversions and $11k revenue. Calculate ROAS, CPA, and ROI for each channel and tell me which one I should scale up."},{"title":"SaaS CAC and LTV:CAC health check","prompt":"I need to check the unit economics health across my acquisition channels. Google Ads: $30,000 spend, 150 new customers, average LTV $1,200. LinkedIn: $18,000 spend, 60 new customers, average LTV $2,500. Organic SEO: $5,000 spend, 80 new customers, average LTV $1,800. Give me CAC and LTV:CAC for each and rank them."},{"title":"Monthly budget reallocation from campaign CSV","prompt":"I've got a CSV of last month's campaign data with spend, impressions, clicks, conversions, and revenue for eight channels. Can you run the full unit economics — CPC, CPM, CPA, ROAS, ROI, conversion rate — rank the channels, and recommend where to shift budget next month?"}],"resultDescription":"Returns per-channel computed metrics including CPC, CPM, CPA, CAC, ROAS, ROI, conversion rate, and LTV:CAC ratio; a ranked list of channels by efficiency; and a suggested budget reallocation across channels. All outputs are derived purely from the provided input data.","failureModes":["Missing required spend data causes computation errors or null metrics for affected channels","CSV with malformed headers or mismatched columns may fail to parse","Channels missing impressions/clicks cannot produce CPM/CPC metrics","Zero conversions on a channel causes division-by-zero for CPA/CAC metrics","Providing neither `csv` nor `rows` field returns a validation error"],"whenToPreferThis":"Use this endpoint when you need pure mathematical computation of marketing unit economics across multiple channels without connecting to any ad platform APIs. Ideal for batch analysis of exported campaign data, quick sanity checks on channel efficiency, or when you already have spend/conversion/revenue numbers and need standardized KPIs and a budget recommendation in one call. Prefer this over manual spreadsheet work or ad-platform dashboards when you want a single ranked view across heterogeneous channels.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:01:24.261Z","isFirstParty":false}