Calculators
CPC (cost per click) calculator API
Compute CPC = spend / clicks, or derive any missing leg from the other two. Deterministic paid-search/social math. Answers 'what's my cost per click','how many clicks can this budget buy at this CPC'.
Price$0.01per request
MethodPOST
Route/v1/calc/mkt-cpc
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calcmarketingcpcadvertisingclicksppcspendmetrics
API URL
Integration docshttps://x402.hexl.dev/v1/calc/mkt-cpcExample request
{
"spend": 800,
"clicks": 6400
}Example response
{
"formula": "CPC = spend / clicks",
"spend": 800,
"clicks": 6400,
"cpc": 0.125
}Input schema
{
"type": "object",
"required": [],
"properties": {
"spend": {
"type": "number",
"examples": [
800
]
},
"clicks": {
"type": "number",
"examples": [
6400
]
},
"cpc": {
"type": "number",
"description": "cost per click",
"examples": [
0.125
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}