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/actian:actian-count-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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
openapi: 3.2.0
info:
title: Actian VectorAI DB - Search Count API
description: Vector similarity search operations for Actian VectorAI DB.
version: 1.0.0
contact:
name: Actian Corporation
url: https://www.actian.com
servers:
- url: http://localhost:6573
description: Local development server (REST API)
- url: https://api.vectorai.actian.com
description: Production server
security:
- bearerAuth: []
tags:
- name: Count
description: Counting operations
paths:
/collections/{collection_name}/points/count:
post:
tags:
- Count
summary: Count points
description: Count the number of points in a collection, optionally filtered by payload conditions. Useful for checking collection size, validating data loads, or counting points matching specific criteria.
operationId: count_points
parameters:
- name: collection_name
in: path
required: true
schema:
type: string
description: The name of the collection to count points in.
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
filter:
type: object
description: Optional filter conditions. Only points matching the filter are counted.
exact:
type: boolean
default: true
example: true
description: If `true`, returns an exact count. If `false`, returns a faster approximate count. Defaults to `true`.
examples:
count_all:
summary: Count all points
value:
exact: true
count_filtered:
summary: Count with filter
value:
filter:
must:
- key: category
match:
value: A
exact: true
responses:
'200':
description: Count result
content:
application/json:
schema:
type: object
properties:
usage:
type: object
properties:
hardware:
type:
- object
- 'null'
description: Hardware resource counters for the operation, including CPU, payload I/O, payload index I/O, and vector I/O metrics.
time:
type: number
format: double
example: 4.424e-06
description: Time spent to process this request, in seconds.
status:
type: string
example: ok
description: Operation status.
result:
type: object
properties:
count:
type: integer
example: 4
description: The number of points matching the criteria.
example:
usage:
hardware: null
time: 4.424e-06
status: ok
result:
count: 4
4XX:
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-codeSamples:
- lang: Python
label: Count all points
source: "from actian_vectorai_client import VectorAIClient\n\nwith VectorAIClient(\"localhost:6574\") as client:\n # Count total points\n count = client.points.count(\"my_collection\")\n print(f\"Total points: {count}\")\n"
- lang: Python
label: Count with filter
source: "from actian_vectorai_client import VectorAIClient, Field, FilterBuilder\n\nwith VectorAIClient(\"localhost:6574\") as client:\n # Count points matching filter\n payload_filter = FilterBuilder().must(Field(\"category\").eq(\"A\")).build()\n count_a = client.points.count(\"my_collection\", filter=payload_filter)\n print(f\"Category A: {count_a}\")\n"
- lang: JavaScript
label: Count all points
source: 'import { VectorAIClient } from ''@actian/vectorai-client'';
const client = new VectorAIClient(''localhost:6574'');
const count = await client.points.count(''my_collection'');
console.log(`Total points: ${count}`);
client.close();
'
- lang: JavaScript
label: Count with filter
source: 'import { VectorAIClient, Field } from ''@actian/vectorai-client'';
const client = new VectorAIClient(''localhost:6574'');
const filter = Field.of(''category'').eq(''electronics'');
const count = await client.points.count(''my_collection'', { filter });
console.log(`Electronics count: ${count}`);
client.close();
'
- lang: cURL
label: Count points
source: "curl -X POST \"http://localhost:6573/collections/my_collection/points/count\" \\\n -H \"Content-Type: application/json\" \\\n -H 'Authorization: Bearer <admin-jwt-or-access-token>' \\\n -d '{\n \"exact\": true\n }'\n"
- lang: cURL
label: Count with filter
source: "curl -X POST \"http://localhost:6573/collections/my_collection/points/count\" \\\n -H \"Content-Type: application/json\" \\\n -H 'Authorization: Bearer <admin-jwt-or-access-token>' \\\n -d '{\n \"filter\": {\n \"must\": [\n {\n \"key\": \"category\",\n \"match\": {\"value\": \"A\"}\n }\n ]\n }\n }'\n"
components:
schemas:
ErrorResponse:
type: object
properties:
status:
type: object
properties:
error:
type: string
time:
type: number
format: double
description: Time spent to process this request, in seconds.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Admin JWT or access token for authenticating requests to VectorAI DB.