Obsah dokumentace

Reference API

Doručení a analytika

Plán a skutečnost kampaní, přehrání po dnech, jednotlivá přehrání s ověřeným podpisem přehrávače a viditelností, analytické přehledy (výkon, zásah, analýza) a import měřeného publika.

Každý endpoint přijímá i hlavičku DOOHUB-Account (agentury: id klientského účtu).

get/campaigns/{id}/delivery

Delivery of a campaign

Plan × delivery per booked screen (planned, played, verified, visible, interrupted, billed, cost) and plays per Prague day and screen. Default range: the campaign's dates.

Jakýkoli klíč

Parametry

NázevTypPopis
idv cestě · povinnýstring (uuid)
fromv dotazustring (date)
tov dotazustring (date)

Chyby

  • 401Missing, invalid or revoked API key.
  • 403The account's plan doesn't include the API (Business, Network, Pro or Agency), DOOHUB-Account is not a client of the agency (client_forbidden), or the endpoint needs DOOHUB Network (module_required).
  • 404Not found in this account.
  • 429More than 120 requests a minute; see Retry-After.
Požadavek
curl "https://admin.doohub.online/api/v1/campaigns/{id}/delivery" \
  -H "Authorization: Bearer dh_…"
Odpověď 200
{
  "data": {
    "campaign": {
      "id": "string",
      "name": "string",
      "status": "string",
      "starts_on": "string",
      "ends_on": "string",
      "currency": "string"
    },
    "from": "2026-11-02",
    "to": "2026-11-02",
    "totals": {
      "planned_plays": 0,
      "plays": 0,
      "verified": 0,
      "visible": 0,
      "billed_plays": 0,
      "cost_minor": 0
    },
    "screens": [
      {}
    ],
    "days": [
      {
        "date": "string",
        "screen_id": "string",
        "plays": 0,
        "verified": 0,
        "visible": 0
      }
    ]
  }
}
get/stats

Plays per day

Of one campaign (on every screen), of one own screen (ads and own content), or of all the account's campaigns. At most 366 days at once.

Jakýkoli klíč

Parametry

NázevTypPopis
fromv dotazustring (date)Default: 29 days before to.
tov dotazustring (date)Default: today.
campaign_idv dotazustring (uuid)
screen_idv dotazustring (uuid)

Chyby

  • 400Invalid dates or filters.
  • 401Missing, invalid or revoked API key.
  • 403The account's plan doesn't include the API (Business, Network, Pro or Agency), DOOHUB-Account is not a client of the agency (client_forbidden), or the endpoint needs DOOHUB Network (module_required).
  • 429More than 120 requests a minute; see Retry-After.
Požadavek
curl "https://admin.doohub.online/api/v1/stats" \
  -H "Authorization: Bearer dh_…"
Odpověď 200
{
  "data": [
    {
      "date": "2026-11-02",
      "campaign_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "content_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "screen_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "plays": 0,
      "seconds": 0
    }
  ],
  "meta": {
    "from": "string",
    "to": "string",
    "total_plays": 0
  }
}
get/playback-events

Proof of play

Single plays of the account's campaigns or on its screens, in time order, with the device signature check (verified), visibility and player version. At most 31 days per request; page with cursor = meta.next_cursor (null on the last page).

Jakýkoli klíč

Parametry

NázevTypPopis
fromv dotazustring (date-time)Default: 24 hours before to.
tov dotazustring (date-time)Default: now.
screen_idv dotazustring (uuid)
campaign_idv dotazustring (uuid)
limitv dotazuinteger
cursorv dotazustring

Chyby

  • 401Missing, invalid or revoked API key.
  • 403The account's plan doesn't include the API (Business, Network, Pro or Agency), DOOHUB-Account is not a client of the agency (client_forbidden), or the endpoint needs DOOHUB Network (module_required).
  • 429More than 120 requests a minute; see Retry-After.
Požadavek
curl "https://admin.doohub.online/api/v1/playback-events" \
  -H "Authorization: Bearer dh_…"
