KeyShortcuts Pageviews API

The Pageviews API from KeyShortcuts — 3 operation(s) for pageviews.

GitHub OpenAPI

Operations 3

POST /pageviews Record a raw pageview and optionally begin visitor measurement #
POST /pageviews/confirm Qualify a pageview as likely human activity without a tracking cookie #
GET /pageviews/summary Admin-only raw pageviews and estimated human visitor counts #

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/keyshortcuts-net:keyshortcuts-net-pageviews-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

keyshortcuts-net-pageviews-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: KeyShortcuts Public Pageviews API
  version: 1.0.1
  description: 'Public API for searching, comparing and retrieving keyboard shortcuts with

    platform scope, canonical KeyShortcuts links and record-level verification metadata.

    Product availability is not proof of a platform binding. Confirm critical or

    version-sensitive commands against vendor documentation.

    REST endpoints use /api; stateless MCP supports JSON over HTTP POST.

    API releases use semantic versioning. Backward-compatible additions increment

    the minor version; compatible fixes and documentation corrections increment

    the patch version. Breaking contract changes require a new major version and

    migration guidance. Dataset fingerprints identify content revisions separately.'
  x-versioning-policy: semantic-versioning
servers:
- url: /api
  description: Base API path
tags:
- name: Pageviews
paths:
  /pageviews:
    post:
      operationId: recordPageView
      summary: Record a raw pageview and optionally begin visitor measurement
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PageViewInput'
      responses:
        '201':
          description: Pageview recorded; eligible browsers receive a short-lived activity proof
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageViewReceipt'
      tags:
      - Pageviews
  /pageviews/confirm:
    post:
      operationId: confirmVisitorActivity
      summary: Qualify a pageview as likely human activity without a tracking cookie
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VisitorActivityInput'
      responses:
        '200':
          description: Activity processed idempotently
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageViewReceipt'
        '400':
          description: Invalid, ineligible or expired measurement
        '503':
          description: Visitor measurement is unavailable
      tags:
      - Pageviews
  /pageviews/summary:
    get:
      operationId: getTrafficSummary
      security:
      - adminAccess: []
      summary: Admin-only raw pageviews and estimated human visitor counts
      description: 'Requires the existing admin bearer password. Counts estimate active

        network/browser combinations, not verified people. Identifiers rotate

        monthly. Historical pageviews are never backfilled as human visitors.'
      responses:
        '200':
          description: Traffic report in America/New_York time
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageViewReport'
        '401':
          description: Admin access required
      tags:
      - Pageviews
components:
  schemas:
    PageViewReport:
      type: object
      required:
      - total
      - byPath
      - byDay
      - visitors
      properties:
        total:
          type: integer
        byPath:
          type: array
          items:
            type: object
            required:
            - path
            - views
            properties:
              path:
                type: string
              views:
                type: integer
        byDay:
          type: array
          items:
            type: object
            required:
            - date
            - views
            properties:
              date:
                type: string
              views:
                type: integer
        visitors:
          $ref: '#/components/schemas/VisitorReport'
    VisitorReport:
      type: object
      required:
      - today
      - thisMonth
      - activePageviewsToday
      - filteredBotsToday
      - startedAt
      - timezone
      - enabled
      - method
      properties:
        today:
          type: integer
          minimum: 0
        thisMonth:
          type: integer
          minimum: 0
        activePageviewsToday:
          type: integer
          minimum: 0
        filteredBotsToday:
          type: integer
          minimum: 0
        startedAt:
          type:
          - string
          - 'null'
        timezone:
          type: string
        enabled:
          type: boolean
        method:
          type: string
    PageViewReceipt:
      type: object
      required:
      - ok
      properties:
        ok:
          type: boolean
        activityToken:
          type: string
    PageViewInput:
      type: object
      required:
      - path
      properties:
        path:
          type: string
          maxLength: 500
          pattern: ^/
        referrer:
          type:
          - string
          - 'null'
        measurement:
          type: object
          required:
          - automated
          - excluded
          properties:
            automated:
              type: boolean
            excluded:
              type: boolean
    VisitorActivityInput:
      type: object
      required:
      - activityToken
      - visibleMs
      - interacted
      properties:
        activityToken:
          type: string
          maxLength: 600
        visibleMs:
          type: integer
          minimum: 2000
        interacted:
          type: boolean
  securitySchemes:
    adminAccess:
      type: http
      scheme: bearer
x-keyshortcuts-source-hash: 526771df74bb152f6451a0aeb034eda181efc629e56a916a0836decfebbb1a37