Hostilo Statistics API

Page views and visitors.

GitHub OpenAPI

Operations 2

GET /get_ai_traffic Get AI bot traffic #
GET /site_stats Get site statistics #

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/hostilo-app:hostilo-app-statistics-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

hostilo-app-statistics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hostilo REST Statistics API
  version: 1.1.0
  summary: Create, publish, restore and measure websites on hostilo.app.
  description: 'REST API of Hostilo.app (IMJ sp. z o.o.) for AI agents and automation tools (Make, n8n, Zapier, GPT Actions). The same actions as the Hostilo MCP server (https://hostilo.app/mcp). JSON in, JSON out. Auth: API key from Dashboard > API & tools, sent as "Authorization: Bearer hk_...". Rate limit: 60 requests per minute per key. Every action is also available as https://hostilo.app/api.php?action= (original address). Messages are in Polish. Guide: https://hostilo.app/docs#rest'
  termsOfService: https://hostilo.app/terms
  license:
    name: Proprietary, use under the Hostilo terms
    url: https://hostilo.app/terms
  contact:
    name: Hostilo support
    url: https://hostilo.app/contact
    email: hello@hostilo.app
servers:
- url: https://hostilo.app/api/v1
  description: Production
security:
- apiKey: []
tags:
- name: Statistics
  description: Page views and visitors.
paths:
  /get_ai_traffic:
    get:
      operationId: getAiTraffic
      summary: Get AI bot traffic
      description: 'Who reads the site: visits from AI bots verified by Cloudflare (ChatGPT, Claude, Perplexity and others) with operators. PRO adds 30/90 days and per-bot, per-page and per-format breakdowns. Free: 7 days.'
      tags:
      - Statistics
      parameters:
      - name: site_id
        in: query
        required: true
        description: Site id (number) or name, e.g. 123 or "my-page" or "my-page.hostilo.page".
        schema:
          type: string
        example: '123'
      - name: days
        in: query
        required: false
        description: Period in days (default 30; Free accounts always get 7).
        schema:
          type: integer
          enum:
          - 7
          - 30
          - 90
          default: 30
      responses:
        '200':
          description: Success.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  success:
                    type: boolean
                  url:
                    type: string
                  range:
                    type: integer
                  summary:
                    type: object
                    additionalProperties: true
                    description: hits (verified AI bot visits), prev_hits, change_pct, bytes, operators, rejected (requests from programs pretending to be AI bots, not counted).
                  operators:
                    type: array
                    items:
                      type: object
                      additionalProperties: true
                  days:
                    type:
                    - array
                    - 'null'
                    items:
                      type: object
                      additionalProperties: true
                  dims:
                    type:
                    - object
                    - 'null'
                    additionalProperties: true
                    description: 'PRO: bot, category, format, path, status, country.'
                  locked:
                    type: boolean
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
  /site_stats:
    get:
      operationId: getSiteStats
      summary: Get site statistics
      description: 'Traffic of a site: page views and daily unique visitors per day, totals and change vs the previous period. PRO adds 30/90/365 days and breakdowns (countries, sources, devices, pages). Free: 7 days.'
      tags:
      - Statistics
      parameters:
      - name: site_id
        in: query
        required: true
        description: Site id (number) or name, e.g. 123 or "my-page" or "my-page.hostilo.page".
        schema:
          type: string
        example: '123'
      - name: days
        in: query
        required: false
        description: Period in days (default 30; Free accounts always get 7).
        schema:
          type: integer
          enum:
          - 7
          - 30
          - 90
          - 365
          default: 30
      responses:
        '200':
          description: Success.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SiteStatsResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Human-readable message (Polish).
        success:
          type: boolean
          const: false
        retry_after:
          type: integer
          description: Seconds to wait (429 only).
        site_id:
          type: integer
          description: 'createSite with files: the site was created but files were not published.'
        url:
          type: string
    SiteStatsResponse:
      type: object
      required:
      - success
      - site_id
      - range
      - summary
      - days
      properties:
        success:
          type: boolean
        url:
          type: string
        site_id:
          type: integer
        range:
          type: integer
          enum:
          - 7
          - 30
          - 90
          - 365
          description: Days actually returned (limited by the plan).
        pro:
          type: boolean
        from:
          type: string
          format: date
        to:
          type: string
          format: date
        summary:
          type: object
          properties:
            views:
              type: integer
            visitors:
              type: integer
            avg_views_per_day:
              type: number
            prev_views:
              type: integer
            prev_visitors:
              type: integer
            change_views_pct:
              type:
              - number
              - 'null'
            change_visitors_pct:
              type:
              - number
              - 'null'
        days:
          type: array
          items:
            type: object
            properties:
              day:
                type: string
                format: date
              views:
                type:
                - integer
                - 'null'
              visitors:
                type: integer
        dims:
          type:
          - object
          - 'null'
          description: PRO breakdowns; null on Free.
          properties:
            country:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                  views:
                    type: integer
                  uniques:
                    type: integer
                  share:
                    type: number
            source:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                  views:
                    type: integer
                  uniques:
                    type: integer
                  share:
                    type: number
            device:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                  views:
                    type: integer
                  uniques:
                    type: integer
                  share:
                    type: number
            browser:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                  views:
                    type: integer
                  uniques:
                    type: integer
                  share:
                    type: number
            os:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                  views:
                    type: integer
                  uniques:
                    type: integer
                  share:
                    type: number
            path:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                  views:
                    type: integer
                  uniques:
                    type: integer
                  share:
                    type: number
        locked:
          type: boolean
          description: True when the plan limited the range or breakdowns.
        note:
          type: string
  responses:
    RateLimited:
      description: More than 60 requests per minute.
      headers:
        Retry-After:
          description: Seconds to wait.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Przekroczono limit zapytań (60/min). Spróbuj ponownie za chwilę.
            retry_after: 30
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Nieprawidłowy klucz API.
    BadRequest:
      description: Invalid input, unknown site, limit reached or wrong HTTP method.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Strona nie istnieje lub nie masz do niej dostępu.
    Forbidden:
      description: Account blocked or expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Konto wygasło. Zaloguj się do panelu, aby przedłużyć.
  headers:
    RateLimitLimit:
      description: Requests allowed per minute.
      schema:
        type: integer
    RateLimitRemaining:
      description: Requests left in the current minute.
      schema:
        type: integer
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: hk_ API key
      description: 'API key from Dashboard > API & tools (starts with hk_). Header: Authorization: Bearer hk_...'