AnyFile Analytics API

The Analytics API from AnyFile — 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 /analytics Get aggregate or per-share analytics #

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/useanyfile-com:useanyfile-com-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

useanyfile-com-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AnyFile REST Analytics API
  version: 1.0.0
  description: 'Public REST API for AnyFile: upload, download and organize owned files in folders, manage share links and file requests, inspect submissions, and read share analytics. Authenticate with an AnyFile API key or OAuth 2.0 bearer token and request only the scopes required for the task.'
servers:
- url: https://www.useanyfile.com/api/v1
tags:
- name: Analytics
paths:
  /analytics:
    get:
      operationId: analytics_get
      summary: Get aggregate or per-share analytics
      x-required-scope: analytics:read
      security:
      - bearerAuth: []
      parameters:
      - name: shareId
        in: query
        description: When provided, returns analytics for this owned share only.
        schema:
          type: string
          minLength: 1
          maxLength: 128
      responses:
        '200':
          description: Share analytics
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    oneOf:
                    - $ref: '#/components/schemas/ShareAnalytics'
                    - $ref: '#/components/schemas/AggregateAnalytics'
        '400':
          $ref: '#/components/responses/ApiError'
        '401':
          $ref: '#/components/responses/ApiError'
        '403':
          $ref: '#/components/responses/ApiError'
        '404':
          $ref: '#/components/responses/ApiError'
        '409':
          $ref: '#/components/responses/ApiError'
        '429':
          $ref: '#/components/responses/ApiError'
      tags:
      - Analytics
components:
  responses:
    ApiError:
      description: Structured AnyFile API error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    AggregateAnalytics:
      type: object
      required:
      - shares
      - activeShares
      - activeRequests
      - views
      - downloads
      properties:
        shares:
          type: integer
          minimum: 0
        activeShares:
          type: integer
          minimum: 0
        activeRequests:
          type: integer
          minimum: 0
        views:
          type: integer
          minimum: 0
        downloads:
          type: integer
          minimum: 0
    ApiError:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - hint
          properties:
            code:
              type: string
            message:
              type: string
            hint:
              type: string
    ShareAnalytics:
      type: object
      required:
      - shareId
      - views
      - downloads
      - isActive
      - expiresAt
      properties:
        shareId:
          type: string
        views:
          type: integer
          minimum: 0
        downloads:
          type: integer
          minimum: 0
        isActive:
          type: boolean
        expiresAt:
          type:
          - string
          - 'null'
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: AnyFile API key or OAuth 2.0 access token
      description: 'Send an AnyFile API key or OAuth 2.0 access token in Authorization: Bearer. OAuth tokens must target https://www.useanyfile.com/api/v1.'
externalDocs:
  description: AnyFile developer resources
  url: https://www.useanyfile.com/developers