Hive Civilization Site Traffic API

The site-traffic API from Hive Civilization — 9 operation(s) for site-traffic.

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1/site/beacon Record a page-view beacon · Beacon #
Ask an LLM
“How do I log a page view from my site to first-party analytics?”
“Can a beacon carry a custom event name and referrer?”
Tell an agent
Record a page view for {path} referred by {ref}.
Send a {event} beacon for page {path}.
GET /v1/site/traffic Summarize site traffic · Traffic #
Ask an LLM
“Which pages, referrers, countries and companies drove my site traffic?”
“Can I count only human visitors and leave out smoke tests?”
Tell an agent
Summarize site traffic for the last {window}.
Show traffic under {path_prefix}, humans only.
GET /v1/site/page See every visit to one page · Page Detail #
Ask an LLM
“Has anyone opened a particular page on my site?”
“Can I match a page exactly instead of by prefix?”
Tell an agent
Show everything recorded for page {path}.
Show visits to exactly {path} over the last {window}.
GET /v1/site/timeseries Get a traffic time series · Timeseries #
Ask an LLM
“Can I get page views bucketed over time for a sparkline?”
“What bucket sizes can the traffic time series use?”
Tell an agent
Get a traffic time series for the last {window}.
Chart traffic in {bucket_minutes}-minute buckets over {window}.
GET /v1/site/events Tail recent site events · Events #
Ask an LLM
“What are the latest events coming into my site right now?”
“Can I fetch only events that arrived after a certain timestamp?”
Tell an agent
Show the latest {limit} site events.
Show site events since {since_ts}.
GET /v1/site/live-brief Get an operator brief on current visitors · Live Brief #
Ask an LLM
“Is the visitor on my site right now a real prospect or a crawler?”
“Can I get a copy-paste summary of recent telemetry for my team?”
Tell an agent
Give me a live brief of who's on the site.
Brief me on visitors over {window}, listing up to {humans_limit} humans.
GET /v1/site/prospect/{utm} See visits from one outreach tag · Prospect Detail #
Ask an LLM
“Did the prospect I sent a tagged link to actually visit?”
“What pages did someone arriving with a given outreach tag view?”
Tell an agent
Show all hits for outreach tag {utm}.
Show visits from prospect tag {utm} over {window}.
POST /v1/site/traffic/redact Wipe traffic records matching a filter · Traffic Redact #
Ask an LLM
“How do I delete smoke-test or deploy-test records from my traffic data?”
“Can I erase all the traffic recorded for one session?”
Tell an agent destructive · confirm first
Wipe all smoke-test traffic records.
Redact traffic records whose path contains deploy-test.
GET /v1/site/traffic/health Check the traffic collector's health · Traffic Health #
Ask an LLM
“Is the site traffic collector healthy?”
“Can I confirm beacons are being recorded?”
Tell an agent
Check traffic collector health.
Tell me if site analytics is up.

Documentation

Specifications

Other Resources

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/thehiveryiq-com:thehiveryiq-com-site-traffic-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

