Zebra · Schema

QueryAnalyticsInput

Analytics query, two halves. Object SCOPE — WHICH links to count clicks for — uses the same vocabulary as link search: `status`, `created`, `edited`, `createdVia`, `hasCollection`, `schedule`, `attribution`, `targetHost`, `query`, plus the identity scopes `linkId` / `collectionId` (one link OR one collection OR attributes, never combined) and `negate` (invert named scope dims). Click MEASUREMENT — `country`/`continents`/`region`/`city`, `browser`/`os`/`deviceType`, `referrerDomain`, `fromQr`, bot dims — filters the clicks. `groupBy` returns a breakdown (one row per value), `measure` counts clicks or uniqueClicks, `range` sets the window (`day` buckets and custom `from`/`to` resolve in `timeZone`, default UTC). All fields optional; an empty body is whole-space all-time totals.

Short LinkURL ShorteningQR CodesPrivacy

Properties

Name Type Description
groupBy string Break the result down by this dimension (one row per value); omit for a single total. `day` is a per-day time series.
measure string What to count: total clicks (default) or unique visitors.
range string Time window: all (all-time, the default), 7d, 30d, 1d (last 24h), 1h, 15m, or custom (then set from/to). Use a rolling window like 7d for 'this week' / 30d for 'last 30 days'.
from string Custom window start as an ISO date or date-time. Only with range=custom.
to string Custom window end as an ISO date or date-time. Only with range=custom.
limit integer Max breakdown rows (group-by only; default 100).
query string Free text matched against each link's short path, title, and destination URL.
status string active = live right now; inactive = off (manually or by schedule). Schedule-aware.
created string Creation-time window: within the last 1h, 24h, 7d, or 30d.
edited string Last-edit window (1h|24h|7d|30d). Creation counts as the initial edit.
createdVia string How the link was created: web, import, chat, api, or mcp.
hasCollection boolean true = in at least one collection; false = uncollected.
schedule string upcoming = has an activation/deactivation still to fire; completed = schedule fully in the past. Unscheduled links match neither.
attribution string Which attribution the link CARRIES: utm = a utm_* param on its destination URL; signals = a QR code carries signals; any = carries either (spoken to a user as "Either").
targetHost array Where the link POINTS, its destination host (e.g. cnn.com), as hostnames. A leading `www.` is ignored on both sides, so cnn.com matches www.cnn.com — pass the bare host, never both spellings. User-fac
collectionId string Scope to one specific collection (analytics-only). Mutually exclusive with the object-attribute filters and with linkId.
linkId string Scope to one specific link by its id (analytics-only) — the click counterpart to opening that link's dashboard. Mutually exclusive with the object-attribute filters and with collectionId. Click dimens
negate array Object-scope dimensions to invert, e.g. ["status"] for clicks from links that are NOT active. Free text is not negatable.
country array ISO country codes of the click (e.g. US, GB).
continents array Named continent groupings; expand to their countries.
region array Region / state of the click.
city array City of the click.
browser array Browser name (e.g. Chrome, Safari).
os array Operating system (e.g. iOS, Windows).
deviceType array Device type (e.g. mobile, desktop, tablet).
referrerDomain array Referring domain of the click.
shortDomain array The link's own short-domain host(s) the click came through, as hostnames.
fromQr boolean true = QR scans only; false = ordinary (non-QR) clicks only.
isBot boolean true = automated traffic only; false = humans only.
botType array Traffic class (ai_assistant, crawler, fetcher, …).
botName array Bot product name (e.g. "GPTBot").
timeZone string IANA time zone (e.g. `Europe/Copenhagen`) for `day` bucketing and custom `from`/`to` bounds. Default: UTC.
View JSON Schema on GitHub

JSON Schema

