Skip to content
Fourohtwo

Per-channel unit economics from spend, conversions and revenue

payai.agentstools.dev/marketing/spend

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.

SolanaAnswering
POSThttps://payai.agentstools.dev/marketing/spend

Uptime100% of 3 checks in 30 days

30 days agoToday

Call it from an agent

curl -i -X POST -H 'content-type: application/json' "https://payai.agentstools.dev/marketing/spend" \
  -d '{"rows":[{"spend":100,"clicks":100,"channel":"google","revenue":500,"conversions":10,"impressions":10000},{"spend":200,"clicks":100,"channel":"facebook","revenue":400,"conversions":10,"impressions":20000}]}'

# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.

Example input

{
  "rows": [
    {
      "spend": 100,
      "clicks": 100,
      "channel": "google",
      "revenue": 500,
      "conversions": 10,
      "impressions": 10000
    },
    {
      "spend": 200,
      "clicks": 100,
      "channel": "facebook",
      "revenue": 400,
      "conversions": 10,
      "impressions": 20000
    }
  ]
}