{"uid":"cap_txw-EjYLOgcEim6NRK-bC","slug":"delx-commerce-cohort-retention-analysis-47527807","name":"Delx Commerce — Cohort Retention Analysis","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/cohort-retention?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cohorts":{"type":"array","description":"Input field: cohorts."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-cohort-retention/v1","cohorts":[{"start":100,"cohort":"2026-07","retained":42,"retention_percent":42}],"cohort_count":1,"weighted_retention_percent":42}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wP3GcHsl_FyFhbzkQNu1A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes cohort-based user retention metrics, returning retention percentages and weighted retention across cohorts.","exampleAgentPrompt":"Can you calculate the cohort retention for my July 2026 cohort that started with 100 users and retained 42 of them?","exampleUseCases":[{"title":"Monthly SaaS cohort retention report","prompt":"I have three monthly cohorts: June 2026 started with 200 users and retained 80, July 2026 started with 150 and retained 60, August 2026 started with 100 and retained 55 — can you calculate the retention rates and weighted average retention across all three?"},{"title":"Product onboarding funnel retention check","prompt":"We onboarded 500 users in our Q1 cohort and 310 of them are still active — what's the retention percentage for that cohort?"},{"title":"Weekly retention tracking for mobile app","prompt":"Help me track retention for my mobile app's weekly cohorts: week-1 cohort had 1000 starters and 620 retained, week-2 had 900 starters and 540 retained — give me the retention stats and weighted retention."}],"resultDescription":"Returns a JSON object with the schema 'delx/util-cohort-retention/v1', containing an array of cohort objects each with their start size, cohort identifier, retained count, and retention_percent, plus an overall cohort_count and weighted_retention_percent across all input cohorts.","failureModes":["Missing or malformed 'cohorts' array returns a validation error","Cohort objects missing required fields (start, retained, cohort identifier) may return partial or error results","Retained count exceeding start count may produce invalid retention percentages","Payment failure via x402 (insufficient USDC balance) blocks the call","Network timeout on Base or Solana payment verification"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call cohort retention computation without signing up for a full analytics platform. Ideal for agents that process user cohort data programmatically and need precise retention metrics on demand. Best when you have structured cohort data (start size + retained count) and want weighted retention aggregated across multiple cohorts in a single API call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:54.915Z","isFirstParty":false,"canonicalSlug":"delx-commerce-cohort-retention-analysis-47527807"}