Odpověď 200
{
  "data": [
    {
      "id": "string",
      "screen_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "campaign_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "content_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "creative_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "source": "campaign",
      "started_at": "2026-11-02T09:30:00Z",
      "duration_ms": 0,
      "result": "completed",
      "verified": false,
      "visible": false,
      "visibility": "string",
      "player_version": "string",
      "received_at": "2026-11-02T09:30:00Z"
    }
  ],
  "meta": {
    "limit": 0,
    "next_cursor": "string",
    "from": "string",
    "to": "string"
  }
}
get/analytics

Analytics reports

plays – plays per Prague day (as /stats); performance – campaigns: plan, delivery and cost per booking, screens: plays, verified, revenue; audience – verified plays, estimated impressions (model) and measured audience, never added up; insights – screens, campaign × screen, weekday × hour and days with reach and frequency. Audience and insights are part of the Business, Network, Pro and Agency plans (403 plan_required).

Jakýkoli klíč

Parametry

NázevTypPopis
reportv dotazuplays | performance | audience | insights
sidev dotazucampaigns | screens
fromv dotazustring (date)
tov dotazustring (date)
campaign_idv dotazustring (uuid)
screen_idv dotazustring (uuid)Only for plays.

Chyby

  • 401Missing, invalid or revoked API key.
  • 403The account's plan doesn't include the API (Business, Network, Pro or Agency), DOOHUB-Account is not a client of the agency (client_forbidden), or the endpoint needs DOOHUB Network (module_required).
  • 429More than 120 requests a minute; see Retry-After.
Požadavek
curl "https://admin.doohub.online/api/v1/analytics" \
  -H "Authorization: Bearer dh_…"
Odpověď 200
{
  "data": null,
  "meta": {
    "report": "string",
    "side": "string",
    "from": "string",
    "to": "string"
  }
}
post/audience/measurements

Import measured audience

Write key (agencies need the client's screen manager role). People counted in a screen's viewing zone per hour, from a sensor or counting provider – aggregates only, never personal data. Up to 5 000 rows a request; the same screen, hour and source again replaces the count. Rows for screens of other accounts or older than 400 days are skipped. Part of audience analytics (Business, Network, Pro, Agency).

Klíč pro zápis

Tělo požadavku

PoleTypPopis
sourcepovinnýstringName of the measurement (provider, sensor).
measurementspovinnýobject[]

Chyby

  • 401Missing, invalid or revoked API key.
  • 403The plan doesn't include the API, the key can only read (write_required) or the client's role doesn't allow it (client_role).
  • 404Not found in this account.
  • 409The campaign is no longer a draft or rejected (not_editable).
  • 422Invalid input or a rule of the platform (code and message say which).
  • 429More than 120 requests a minute; see Retry-After.
Požadavek
curl -X POST "https://admin.doohub.online/api/v1/audience/measurements" \
  -H "Authorization: Bearer dh_…" \
  -H "Content-Type: application/json" \
  -d '{"source":"string","measurements":[{"screen_id":"3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47","hour":"2026-11-02T09:30:00Z","people":0,"dwell_seconds":1,"unique_people":0}]}'
Příklad těla
{
  "source": "string",
  "measurements": [
    {
      "screen_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "hour": "2026-11-02T09:30:00Z",
      "people": 0,
      "dwell_seconds": 1,
      "unique_people": 0
    }
  ]
}
Odpověď 200
{
  "data": {
    "inserted": 0,
    "updated": 0,
    "skipped": 0
  }
}

Cookies jsou malé soubory, které si web ukládá ve vašem prohlížeči. Nezbytné nelze vypnout, ostatní kategorie povolujete vy.

Nezbytné

Vždy zapnuté

Přihlášení, volba účtu a jazyka, uložení vaší volby cookies a ochrana plateb. Bez nich web nefunguje.

sb-…-auth-token, doohub_account, NEXT_LOCALE, doohub_consent, doohub_ref, doohub_sidebar, doohub_menu, doohub_theme, doohub_support_return, doohub_mfa_later, doohub_signed_in, __stripe_mid, __stripe_sid

Žádné analytické ani marketingové cookies nepoužíváme, proto se vás na souhlas neptáme. Kdybychom je zavedli, zeptáme se předem.