OpenAxia Compare API
The Compare API from OpenAxia — 2 operation(s) for compare.
The Compare API from OpenAxia — 2 operation(s) for compare.
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/openaxia-com:openaxia-com-compare-api"
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.
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: 3.2.0
info:
title: OpenAxia Public Compare API
version: 1.0.0
description: 'OpenAxia — Read-only access to the claim-sourced knowledge base of motors, smart motion/shading products, manufacturers and certifications. Every spec, company fact and certification carries its original source and observation date. Only published, reviewed records are exposed. Access: anonymous callers get 60 requests per hour per client IP; a free API key (sent as "Authorization: Bearer " or "X-API-Key: ") gets 5,000 requests per day per key. Over quota → 429 with Retry-After; an invalid or revoked key → 401. Every response reports the remaining quota in RateLimit-* headers. Attribution is required when data is reused (see x-attribution and GET /api/v1). Data may be quoted and reused with attribution: cite "OpenAxia" and link to the record page. Each value carries its original source; verify important facts there.'
license:
name: Attribution required — cite OpenAxia and link to the record page
url: https://openaxia.com/agent
x-attribution:
required: true
name: OpenAxia
url: https://openaxia.com
text: 'Attribution: OpenAxia (https://openaxia.com)'
policyUrl: https://openaxia.com/agent
notice: 'Data may be quoted and reused with attribution: cite "OpenAxia" and link to the record page. Each value carries its original source; verify important facts there.'
servers:
- url: https://openaxia.com
security:
- {}
- ApiKeyHeader: []
- BearerKey: []
tags:
- name: Compare
paths:
/api/v1/compare/brands:
get:
operationId: compareBrands
summary: Qualifying manufacturer pairs (same set and order as /compare/brands), or one…
parameters:
- name: pair
in: query
required: false
description: A pair slug from a previous response (`a-vs-b`); either order is accepted.
schema:
type: string
pattern: ^[a-z0-9-]{3,200}$
responses:
'200':
description: 'Without `pair`: every qualifying pair (data is an array of BrandPairSummary, meta is ListMeta). With `pair`: one BrandComparison (meta is null).'
headers:
ETag:
$ref: '#/components/headers/ETag'
Cache-Control:
$ref: '#/components/headers/CacheControl'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
X-Quota-Scope:
$ref: '#/components/headers/QuotaScope'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
oneOf:
- type: array
items:
$ref: '#/components/schemas/BrandPairSummary'
- $ref: '#/components/schemas/BrandComparison'
meta:
oneOf:
- $ref: '#/components/schemas/ListMeta'
- type: 'null'
'304':
description: Not modified.
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
tags:
- Compare
/api/v1/compare/products:
get:
operationId: compareProducts
summary: Side-by-side comparison of 2–6 products (same data as /compare and the model…
parameters:
- name: ids
in: query
required: true
description: Comma-separated product identifiers — `slug`s, bare `publicId`s (server switch `MOTOBASE_PUBLIC_URLS_ENABLED` on) and legacy numeric ids (deprecated) may be mixed. Invalid tokens and tokens naming the same product are dropped, the first 6 are used; at least 2 must be valid. Unresolvable tokens are echoed in `notFound`.
schema:
type: string
example: somfy-sonesse-30-rts-k7q2m9x,p3d8f2a
responses:
'200':
description: The comparison.
headers:
ETag:
$ref: '#/components/headers/ETag'
Cache-Control:
$ref: '#/components/headers/CacheControl'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
X-Quota-Scope:
$ref: '#/components/headers/QuotaScope'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/ProductComparison'
meta:
type: 'null'
'304':
description: Not modified.
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
tags:
- Compare
components:
responses:
Unauthorized:
description: The API key is malformed, unknown or revoked (omit it to use the anonymous quota).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
headers:
WWW-Authenticate:
schema:
type: string
InternalError:
description: Temporary failure; retry later.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
RateLimited:
description: Quota exhausted; retry after Retry-After seconds, or use an API key for a higher quota.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
headers:
Retry-After:
schema:
type: integer
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
X-Quota-Scope:
$ref: '#/components/headers/QuotaScope'
NotFound:
description: No publicly visible record matches this identifier.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
BadRequest:
description: Invalid or unknown query parameter, or malformed cursor.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
schemas:
CountRow:
type: object
description: A derived count per label for each company (no per-row source; counts are over records that each carry their own evidence).
properties:
label:
type: string
counts:
type: array
minItems: 2
maxItems: 2
items:
type: integer
required:
- label
- counts
ListMeta:
type: object
properties:
total:
type: integer
page:
type: integer
limit:
type: integer
required:
- total
- page
- limit
EntityRef:
type: object
properties:
slug:
type: string
description: Identifier of the referenced product or company, in the same form as ProductSummary.slug / CompanySummary.slug (canonical identifier with the server switch `MOTOBASE_PUBLIC_URLS_ENABLED` on; numeric only while that record is not backfilled).
name:
type: string
required:
- slug
- name
SuccessEnvelope:
type: object
properties:
ok:
const: true
data: {}
error:
type: 'null'
meta: {}
required:
- ok
- data
- error
- meta
Evidence:
type: object
description: Provenance of a claim-backed value.
properties:
claimId:
type:
- string
- integer
- 'null'
source:
$ref: '#/components/schemas/Source'
observedAt:
type: string
assertionType:
type:
- string
- 'null'
evidenceStrength:
type: string
confidence:
type: string
sourceExcerpt:
type: string
description: Present only when the excerpt passed this service's public review gate.
required:
- claimId
- source
- observedAt
- assertionType
- evidenceStrength
- confidence
Spec:
type: object
properties:
property:
type: string
displayName:
type: string
valueType:
type: string
value: {}
unit:
type:
- string
- 'null'
evidence:
$ref: '#/components/schemas/Evidence'
required:
- property
- displayName
- valueType
- value
- unit
- evidence
RangeEndpoint:
type: object
description: 'One end of a range: exactly the value of one verified claim.'
properties:
value:
type: number
unit:
type:
- string
- 'null'
product:
$ref: '#/components/schemas/ProductRef'
evidence:
$ref: '#/components/schemas/Evidence'
required:
- value
- unit
- product
- evidence
SpecRange:
type: object
properties:
count:
type: integer
description: Models of this company with a value.
total:
type: integer
description: Published models of this company.
min:
$ref: '#/components/schemas/RangeEndpoint'
max:
$ref: '#/components/schemas/RangeEndpoint'
required:
- count
- total
- min
- max
BrandPairSummary:
type: object
description: A qualifying manufacturer pair (both have at least 5 published models).
properties:
slug:
type: string
description: Pair slug `a-vs-b` (alphabetical).
companies:
type: array
minItems: 2
maxItems: 2
items:
$ref: '#/components/schemas/BrandCompany'
links:
type: object
properties:
page:
type: string
format: uri
api:
type: string
format: uri
required:
- page
- api
required:
- slug
- companies
- links
Source:
type:
- object
- 'null'
properties:
title:
type:
- string
- 'null'
kind:
type:
- string
- 'null'
url:
type:
- string
- 'null'
retrievedAt:
type:
- string
- 'null'
legalBasis:
type:
- string
- 'null'
required:
- title
- kind
- url
- retrievedAt
- legalBasis
CompanyFactValue:
type: object
properties:
value:
type: string
source:
type: object
properties:
title:
type: string
url:
type: string
retrievedAt:
type:
- string
- 'null'
required:
- title
- url
- retrievedAt
observedAt:
type: string
required:
- value
- source
- observedAt
ProductRef:
description: 'A product reference: EntityRef plus the canonical display name.'
allOf:
- $ref: '#/components/schemas/EntityRef'
- type: object
properties:
displayName:
type: string
description: Canonical display name (the public page H1). Presentation only — never use it as an id, slug or filter value; `name` keeps the original value.
required:
- displayName
ProductComparison:
type: object
description: Same shape as the motobase_compare_products MCP tool result, plus the indexable page link.
properties:
products:
type: array
items:
$ref: '#/components/schemas/ProductRef'
baseline:
type: array
items:
type: object
properties:
key:
type: string
displayName:
type: string
values:
type: array
items:
type:
- string
- 'null'
required:
- key
- displayName
- values
specs:
type: array
items:
type: object
properties:
property:
type: string
displayName:
type: string
group:
type:
- string
- 'null'
isDifferent:
type: boolean
description: 'Rule-based: tolerance, qualifier and set rules; not-published / unchecked cells never participate.'
values:
type: array
items:
oneOf:
- $ref: '#/components/schemas/Spec'
- type: 'null'
allValues:
type: array
items:
type: array
items:
$ref: '#/components/schemas/Spec'
specGroup:
type: string
description: v2 spec group (12-group order); `group` keeps the legacy three-group value.
compareRule:
type: string
states:
type: array
items:
type: string
enum:
- value
- standard
- optional
- none
- not_published
- not_applicable
- unknown
differentBasis:
type: array
items:
type: boolean
best:
type: array
items:
type: boolean
required:
- property
- displayName
- group
- isDifferent
- values
- allValues
- specGroup
- compareRule
- states
- differentBasis
- best
notFound:
type: array
items:
type: string
recommended:
type: boolean
description: True when exactly two products resolve and they form a recommended (indexable) pair.
canonicalPage:
type:
- string
- 'null'
format: uri
description: The model comparison page when exactly two products resolve.
templateAlignment:
type: string
enum:
- same_template
- shared_rows_only
- no_template
seriesGroup:
type:
- object
- 'null'
description: '"Series & variant axes" row group when ≥2 compared products share a published series.'
properties:
series:
type: array
items:
type:
- object
- 'null'
properties:
name:
type: string
url:
type: string
axes:
type: array
items:
type: object
properties:
key:
type: string
label:
type: string
isDifferent:
type: boolean
values:
type: array
items:
type:
- object
- 'null'
properties:
values:
type: array
items:
type: string
fromModelName:
type: boolean
claimIds:
type: array
items:
type: string
viewAll:
type:
- object
- 'null'
properties:
url:
type: string
memberCount:
type: integer
required:
- products
- baseline
- specs
- notFound
- recommended
- canonicalPage
- templateAlignment
BrandComparison:
type: object
description: Same data as the /compare/brands/{a}-vs-{b} page.
properties:
pair:
$ref: '#/components/schemas/BrandPairSummary'
columns:
type: array
minItems: 2
maxItems: 2
items:
type: object
properties:
company:
$ref: '#/components/schemas/BrandCompany'
seriesCount:
type: integer
activeCertificationCount:
type: integer
facts:
type: object
properties:
hqCountry:
oneOf:
- $ref: '#/components/schemas/CompanyFactValue'
- type: 'null'
legalName:
oneOf:
- $ref: '#/components/schemas/CompanyFactValue'
- type: 'null'
website:
oneOf:
- $ref: '#/components/schemas/CompanyFactValue'
- type: 'null'
required:
- hqCountry
- legalName
- website
required:
- company
- seriesCount
- activeCertificationCount
- facts
coverage:
type: array
items:
$ref: '#/components/schemas/CountRow'
ranges:
type: array
items:
type: object
properties:
property:
type: string
displayName:
type: string
cells:
type: array
minItems: 2
maxItems: 2
items:
oneOf:
- $ref: '#/components/schemas/SpecRange'
- type: 'null'
required:
- property
- displayName
- cells
protocols:
type: array
items:
$ref: '#/components/schemas/CountRow'
certifications:
type: array
items:
$ref: '#/components/schemas/CountRow'
closestModels:
type: array
items:
type: object
properties:
products:
type: array
minItems: 2
maxItems: 2
items:
$ref: '#/components/schemas/ProductRef'
page:
type: string
format: uri
required:
- products
- page
required:
- pair
- columns
- coverage
- ranges
- protocols
- certifications
- closestModels
ErrorEnvelope:
type: object
properties:
ok:
const: false
data:
type: 'null'
error:
type: object
properties:
code:
type: string
enum:
- invalid_request
- invalid_cursor
- invalid_api_key
- not_found
- gone
- rate_limited
- internal_error
message:
type: string
required:
- code
- message
meta:
type: 'null'
required:
- ok
- data
- error
- meta
BrandCompany:
type: object
properties:
slug:
type: string
name:
type: string
productCount:
type: integer
required:
- slug
- name
- productCount
headers:
RateLimitPolicy:
description: Quota policy, e.g. "60;w=3600" (anonymous) or "5000;w=86400" (free key).
schema:
type: string
ETag:
description: Weak entity tag; send as If-None-Match to get 304.
schema:
type: string
QuotaScope:
description: 'Which quota applied: anonymous, free or partner.'
schema:
type: string
enum:
- anonymous
- free
- partner
CacheControl:
schema:
type: string
example: public, max-age=60
RateLimitLimit:
description: Quota size of the window that applies to this caller.
schema:
type: integer
RateLimitReset:
description: Seconds until the current quota window resets.
schema:
type: integer
RateLimitRemaining:
schema:
type: integer
description: Requests left in the current quota window.
securitySchemes:
ApiKeyHeader:
type: apiKey
in: header
name: X-API-Key
description: 'API key (oax_…). Optional: without a key the anonymous per-IP quota applies.'
BearerKey:
type: http
scheme: bearer
description: 'The same API key sent as "Authorization: Bearer <key>".'