Free API for ad calculators and compliance checks
The formulas behind our free calculators and the deterministic health ad compliance check, as a JSON API. No key, no AI, no cost.
Base URL https://telehealthmedia.com/api/v1/. Every endpoint takes a JSON body with POST. The full description is in OpenAPI 3.1.
Example
curl -X POST https://telehealthmedia.com/api/v1/check_ad_compliance \
-H 'Content-Type: application/json' \
-d '{"text": "Same as Ozempic, for less", "vertical": "glp1"}'Responses are { "result": ..., "source": "From Telehealth Media's free tools: <tool page>" }. Please show the source link wherever you display a result.
Limits
- 60 requests per IP per hour. Over the limit returns 429 with Retry-After.
- Request bodies up to 32 KB. CORS is open, so you can call it from a browser.
- Inputs are not stored. Logs hold the endpoint name and time only.
- Compliance results are heuristics about review risk, not legal advice.
Endpoints
/api/v1/check_ad_complianceCheck ad copy for health ad review risk.Web version/api/v1/list_compliance_rulesList health ad rules.Web version/api/v1/explain_ruleExplain one health ad rule.Web version/api/v1/calculate_roasROAS.Web version/api/v1/calculate_breakeven_roasBreak-even ROAS and CPA.Web version/api/v1/calculate_cacPatient acquisition cost.Web version/api/v1/calculate_ltvSubscription LTV.Web version/api/v1/calculate_ltv_cacLTV to CAC ratio.Web version/api/v1/calculate_cac_paybackCAC payback.Web version/api/v1/calculate_cpmCPM.Web version/api/v1/calculate_ctrCTR.Web version/api/v1/calculate_cpcCPC.Web version/api/v1/calculate_cpaCPA.Web version/api/v1/calculate_hook_rateHook and hold rate.Web version/api/v1/calculate_creative_volumeCreative volume.Web version/api/v1/calculate_testing_budgetCreative testing budget.Web version/api/v1/calculate_learning_phase_budgetLearning phase budget.Web version/api/v1/calculate_funnelTelehealth funnel.Web version/api/v1/calculate_merMER.Web version/api/v1/calculate_poasPOAS.Web version/api/v1/calculate_contribution_marginContribution margin.Web version/api/v1/calculate_ab_testA/B test significance.Web version/api/v1/calculate_sample_sizeSample size.Web version/api/v1/calculate_liftLift.Web version/api/v1/calculate_churnChurn rate.Web version/api/v1/calculate_retention_cohortRetention cohort.Web version/api/v1/forecast_meta_adsAd spend forecast.Web version/api/v1/calculate_ugc_rateUGC rate.Web version/api/v1/calculate_legitscript_costLegitScript cost.Web version/api/v1/get_ad_specsGet ad specs.Web version/api/v1/build_utmBuild a UTM URL.Web version/api/v1/build_ad_nameBuild an ad name.Web version/api/v1/get_meta_health_ad_policyGet the Meta health ad policy summary.Web version
For writing tools (hooks, scripts, batch plans), use the MCP server. The formulas are also an npm package and the rules ship as a CLI; see our open-source projects once published.