Skip to Content
GuidesSamplings

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

queuedrunningcompletedfailed
runs_total / runs_completed / runs_failed tell how far a running sampling is.

I want to…

I want to…Call
Measure a market nowPOST /v1/brands/{brand}/samplings
List the samplings of a marketGET /v1/brands/{brand}/samplings?market=FR
List the ones that failedGET /v1/brands/{brand}/samplings?status=failed
Read one sampling and its progressGET /v1/brands/{brand}/samplings/{sampling}
Be told when one endssampling.completed, sampling.failed
Re-measure one queryVerify 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 credits when 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 answers 422 market_models for that market (nothing is measured, no AI is added for it).
  • One at a time per market: 422 sampling_in_progress while 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.completed on query === null to react to full measurements only.
  • Test mode: samplings of the sandbox are frozen demo data; nothing runs.
Last updated on