Arasaka Oy Analytics API

The Analytics API from Arasaka Oy — 1 operation(s) for analytics.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /v1/links/{id}/analytics Click analytics for a link you own #

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/xn-s7y-xn-3ds443g:xn-s7y-xn-3ds443g-analytics-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

xn-s7y-xn-3ds443g-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Xn S7y Xn 3ds443g Analytics API
  version: 1.7.0
  contact:
    name: 短.在线
    url: https://短.在线/security
  description: 'Operations tagged Analytics across 2 of this provider''s published API definitions: openapi.json, xn-s7y-xn-3ds443g-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://xn--s7y.xn--3ds443g
- url: https://短.在线
tags:
- name: Analytics
paths:
  /v1/links/{id}/analytics:
    get:
      operationId: getLinkAnalytics
      tags:
      - Analytics
      summary: Click analytics for a link you own
      description: 'Aggregate click statistics for a link the authenticated account owns. period is 7d, 30d, or 90d. A free plan can use 7d. Pro and Business can use 7d, 30d, or 90d. Omit period for the plan default (7d on Free, 30d on Pro and Business). from, to, and interval are rejected. A free plan asking for 30d or 90d is 403 FEATURE_NOT_AVAILABLE. Each period is whole UTC days ending yesterday. Daily totals split human clicks, bot clicks, and QR-tagged clicks. Human-click breakdowns fold counts under 5 into other. API key scope analytics:read, or a session cookie. An OAuth access token is not a REST credential. Another account''s link, or a link with no account, is 404. Cache-Control is private, no-store. Country data: IP Geolocation by DB-IP (https://db-ip.com), licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          maxLength: 32
      - name: period
        in: query
        required: false
        description: '7d, 30d, or 90d. Whole UTC days ending yesterday. Omit for the plan default: 7d on Free, 30d on Pro and Business.'
        schema:
          type: string
          enum:
          - 7d
          - 30d
          - 90d
      security:
      - apiKey: []
      - sessionCookie: []
      responses:
        '200':
          description: Aggregate click statistics.
          headers:
            Cache-Control:
              schema:
                type: string
                example: private, no-store
            X-Request-Id:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkAnalyticsResponse'
        '400':
          description: period is not 7d, 30d, or 90d, or from, to, or interval was sent.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Authentication required.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Free plan asked for 30d or 90d. error and code are FEATURE_NOT_AVAILABLE. plans_url is present and is the absolute pricing URL. Existing fields stay.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Unknown link, another account's link, or a link with no account. Same shape as get link.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
