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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/onyxmetric-com:onyxmetric-com-events-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
openapi: 3.2.0
info:
title: Onyxmetric Com Events API
version: 2.8.0-beta
contact:
name: OnyxMetric
url: https://onyxmetric.com/contact
termsOfService: https://onyxmetric.com/terms-and-conditions
description: 'Operations tagged Events across 2 of this provider''s published API definitions: onyxmetric-com-openapi.json, openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://app.onyxmetric.com
description: OnyxMetric Cloud API
tags:
- name: Events
description: Events API operations.
paths:
/api/sites/{site}/events/count:
get:
summary: Get Event Counts
description: Returns time-bucketed event counts grouped by event type.
operationId: getApiSitesSiteEventsCount
tags:
- Events
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/events/count
responses:
'200':
description: Successful response. Refer to the linked endpoint documentation for the response fields.
content:
application/json:
schema: {}
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Insufficient permission
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Unexpected server error
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
parameters:
- description: Numeric OnyxMetric Site ID or string identifier.
in: path
name: site
required: true
schema:
oneOf:
- type: integer
minimum: 1
- type: string
minLength: 1
- $ref: '#/components/parameters/StartDate'
- $ref: '#/components/parameters/EndDate'
- $ref: '#/components/parameters/TimeZone'
- $ref: '#/components/parameters/StartDatetime'
- $ref: '#/components/parameters/EndDatetime'
- $ref: '#/components/parameters/PastMinutesStart'
- $ref: '#/components/parameters/PastMinutesEnd'
- $ref: '#/components/parameters/Filters'
- $ref: '#/components/parameters/SegmentId'
servers:
- url: https://app.onyxmetric.com
description: OnyxMetric Cloud API
/api/sites/{site}/events/{eventId}:
get:
summary: Get Event
description: Reads the server-side enrichment of one tracked event by its event_id, within milliseconds of tracking.
operationId: getApiSitesSiteEventsEventId
tags:
- Events
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/events/get
responses:
'200':
description: Successful response. Refer to the linked endpoint documentation for the response fields.
content:
application/json:
schema: {}
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Insufficient permission
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Unexpected server error
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
parameters:
- description: Numeric OnyxMetric Site ID or string identifier.
in: path
name: site
required: true
schema:
oneOf:
- type: integer
minimum: 1
- type: string
minLength: 1
- description: eventId identifier.
in: path
name: eventId
required: true
schema:
type: string
minLength: 1
servers:
- url: https://app.onyxmetric.com
description: OnyxMetric Cloud API
/api/sites/{site}/events:
get:
summary: Get Events
description: Returns a paginated list of events (pageviews, custom events, and outbound clicks).
operationId: getApiSitesSiteEvents
tags:
- Events
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/events/list
responses:
'200':
description: Successful response. Refer to the linked endpoint documentation for the response fields.
content:
application/json:
schema: {}
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Insufficient permission
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Unexpected server error
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
parameters:
- description: Numeric OnyxMetric Site ID or string identifier.
in: path
name: site
required: true
schema:
oneOf:
- type: integer
minimum: 1
- type: string
minLength: 1
- $ref: '#/components/parameters/StartDate'
- $ref: '#/components/parameters/EndDate'
- $ref: '#/components/parameters/TimeZone'
- $ref: '#/components/parameters/StartDatetime'
- $ref: '#/components/parameters/EndDatetime'
- $ref: '#/components/parameters/PastMinutesStart'
- $ref: '#/components/parameters/PastMinutesEnd'
- $ref: '#/components/parameters/Filters'
- $ref: '#/components/parameters/SegmentId'
servers:
- url: https://app.onyxmetric.com
description: OnyxMetric Cloud API
/api/sites/{site}/events/names:
get:
summary: Get Event Names
description: Returns a list of unique custom event names with their occurrence counts.
operationId: getApiSitesSiteEventsNames
tags:
- Events
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/events/names
responses:
'200':
description: Successful response. Refer to the linked endpoint documentation for the response fields.
content:
application/json:
schema: {}
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Insufficient permission
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Unexpected server error
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
parameters:
- description: Numeric OnyxMetric Site ID or string identifier.
in: path
name: site
required: true
schema:
oneOf:
- type: integer
minimum: 1
- type: string
minLength: 1
- $ref: '#/components/parameters/StartDate'
- $ref: '#/components/parameters/EndDate'
- $ref: '#/components/parameters/TimeZone'
- $ref: '#/components/parameters/StartDatetime'
- $ref: '#/components/parameters/EndDatetime'
- $ref: '#/components/parameters/PastMinutesStart'
- $ref: '#/components/parameters/PastMinutesEnd'
- $ref: '#/components/parameters/Filters'
- $ref: '#/components/parameters/SegmentId'
servers:
- url: https://app.onyxmetric.com
description: OnyxMetric Cloud API
/api/sites/{site}/events/outbound:
get:
summary: Get Outbound Links
description: Returns a list of outbound link clicks with their occurrence counts.
operationId: getApiSitesSiteEventsOutbound
tags:
- Events
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/events/outbound
responses:
'200':
description: Successful response. Refer to the linked endpoint documentation for the response fields.
content:
application/json:
schema: {}
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Insufficient permission
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Unexpected server error
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
parameters:
- description: Numeric OnyxMetric Site ID or string identifier.
in: path
name: site
required: true
schema:
oneOf:
- type: integer
minimum: 1
- type: string
minLength: 1
- $ref: '#/components/parameters/StartDate'
- $ref: '#/components/parameters/EndDate'
- $ref: '#/components/parameters/TimeZone'
- $ref: '#/components/parameters/StartDatetime'
- $ref: '#/components/parameters/EndDatetime'
- $ref: '#/components/parameters/PastMinutesStart'
- $ref: '#/components/parameters/PastMinutesEnd'
- $ref: '#/components/parameters/Filters'
- $ref: '#/components/parameters/SegmentId'
servers:
- url: https://app.onyxmetric.com
description: OnyxMetric Cloud API
/api/sites/{site}/events/properties:
get:
summary: Get Event Properties
description: Returns property key-value pairs for a specific event name with their occurrence counts.
operationId: getApiSitesSiteEventsProperties
tags:
- Events
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/events/properties
responses:
'200':
description: Successful response. Refer to the linked endpoint documentation for the response fields.
content:
application/json:
schema: {}
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Insufficient permission
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Unexpected server error
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
parameters:
- description: Numeric OnyxMetric Site ID or string identifier.
in: path
name: site
required: true
schema:
oneOf:
- type: integer
minimum: 1
- type: string
minLength: 1
- $ref: '#/components/parameters/StartDate'
- $ref: '#/components/parameters/EndDate'
- $ref: '#/components/parameters/TimeZone'
- $ref: '#/components/parameters/StartDatetime'
- $ref: '#/components/parameters/EndDatetime'
- $ref: '#/components/parameters/PastMinutesStart'
- $ref: '#/components/parameters/PastMinutesEnd'
- $ref: '#/components/parameters/Filters'
- $ref: '#/components/parameters/SegmentId'
servers:
- url: https://app.onyxmetric.com
description: OnyxMetric Cloud API
/api/sites/{site}/events/time-series:
get:
summary: Get Event Time Series
description: Returns time-bucketed counts for the top custom events.
operationId: getApiSitesSiteEventsTimeSeries
tags:
- Events
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/events/time-series
responses:
'200':
description: Successful response. Refer to the linked endpoint documentation for the response fields.
content:
application/json:
schema: {}
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Insufficient permission
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Unexpected server error
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
parameters:
- description: Numeric OnyxMetric Site ID or string identifier.
in: path
name: site
required: true
schema:
oneOf:
- type: integer
minimum: 1
- type: string
minLength: 1
- $ref: '#/components/parameters/StartDate'
- $ref: '#/components/parameters/EndDate'
- $ref: '#/components/parameters/TimeZone'
- $ref: '#/components/parameters/StartDatetime'
- $ref: '#/components/parameters/EndDatetime'
- $ref: '#/components/parameters/PastMinutesStart'
- $ref: '#/components/parameters/PastMinutesEnd'
- $ref: '#/components/parameters/Filters'
- $ref: '#/components/parameters/SegmentId'
servers:
- url: https://app.onyxmetric.com
description: OnyxMetric Cloud API
components:
parameters:
SegmentId:
name: segment_id
in: query
description: ID of a saved segment whose filters are applied server-side, ANDed with any `filters` also passed.
schema:
type: integer
minimum: 1
StartDatetime:
name: start_datetime
in: query
schema:
type: string
PastMinutesStart:
name: past_minutes_start
in: query
schema:
type: integer
minimum: 1
PastMinutesEnd:
name: past_minutes_end
in: query
schema:
type: integer
minimum: 0
EndDate:
name: end_date
in: query
schema:
type: string
format: date
TimeZone:
name: time_zone
in: query
schema:
type: string
example: America/Los_Angeles
StartDate:
name: start_date
in: query
schema:
type: string
format: date
Filters:
name: filters
in: query
description: JSON-encoded array of analytics filters.
schema:
type: string
EndDatetime:
name: end_datetime
in: query
schema:
type: string
schemas:
ApiError:
type: object
additionalProperties: true
required:
- error
- code
- message
- resolution
properties:
error:
type: string
description: Backward-compatible human-readable error.
code:
type: string
description: Stable machine-readable error code.
message:
type: string
description: Human-readable explanation.
resolution:
type: string
description: Action the caller can take to recover.
details:
description: Optional structured context for this error.
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: Personal or organization API key sent as an Authorization Bearer token.
QueryApiKey:
type: apiKey
in: query
name: api_key
description: Testing-only fallback. Bearer authentication is recommended.
CookieSession:
type: apiKey
in: cookie
name: better-auth.session_token
description: Authenticated dashboard session cookie. Secure deployments may prefix the cookie name with __Secure-.
externalDocs:
description: OnyxMetric API documentation
url: https://onyxmetric.com/docs/api/getting-started
x-refined-from:
- onyxmetric-com-openapi.json
- openapi.json