Samplings
A sampling is one measurement cycle of a brand on a market: every enabled query asked to every model chosen for the brand (among ChatGPT, Claude, Gemini, Perplexity, Grok, Mistral, DeepSeek and Qwen — Settings → Measured AI), several times each. Each answer is a run; Skoup reads in it the brands and products recommended, their position, and the prices and stock the model claims. All the metrics are computed from samplings.
Samplings run at the brand’s cadence (trigger: scheduled): every Monday at 02:00 UTC (weekly, 4 runs per query and model) or every day at 05:00 UTC (daily, 1 run), chosen in Settings → Measured AI. Others are started at onboarding (onboarding), on demand by an editor or through the API (on_demand), from the Skoup team’s panel (manual), or to verify one alert on one query (targeted — the sampling then carries its query).
Statuses of a sampling
queuedrunningcompletedfailedI want to…
| I want to… | Call |
|---|---|
| Measure a market now | POST /v1/brands/{brand}/samplings |
| List the samplings of a market | GET /v1/brands/{brand}/samplings?market=FR |
| List the ones that failed | GET /v1/brands/{brand}/samplings?status=failed |
| Read one sampling and its progress | GET /v1/brands/{brand}/samplings/{sampling} |
| Be told when one ends | sampling.completed, sampling.failed |
| Re-measure one query | Verify its alert: POST …/alerts/{alert}/verify |
Scopes: metrics:read to read, samplings:write to start one.
Scenario: measure after a release, then refresh your numbers
curl https://api.skoup.ai/v1/brands/br_4Xk9QmZ2pL/samplings \
-H "Authorization: Bearer skoup_test_…" \
-d market=FR
# 202 — the sampling, trigger "on_demand", status "queued"// POST handler of your webhook endpoint (signature verified first).
if (event.type === 'sampling.completed' && event.data.object.query === null) {
await refreshDashboard(event.brand, event.data.object.market)
}Pitfalls
- A sampling started on demand is paid: €0.02 per answer × the AI’s multiplier, Claude ×3 (never batched). It answers
422 creditswhen nothing is left to spend once the scheduled cycles of the month are set aside — the scheduled cycles are never refused. - Some markets only ask some AIs: China (
CN) is only asked DeepSeek and Qwen, whatever else the brand picked. A brand that picked neither answers422 market_modelsfor that market (nothing is measured, no AI is added for it). - One at a time per market:
422 sampling_in_progresswhile a sampling (full or targeted) of the market is queued or running. - It never resolves an alert. A treated alert closes on two scheduled measures in a row; an on-demand sampling counts everywhere else (latest measurement, trends).
- A targeted sampling is not “the latest measurement”. Filter
sampling.completedonquery === nullto react to full measurements only. - Test mode: samplings of the sandbox are frozen demo data; nothing runs.