components:
  schemas:
    ProblemDetails:
      type: object
      required:
      - type
      - title
      - status
      - detail
      - instance
      - error
      - message
      - code
      - request_id
      properties:
        type:
          type: string
          format: uri
          description: RFC 9457 type URI under /problems/{slug}
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        instance:
          type: string
          description: RFC 9457 instance URI for this occurrence
        error:
          type: string
          enum:
          - INVALID_URL
          - BLOCKED_DESTINATION
          - RATE_LIMITED
          - ALIAS_TAKEN
          - RESERVED_ALIAS
          - PREMIUM_ALIAS
          - PREMIUM_ALIAS_FROZEN
          - AUTH_REQUIRED
          - LINK_QUARANTINED
          - LINK_DISABLED
          - LINK_BLOCKED
          - LINK_EXPIRED
          - LINK_NOT_FOUND
          - IDEMPOTENCY_KEY_REQUIRED
          - IDEMPOTENCY_CONFLICT
          - IDEMPOTENCY_IN_PROGRESS
          - INTERNAL_ERROR
          - VALIDATION_ERROR
          - FIELD_CONFLICT
          - EMAIL_UNVERIFIED
          - ACCOUNT_TOO_NEW
          - BATCH_TOO_LARGE
          - INSUFFICIENT_SCOPE
          - UPSTREAM_TIMEOUT
          - INVALID_BODY
          - INVALID_ARGUMENT
          - FEATURE_NOT_AVAILABLE
          - BAD_REQUEST
          - NOT_FOUND
          description: Legacy machine code (same as code)
        message:
          type: string
          description: Legacy human message (same as detail)
        code:
          type: string
          enum:
          - INVALID_URL
          - BLOCKED_DESTINATION
          - RATE_LIMITED
          - ALIAS_TAKEN
          - RESERVED_ALIAS
          - PREMIUM_ALIAS
          - PREMIUM_ALIAS_FROZEN
          - AUTH_REQUIRED
          - LINK_QUARANTINED
          - LINK_DISABLED
          - LINK_BLOCKED
          - LINK_EXPIRED
          - LINK_NOT_FOUND
          - IDEMPOTENCY_KEY_REQUIRED
          - IDEMPOTENCY_CONFLICT
          - IDEMPOTENCY_IN_PROGRESS
          - INTERNAL_ERROR
          - VALIDATION_ERROR
          - FIELD_CONFLICT
          - EMAIL_UNVERIFIED
          - ACCOUNT_TOO_NEW
          - BATCH_TOO_LARGE
          - INSUFFICIENT_SCOPE
          - UPSTREAM_TIMEOUT
          - INVALID_BODY
          - INVALID_ARGUMENT
          - FEATURE_NOT_AVAILABLE
          - BAD_REQUEST
          - NOT_FOUND
        request_id:
          type: string
          pattern: ^[A-Za-z0-9._-]{1,128}$
          maxLength: 128
          description: 'Same value as the X-Request-Id response header: the inbound X-Request-Id if it matches [A-Za-z0-9._-]{1,128}, otherwise a fresh server-generated id.'
        plans_url:
          type: string
          format: uri
          description: Absolute pricing page URL. Present on RATE_LIMITED for the verified monthly new-link cap when the plan is not Business, on PREMIUM_ALIAS when the response offers an upgrade, and on FEATURE_NOT_AVAILABLE when a free plan asks for a 30-day or 90-day click window. The same URL remains in message. Absent on the Business monthly cap, on burst limits, and on other errors.
        aliases:
          type: array
          items:
            type: string
          description: Older codes for the same failure. Match code, or any alias. error and code stay equal to the current code. INVALID_BODY on POST /v1/links lists INVALID_URL. INVALID_BODY on batch and PATCH lists VALIDATION_ERROR. INVALID_ARGUMENT lists VALIDATION_ERROR and INVALID_ARGUMENTS. An unsigned MCP tools/call lists invalid_token.
        accepted:
          type: array
          items:
            type: string
          description: Parameter names accepted by an MCP tool. Present on INVALID_ARGUMENT.
    AnalyticsBreakdown:
      type: array
      items:
        type: object
        additionalProperties: false
        required:
        - value
        - clicks
        properties:
          value:
            type: string
          clicks:
            type: integer
            minimum: 0
    LinkAnalyticsResponse:
      type: object
      additionalProperties: false
      required:
      - ok
      - request_id
      - id
      - period
      - from
      - to
      - totals
      - timeseries
      - top
      - data_through
      - note
      - attribution
      properties:
        ok:
          type: boolean
          const: true
        request_id:
          type: string
        id:
          type: string
        period:
          type: string
          enum:
          - 7d
          - 30d
          - 90d
        from:
          type: string
          format: date
          description: First UTC day included.
        to:
          type: string
          format: date
          description: Last UTC day included. Yesterday or earlier.
        totals:
          type: object
          additionalProperties: false
          required:
          - clicks
          - human_clicks
          - bot_clicks
          - qr_clicks
          properties:
            clicks:
              type: integer
              minimum: 0
              description: Stored click rows in the window, including bots. Not a count of people.
            human_clicks:
              type: integer
              minimum: 0
              description: Human clicks. Bots and HEAD requests are excluded. Not a count of people.
            bot_clicks:
              type: integer
              minimum: 0
              description: Stored click rows that are not human clicks.
            qr_clicks:
              type: integer
              minimum: 0
              description: Human QR-tagged clicks. Bots are excluded. Not scans and not a count of people.
        timeseries:
          type: array
          description: Daily totals only. No per-day breakdown.
          items:
            type: object
            additionalProperties: false
            required:
            - date
            - clicks
            - human_clicks
            - bot_clicks
            - qr_clicks
            properties:
              date:
                type: string
                format: date
              clicks:
                type: integer
                minimum: 0
                description: Stored click rows in the window, including bots. Not a count of people.
              human_clicks:
                type: integer
                minimum: 0
                description: Human clicks. Bots and HEAD requests are excluded. Not a count of people.
              bot_clicks:
                type: integer
                minimum: 0
                description: Stored click rows that are not human clicks.
              qr_clicks:
                type: integer
                minimum: 0
                description: Human QR-tagged clicks. Bots are excluded. Not scans and not a count of people.
        top:
          type: object
          additionalProperties: false
          description: Human clicks only. One dimension each. Counts under 5 are inside other.
          required:
          - countries
          - referrer_hosts
          - devices
          - os
          - browsers
          - utm_sources
          properties:
            countries:
              $ref: '#/components/schemas/AnalyticsBreakdown'
            referrer_hosts:
              $ref: '#/components/schemas/AnalyticsBreakdown'
            devices:
              $ref: '#/components/schemas/AnalyticsBreakdown'
            os:
              $ref: '#/components/schemas/AnalyticsBreakdown'
            browsers:
              $ref: '#/components/schemas/AnalyticsBreakdown'
            utm_sources:
              $ref: '#/components/schemas/AnalyticsBreakdown'
        data_through:
          type: string
          format: date-time
          description: Exclusive end of the period, UTC. Not a click time.
        note:
          type: string
          example: clicks counts every stored click row in the window, including bots. It is not a count of people. Bots are excluded from human_clicks. qr_clicks counts human QR-tagged clicks only.
          description: clicks counts every stored click row in the window, including bots. It is not a count of people. Bots are excluded from human_clicks. qr_clicks counts human QR-tagged clicks only.
        attribution:
          type: string
          example: IP Geolocation by DB-IP (https://db-ip.com), licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: cookie
      name: duan_session
      description: Session cookie `duan_session` for the web app. Accepted on owner REST list, update, enable, and QR, and as optional account auth on REST create and batch. Required for POST /api/oauth/consent. Does not authorize POST /mcp. Not a public /v1 login route. Anonymous create does not require this cookie.
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: APIKey
      description: 'Bearer API key (`Authorization: Bearer <key>`). Dashboard-minted scoped keys with `links:create`, `links:read`, `links:update`, `links:disable`, `analytics:read`, `batches:create`. Not a god-key / `*`. Not an OAuth access token. Accepted on REST `/v1` and on `POST /mcp`. A presented Bearer that does not verify is 401 and is not anonymous access. Missing scope → 403 INSUFFICIENT_SCOPE. Anonymous REST create remains available when the Authorization header is absent.'
    oauth2:
      type: oauth2
      description: 'Authorization code + PKCE S256 for a public client (no client secret). Token endpoint auth method is `none`. Flows are authorization code and refresh only: no client-credentials grant, no implicit grant, and no device code. An omitted scope grants `links:read` only. `links:disable` is granted only when explicitly requested. `analytics:read` is granted only when explicitly requested. Access tokens are sent as `Authorization: Bearer` on `POST /mcp` only and are bound to the canonical MCP resource. REST `/v1` does not accept them.'
      flows:
        authorizationCode:
          authorizationUrl: https://xn--s7y.xn--3ds443g/oauth/authorize
          tokenUrl: https://xn--s7y.xn--3ds443g/oauth/token
          refreshUrl: https://xn--s7y.xn--3ds443g/oauth/token
          scopes:
            links:create: Create short links
            links:read: Read links you own
            links:update: Update links you own
            links:disable: Disable links you own
            analytics:read: Read aggregate click statistics for your links
            batches:create: Create a sync batch of short links
x-refined-from:
- openapi.json
- xn-s7y-xn-3ds443g-openapi.json
x-provenance:
  method: harvested
  publisher: Arasaka Oy
  source: https://xn--s7y.xn--3ds443g/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)