zeblink-io-query-analytics-input-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zeblink-io/json-schema/zeblink-io-query-analytics-input-schema.json",
  "title": "QueryAnalyticsInput",
  "description": "Analytics query, two halves. Object SCOPE — WHICH links to count clicks for — uses the same vocabulary as link search: `status`, `created`, `edited`, `createdVia`, `hasCollection`, `schedule`, `attribution`, `targetHost`, `query`, plus the identity scopes `linkId` / `collectionId` (one link OR one collection OR attributes, never combined) and `negate` (invert named scope dims). Click MEASUREMENT — `country`/`continents`/`region`/`city`, `browser`/`os`/`deviceType`, `referrerDomain`, `fromQr`, bot dims — filters the clicks. `groupBy` returns a breakdown (one row per value), `measure` counts clicks or uniqueClicks, `range` sets the window (`day` buckets and custom `from`/`to` resolve in `timeZone`, default UTC). All fields optional; an empty body is whole-space all-time totals.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/zeblink-io-v1-openapi.json#/components/schemas/QueryAnalyticsInput",
  "type": "object",
  "properties": {
    "groupBy": {
      "type": "string",
      "enum": [
        "country",
        "region",
        "city",
        "browser",
        "os",
        "deviceType",
        "referrerDomain",
        "fromQr",
        "shortDomain",
        "isBot",
        "botType",
        "botName",
        "day",
        "link"
      ],
      "description": "Break the result down by this dimension (one row per value); omit for a single total. `day` is a per-day time series."
    },
    "measure": {
      "type": "string",
      "enum": [
        "clicks",
        "uniqueClicks"
      ],
      "description": "What to count: total clicks (default) or unique visitors."
    },
    "range": {
      "type": "string",
      "enum": [
        "15m",
        "1h",
        "1d",
        "7d",
        "30d",
        "all",
        "custom"
      ],
      "description": "Time window: all (all-time, the default), 7d, 30d, 1d (last 24h), 1h, 15m, or custom (then set from/to). Use a rolling window like 7d for 'this week' / 30d for 'last 30 days'."
    },
    "from": {
      "type": "string",
      "description": "Custom window start as an ISO date or date-time. Only with range=custom."
    },
    "to": {
      "type": "string",
      "description": "Custom window end as an ISO date or date-time. Only with range=custom."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "description": "Max breakdown rows (group-by only; default 100)."
    },
    "query": {
      "type": "string",
      "maxLength": 200,
      "description": "Free text matched against each link's short path, title, and destination URL."
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive"
      ],
      "description": "active = live right now; inactive = off (manually or by schedule). Schedule-aware."
    },
    "created": {
      "type": "string",
      "enum": [
        "1h",
        "24h",
        "7d",
        "30d"
      ],
      "description": "Creation-time window: within the last 1h, 24h, 7d, or 30d."
    },
    "edited": {
      "type": "string",
      "enum": [
        "1h",
        "24h",
        "7d",
        "30d"
      ],
      "description": "Last-edit window (1h|24h|7d|30d). Creation counts as the initial edit."
    },
    "createdVia": {
      "type": "string",
      "enum": [
        "web",
        "import",
        "chat",
        "api",
        "mcp"
      ],
      "description": "How the link was created: web, import, chat, api, or mcp."
    },
    "hasCollection": {
      "type": "boolean",
      "description": "true = in at least one collection; false = uncollected."
    },
    "schedule": {
      "type": "string",
      "enum": [
        "upcoming",
        "completed"
      ],
      "description": "upcoming = has an activation/deactivation still to fire; completed = schedule fully in the past. Unscheduled links match neither."
    },
    "attribution": {
      "type": "string",
      "enum": [
        "utm",
        "signals",
        "any"
      ],
      "description": "Which attribution the link CARRIES: utm = a utm_* param on its destination URL; signals = a QR code carries signals; any = carries either (spoken to a user as \"Either\")."
    },
    "targetHost": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "maxItems": 20,
      "description": "Where the link POINTS, its destination host (e.g. cnn.com), as hostnames. A leading `www.` is ignored on both sides, so cnn.com matches www.cnn.com — pass the bare host, never both spellings. User-facing word: \"destination\" (never say \"target host\" to a user)."
    },
    "collectionId": {
      "type": "string",
      "pattern": "^col_[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$",
      "description": "Scope to one specific collection (analytics-only). Mutually exclusive with the object-attribute filters and with linkId."
    },
    "linkId": {
      "type": "string",
      "pattern": "^lnk_[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$",
      "description": "Scope to one specific link by its id (analytics-only) — the click counterpart to opening that link's dashboard. Mutually exclusive with the object-attribute filters and with collectionId. Click dimensions (country, browser, …) still apply on top."
    },
    "negate": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "status",
          "created",
          "edited",
          "createdVia",
          "hasCollection",
          "schedule",
          "attribution",
          "targetHost"
        ]
      },
      "description": "Object-scope dimensions to invert, e.g. [\"status\"] for clicks from links that are NOT active. Free text is not negatable."
    },
    "country": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "maxItems": 60,
      "description": "ISO country codes of the click (e.g. US, GB)."
    },
    "continents": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "europe",
          "africa",
          "asia",
          "north-america",
          "south-america",
          "oceania",
          "antarctica"
        ]
      },
      "maxItems": 7,
      "description": "Named continent groupings; expand to their countries."
    },
    "region": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "maxItems": 50,
      "description": "Region / state of the click."
    },
    "city": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "maxItems": 50,
      "description": "City of the click."
    },
    "browser": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "maxItems": 30,
      "description": "Browser name (e.g. Chrome, Safari)."
    },
    "os": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "maxItems": 30,
      "description": "Operating system (e.g. iOS, Windows)."
    },
    "deviceType": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "maxItems": 10,
      "description": "Device type (e.g. mobile, desktop, tablet)."
    },
    "referrerDomain": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "maxItems": 50,
      "description": "Referring domain of the click."
    },
    "shortDomain": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "maxItems": 20,
      "description": "The link's own short-domain host(s) the click came through, as hostnames."
    },
    "fromQr": {
      "type": "boolean",
      "description": "true = QR scans only; false = ordinary (non-QR) clicks only."
    },
    "isBot": {
      "type": "boolean",
      "description": "true = automated traffic only; false = humans only."
    },
    "botType": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "maxItems": 15,
      "description": "Traffic class (ai_assistant, crawler, fetcher, …)."
    },
    "botName": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "maxItems": 30,
      "description": "Bot product name (e.g. \"GPTBot\")."
    },
    "timeZone": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "IANA time zone (e.g. `Europe/Copenhagen`) for `day` bucketing and custom `from`/`to` bounds. Default: UTC."
    }
  },
  "additionalProperties": false
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/zeblink-io-query-analytics-input"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.