B3 Statistics API
The Statistics API from B3 — 3 operation(s) for statistics.
The Statistics API from B3 — 3 operation(s) for statistics.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/b3-statistics-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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: 3.2.0
info:
title: B3 Statistics API
version: '1.0'
description: 'Operations tagged Statistics across 2 of this provider''s published API definitions: b3-b3os-workflow-openapi.json, b3-statistics-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.b3os.org/v1
description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Statistics
paths:
/v1/statistics:
get:
description: Get cumulative statistics for all nodes (actions + triggers)
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetAllStatisticsSuccessResponse'
description: OK
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
description: Internal Server Error
tags:
- Statistics
/v1/statistics/action/{id}/latency:
get:
description: Get latency time-series data for a specific action
parameters:
- description: Action ID
in: path
name: id
required: true
schema:
type: string
- description: Start timestamp (Unix milliseconds)
in: query
name: from
required: true
schema:
type: integer
- description: End timestamp (Unix milliseconds)
in: query
name: to
required: true
schema:
type: integer
- description: Granularity (hourly or daily)
in: query
name: granularity
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetLatencyTimeSeriesSuccessResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
description: Bad Request
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
description: Internal Server Error
tags:
- Statistics
/v1/statistics/{type}/{id}/usage:
get:
description: Get usage time-series data for a specific node
parameters:
- description: Node type (action or trigger)
in: path
name: type
required: true
schema:
type: string
- description: Node ID
in: path
name: id
required: true
schema:
type: string
- description: Start timestamp (Unix milliseconds)
in: query
name: from
required: true
schema:
type: integer
- description: End timestamp (Unix milliseconds)
in: query
name: to
required: true
schema:
type: integer
- description: Granularity (hourly or daily)
in: query
name: granularity
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetUsageTimeSeriesSuccessResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
description: Bad Request
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
description: Internal Server Error
tags:
- Statistics
components:
schemas:
github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse:
properties:
code:
type: integer
details:
items: {}
type: array
uniqueItems: false
message:
type: string
requestId:
type: string
type: object
github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.UsageTimeSeriesPoint:
properties:
bucketStart:
description: Start of time bucket (hourly or daily)
type: string
usageCount:
description: Number of executions in this bucket
type: integer
type: object
github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.NodeStatistics:
properties:
averageLatencyMs:
description: For actions only (nil for triggers)
type: number
nodeId:
type: string
nodeType:
type: string
successRate:
description: For actions only (nil for triggers)
type: number
totalExecutions:
description: From continuous aggregate
type: integer
workflowsCount:
description: From workflows table (direct query)
type: integer
type: object
LatencyTimeSeriesData:
properties:
actionId:
description: e.g., "send-erc20-token"
type: string
data:
description: Time-series data points
items:
$ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.LatencyTimeSeriesPoint'
type: array
uniqueItems: false
granularity:
description: '"hourly" or "daily"'
type: string
type: object
UsageTimeSeriesData:
properties:
data:
description: Time-series data points
items:
$ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.UsageTimeSeriesPoint'
type: array
uniqueItems: false
granularity:
description: '"hourly" or "daily"'
type: string
nodeId:
description: e.g., "send-erc20-token"
type: string
nodeType:
description: '"action" or "trigger"'
type: string
type: object
GetUsageTimeSeriesSuccessResponse:
properties:
code:
example: 200
type: integer
data:
$ref: '#/components/schemas/UsageTimeSeriesData'
message:
example: success
type: string
requestId:
example: abc-123
type: string
type: object
GetAllStatisticsSuccessResponse:
properties:
code:
example: 200
type: integer
data:
additionalProperties:
$ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.NodeStatistics'
type: object
message:
example: success
type: string
requestId:
example: abc-123
type: string
type: object
github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.LatencyTimeSeriesPoint:
properties:
avgLatencyMs:
description: Average latency in this bucket
type: number
bucketStart:
description: Start of time bucket (hourly or daily)
type: string
p50LatencyMs:
description: Median latency (50th percentile)
type: number
p95LatencyMs:
description: 95th percentile latency
type: number
type: object
GetLatencyTimeSeriesSuccessResponse:
properties:
code:
example: 200
type: integer
data:
$ref: '#/components/schemas/LatencyTimeSeriesData'
message:
example: success
type: string
requestId:
example: abc-123
type: string
type: object
x-refined-from:
- b3-b3os-workflow-openapi.json
- b3-statistics-api-openapi.yml