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-goals-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 Goals API
version: 2.8.0-beta
contact:
name: OnyxMetric
url: https://onyxmetric.com/contact
termsOfService: https://onyxmetric.com/terms-and-conditions
description: 'Operations tagged Goals 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: Goals
description: Goals API operations.
paths:
/api/sites/{site}/goals:
post:
summary: Create Goal
description: Creates a new goal for tracking conversions.
operationId: postApiSitesSiteGoals
tags:
- Goals
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/goals/create
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
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
get:
summary: Get Goals
description: Returns a paginated list of goals with their conversion metrics.
operationId: getApiSitesSiteGoals
tags:
- Goals
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/goals/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}/goals/{goalId}:
delete:
summary: Delete Goal
description: Permanently deletes a goal from a site by its ID. This action cannot be undone, and the goal stops counting conversions.
operationId: deleteApiSitesSiteGoalsGoalId
tags:
- Goals
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/goals/delete
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: goalId identifier.
in: path
name: goalId
required: true
schema:
type: string
minLength: 1
put:
summary: Update Goal
description: Updates an existing goal.
operationId: putApiSitesSiteGoalsGoalId
tags:
- Goals
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/goals/update
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: goalId identifier.
in: path
name: goalId
required: true
schema:
type: string
minLength: 1
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
servers:
- url: https://app.onyxmetric.com
description: OnyxMetric Cloud API
/api/sites/{site}/goals/{goalId}/sessions:
get:
summary: Get Goal Sessions
description: Returns sessions that completed a specific goal. Useful for analyzing the behavior of converting users.
operationId: getApiSitesSiteGoalsGoalIdSessions
tags:
- Goals
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/goals/sessions
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: goalId identifier.
in: path
name: goalId
required: true
schema:
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}/goals/time-series:
get:
summary: Get Goal Time Series
description: Returns goal conversions and conversion rate over time.
operationId: getApiSitesSiteGoalsTimeSeries
tags:
- Goals
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/goals/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