thehiveryiq-com-site-traffic-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Site Traffic API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: site-traffic
paths:
  /v1/site/beacon:
    post:
      tags:
      - site-traffic
      summary: Beacon
      description: First-party page-view beacon. 200 always; never blocks the page.
      operationId: beacon_v1_site_beacon_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BeaconPayload'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Beacon V1 Site Beacon Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/site/traffic:
    get:
      tags:
      - site-traffic
      summary: Traffic
      description: 'Aggregate page views grouped by path / referrer / country / company

        + a high-signal-leads projection. Now with corporate company tagging

        and UTM attribution. Public read-only telemetry (no token) for the

        /admin/live/ arrivals cockpit.'
      operationId: traffic_v1_site_traffic_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          type: string
          default: 24h
          title: Window
      - name: humans_only
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Humans Only
      - name: exclude_smoke
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Exclude Smoke
      - name: path_limit
        in: query
        required: false
        schema:
          type: integer
          default: 40
          title: Path Limit
      - name: path_prefix
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Path Prefix
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Traffic V1 Site Traffic Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/site/page:
    get:
      tags:
      - site-traffic
      summary: Page Detail
      description: 'Everything recorded for one page. Answers "has anyone opened this".


        path matches by prefix unless exact is true, so /partners/ice-proof

        also covers /partners/ice-proof/surfaces/. Public read-only telemetry,

        same stance as /traffic.'
      operationId: page_detail_v1_site_page_get
      parameters:
      - name: path
        in: query
        required: true
        schema:
          type: string
          title: Path
      - name: window
        in: query
        required: false
        schema:
          type: string
          default: 30d
          title: Window
      - name: exact
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Exact
      - name: humans_only
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Humans Only
      - name: exclude_smoke
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Exclude Smoke
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Page Detail V1 Site Page Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/site/timeseries:
    get:
      tags:
      - site-traffic
      summary: Timeseries
      description: 'Bucketed time series for sparkline rendering. Returns a list of

        (bucket_start_ts, count) pairs covering the window. Public read-only.'
      operationId: timeseries_v1_site_timeseries_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          type: string
          default: 24h
          title: Window
      - name: bucket_minutes
        in: query
        required: false
        schema:
          type: integer
          default: 60
          title: Bucket Minutes
      - name: humans_only
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Humans Only
      - name: exclude_smoke
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Exclude Smoke
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Timeseries V1 Site Timeseries Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/site/events:
    get:
      tags:
      - site-traffic
      summary: Events
      description: 'Recent events tail. Used by dashboard live feed (5s refresh).

        Public read-only telemetry for the /admin/live/ arrivals cockpit.'
      operationId: events_v1_site_events_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 100
          title: Limit
      - name: humans_only
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Humans Only
      - name: exclude_smoke
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Exclude Smoke
      - name: since_ts
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Since Ts
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Events V1 Site Events Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/site/live-brief:
    get:
      tags:
      - site-traffic
      summary: Live Brief
      description: 'Operator brief: one call that classifies the current/latest visitor

        and summarizes recent telemetry into a copy-paste `brief_text`.


        Public read-only telemetry (no token), same path as the other

        /v1/site/* reads. Built for the /admin/live/ dashboard so an operator

        (or assistant) can instantly tell real inbound vs spam / crawler /

        datacenter-VPN / prospect without terminal access or screenshots.'
      operationId: live_brief_v1_site_live_brief_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          type: string
          default: 1h
          title: Window
      - name: humans_limit
        in: query
        required: false
        schema:
          type: integer
          default: 12
          title: Humans Limit
      - name: bots_limit
        in: query
        required: false
        schema:
          type: integer
          default: 8
          title: Bots Limit
      - name: exclude_smoke
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Exclude Smoke
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Live Brief V1 Site Live Brief Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/site/prospect/{utm}:
    get:
      tags:
      - site-traffic
      summary: Prospect Detail
      description: 'All hits attributable to a single outreach tag (?u=francisco).

        Public read-only telemetry for the arrivals cockpit.'
      operationId: prospect_detail_v1_site_prospect__utm__get
      parameters:
      - name: utm
        in: path
        required: true
        schema:
          type: string
          title: Utm
      - name: window
        in: query
        required: false
        schema:
          type: string
          default: all
          title: Window
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Prospect Detail V1 Site Prospect  Utm  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/site/traffic/redact:
    post:
      tags:
      - site-traffic
      summary: Traffic Redact
      description: 'Token-gated wipe of records matching filters. Use carefully.


        Body: {"path_contains": "deploy-test"} OR {"session": ""} OR

        {"is_smoke": true} OR {"all_smoke": true}.'
      operationId: traffic_redact_v1_site_traffic_redact_post
      parameters:
      - name: x-admin-token
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Admin-Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Traffic Redact V1 Site Traffic Redact Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/site/traffic/health:
    get:
      tags:
      - site-traffic
      summary: Traffic Health
      operationId: traffic_health_v1_site_traffic_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Traffic Health V1 Site Traffic Health Get
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BeaconPayload:
      properties:
        path:
          type: string
          maxLength: 1024
          title: Path
          default: /
        ref:
          type: string
          maxLength: 1024
          title: Ref
          default: ''
        ua:
          type: string
          maxLength: 512
          title: Ua
          default: ''
        tz:
          type: string
          maxLength: 64
          title: Tz
          default: ''
        event:
          type: string
          maxLength: 32
          title: Event
          default: pageview
        meta:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Meta
      type: object
      title: BeaconPayload
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
x-provenance:
  method: harvested
  publisher: Hive Civilization
  source: https://receipts.thehiveryiq.com/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)