Catalog/mkt-cpm

Calculators

CPM (cost per mille) calculator API

Compute CPM = spend / impressions * 1000, or derive any missing leg from the other two. Deterministic media-buying math agents get wrong. Answers 'what's my CPM','how many impressions for this budget at this CPM'.

Price$0.01per request
MethodPOST
Route/v1/calc/mkt-cpm
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calcmarketingcpmadvertisingmediaimpressionsspendmetrics
API URLhttps://x402.hexl.dev/v1/calc/mkt-cpm
Integration docs
Example request
{
  "spend": 5000,
  "impressions": 1200000
}
Example response
{
  "formula": "CPM = spend / impressions * 1000",
  "spend": 5000,
  "impressions": 1200000,
  "cpm": 4.1667
}
Input schema
{
  "type": "object",
  "required": [],
  "properties": {
    "spend": {
      "type": "number",
      "description": "ad spend in currency units",
      "examples": [
        5000
      ]
    },
    "impressions": {
      "type": "number",
      "description": "ad impressions count",
      "examples": [
        1200000
      ]
    },
    "cpm": {
      "type": "number",
      "description": "cost per 1000 impressions",
      "examples": [
        4.1667
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}