Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
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.
openapi: 3.2.0
info:
title: V³ News API v3 Categories API
version: 0.1.0
tags:
- name: Categories
paths:
/categories/insights:
get:
tags:
- Categories
summary: Categories Insights
description: 'Corpus-level taxonomy readings the per-category list cannot give.
1. Overlap. How many categories the average event carries. This is the
honest correction to any summed count: the categories are lenses on the
same events, not buckets that partition them.
2. Co-occurring pairs. Which two categories keep landing on the same
event (geopolitics with security_risk leads by a wide margin). The
closest thing the taxonomy has to a cross-domain pressure reading.
3. Reach extremes. The most concentrated and the most diffuse category,
so the spread axis has a stated top and bottom.'
operationId: categories_insights_categories_insights_get
parameters:
- name: window
in: query
required: false
schema:
type: string
pattern: ^(p24h|p7d|p30d|all)$
default: all
title: Window
- name: status
in: query
required: false
schema:
type: string
default: active
title: Status
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/categories:
get:
tags:
- Categories
summary: List Categories
description: 'Return categories with counts, scores, geographic spread and a lead event.
Row shape::
{
"key": "GEOPOLITICS", "label": "Geopolitics", "slug": "geopolitics",
"event_count": 129, "countries": 45,
"top_countries": [{"iso2": "EG", "events": 27}, ...], # up to 5
"top_country_share": 0.209,
"emerging_events": 14, "active_events": 79, "cooling_events": 36,
"avg_risk": 62.1, "avg_impact": ..., "avg_signal": ...,
"max_importance": 96, "last_update_time": "...",
"brief_at": "...", "top_event_id": "...", "top_event_title": "...",
"top_event_importance": 96
}
``event_count`` counts DISTINCT events reachable through
``perspectives.category_slug`` — the same predicate ``GET /events?category=``
applies, so the card count and the filtered feed agree.'
operationId: list_categories_categories_get
parameters:
- name: include_subcategories
in: query
required: false
schema:
type: boolean
description: Include child subcategories alongside primaries. The seeded ontology currently has 13 parents and no children, so this is a no-op until subcategories are seeded.
default: false
title: Include Subcategories
description: Include child subcategories alongside primaries. The seeded ontology currently has 13 parents and no children, so this is a no-op until subcategories are seeded.
- name: window
in: query
required: false
schema:
type: string
pattern: ^(p24h|p7d|p30d|all)$
default: all
title: Window
- name: status
in: query
required: false
schema:
type: string
default: active
title: Status
- name: sort
in: query
required: false
schema:
type: string
pattern: ^(events|countries|concentrated|risk|importance|recent|alpha)$
default: events
title: Sort
- name: include_empty
in: query
required: false
schema:
type: boolean
description: Keep categories with no events in the window
default: true
title: Include Empty
description: Keep categories with no events in the window
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError