API v1 · Updated March 2026

Benchmark Data API

Pull Benchmarketing's benchmark dataset into your warehouse, BI tool, or product. Stable metric definitions, additive-only changes, JSON or CSV.

Authentication

Create a key in Settings → API Access (any workspace, free tier included) and pass it as a bearer token. Keys can be revoked at any time; the endpoint is rate-limited to 120 requests/minute.

curl -H "Authorization: Bearer bmk_live_..." \ "https://www.benchmarketing.org/api/v1-benchmarks?metric=cpc&platform=google_ads&industry=ecommerce" # CSV export curl -H "Authorization: Bearer bmk_live_..." \ "https://www.benchmarketing.org/api/v1-benchmarks?metric=cpa&format=csv" -o benchmarks.csv

Query parameters: metric, platform, industry, geographyId, period, limit (max 2000), format=csv. All optional; omit to page through everything.

Quickstart in your stack

The endpoint is plain REST, so any HTTP client works. No SDK to install — these call the exact same URL documented above.

Python

import requests r = requests.get( "https://www.benchmarketing.org/api/v1-benchmarks", params={"metric": "cpa", "platform": "google_ads", "industry": "ecommerce"}, headers={"Authorization": "Bearer bmk_live_..."}, ) data = r.json()

Node.js

const res = await fetch( "https://www.benchmarketing.org/api/v1-benchmarks" + "?metric=cpa&platform=google_ads&industry=ecommerce", { headers: { Authorization: "Bearer bmk_live_..." } } ); const data = await res.json();

For spreadsheets or BI tools without a code step, use the format=csv query parameter and import the URL directly into Google Sheets (IMPORTDATA) or a Looker Studio file-based connector.

Response fields (stable contract)

metric_idStable metric identifier (see the definitions table below). Never renamed.
platform_idChannel platform, e.g. google_ads, meta_ads, linkedin_ads, tiktok_ads. Null = cross-platform.
channel_family_idChannel family grouping, e.g. paid-search, paid-social, email-marketing.
industry_idIndustry slug, e.g. ecommerce, saas, healthcare. Null = cross-industry.
business_model_idBusiness model slug (b2b, b2c-ecommerce, …). Null = all models.
device_typedesktop | mobile | tablet. Null = all devices.
geography_level / geography_idGeographic scope (country, us-dma) and identifier. Null = global.
period_granularityAggregation window of the row. Default all-time.
median_value / average_valueCentral values for the cell.
p25_value / p75_valuePercentile band bounds — read them with the Benchmarketing 4-Band Method.
unitDisplay unit: %, $, x, or empty for counts.
sample_sizeReported observations for this cell. Null when not supplied by the source; reported samples below ten are excluded.
confidence_levelLow, medium or high: a heuristic based on reported sample size and percentile dispersion. Unknown samples stay low. This is not a statistical confidence interval. Modeled values are excluded.
data_sourceNamed source the row traces to.

Versioning promise: fields are never renamed or removed within v1; new fields and new metric/platform identifiers may be added. Breaking changes would ship as /api/v2 with a deprecation window.

Stable metric definitions

Every metric_id the API can return, with its formula and unit. These identifiers are permanent.

metric_idNameFormulaUnit
roasReturn on Ad Spend (ROAS)Revenue ÷ Ad Spendmultiplier
poasProfit on Ad Spend (POAS)Gross Profit ÷ Ad Spendmultiplier
merMarketing Efficiency Ratio (MER)Total Revenue ÷ Total Marketing Spendmultiplier
cpcCost Per Click (CPC)Total Ad Spend ÷ Total Clicksusd
cpmCost Per Thousand Impressions (CPM)(Total Ad Spend ÷ Total Impressions) × 1,000usd-per-thousand
cpaCost Per Acquisition (CPA)Total Ad Spend ÷ Total Conversionsusd
cplCost Per Lead (CPL)Total Ad Spend ÷ Total Leadsusd
cpvCost Per View (CPV)Total Ad Spend ÷ Total Video Viewsusd
cacCustomer Acquisition Cost (CAC)(Total Sales + Marketing Spend) ÷ New Customers Acquiredusd
ctrClick-Through Rate (CTR)Clicks ÷ Impressions × 100percentage
organic-ctrOrganic Search CTR (Organic CTR)Organic Clicks ÷ Organic Impressions × 100percentage
impression-shareImpression Share (IS)Impressions Received ÷ Total Eligible Impressions × 100percentage
cvrConversion Rate (CVR)Conversions ÷ Clicks (or Sessions) × 100percentage
lp-cvrLanding Page Conversion Rate (LP CVR)Landing Page Conversions ÷ Landing Page Sessions × 100percentage
email-cvrEmail Conversion Rate (Email CVR)Email Conversions ÷ Emails Delivered × 100percentage
email-open-rateEmail Open Rate (Open Rate)Unique Opens ÷ Emails Delivered × 100percentage
email-ctrEmail Click-Through Rate (Email CTR)Unique Clicks ÷ Emails Delivered × 100percentage
bounce-rateBounce Rate (Bounce)Single-page Sessions ÷ Total Sessions × 100percentage
engagement-rateSocial Engagement Rate (Eng. Rate)Total Interactions ÷ Reach (or Followers) × 100percentage
vtrVideo Through Rate (VTR)Complete Views ÷ Total Video Impressions × 100percentage
ltvCustomer Lifetime Value (LTV)Avg. Order Value × Purchase Frequency × Customer Lifespanusd
churn-rateCustomer Churn Rate (Churn)Customers Lost in Period ÷ Customers at Start of Period × 100percentage
email-list-growthEmail List Growth Rate (List Growth)(New Subscribers − Unsubscribes − Spam/Bounce) ÷ Total List Size × 100percentage
reach-rateOrganic Reach Rate (Reach Rate)Post Reach ÷ Total Followers × 100percentage
quality-scoreQuality Score (QS)Composite of: Expected CTR + Ad Relevance + Landing Page Experienceinteger
mql-to-sqlMQL to SQL Rate (MQL→SQL)SQLs Created ÷ MQLs Submitted × 100percentage
sql-to-closeSQL to Close Rate (Win Rate)Closed Won Deals ÷ SQLs Created × 100percentage

Data freshness & provenance

Every value change to the underlying dataset is recorded on the public benchmark change log — what moved, when, and why. Every row carries a named data_source you can trace it back to. Modeled rows and reported samples below ten are excluded. confidence_level is a sample-and-dispersion heuristic, not a confidence interval. sample_size stays null when the source does not report it. Methodology: how we source and read benchmark data.

Signed outbound webhooks

Add up to five HTTPS endpoints in Settings → Data API access. Owners and admins can send a test, remove an endpoint or rotate its signing secret. The full secret is shown once. Endpoint URLs and secrets are encrypted at rest.

A daily check queues benchmarks.updated when the eligible published dataset revision changes. The first check sends the current revision. Payloads contain an event id, type, createdAt, and data with revision, eligible cell count, last update and Data API URL. Fetch rows with your API key; it is never included in a notification. Manual tests use webhook.test.

Return any 2xx response. Delivery is at least once: deduplicate the event id, also sent as Benchmarketing-Event-Id. Failed deliveries retry on subsequent daily runs after 1, 2, 4 and 8 days, for at most five attempts. Delivery history is retained for 90 days. Redirects and private-network destinations are rejected.

Read Benchmarketing-Signature as t=TIMESTAMP,v1=HEX. Compute HMAC-SHA256 with your signing secret over the timestamp, a period and the exact raw request body. Compare with a constant-time function and reject timestamps outside a five-minute tolerance. Retries keep the event id and receive a fresh signature. Rotating a secret takes effect immediately, including queued retries.

import { createHmac, timingSafeEqual } from 'node:crypto'; const expected = createHmac('sha256', signingSecret) .update(timestamp + '.').update(rawBody).digest(); const actual = Buffer.from(signatureHex, 'hex'); const valid = Number.isFinite(Number(timestamp)) && Math.abs(Date.now() / 1000 - Number(timestamp)) <= 300 && actual.length === expected.length && timingSafeEqual(actual, expected);

Management uses your app session, not a Data API key: GET /api/data-webhooks lists endpoints; POST accepts an action of add (url, label), test, rotate or delete (id).