V³ Aware Risk API

The risk API from V³ Aware, for risk.

GitHub OpenAPI
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).

Operations 10

GET /risk/stress Global Stress #
GET /risk/stress/events/{event_id} Event Stress #
GET /risk/stress/{key} Stress Category #
GET /risk/events/{event_id}/history Event History #
GET /risk/global/history Global History #
GET /risk/global/perspectives Global Perspectives #
GET /risk/categories/history Categories History #
GET /risk/countries/heat Countries Heat #
GET /risk/categories/heatmap Categories Heatmap #
GET /risk/correlations Event Correlations #

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/v3-news:v3-news-risk-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

v3-news-risk-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: V³ News API v3 Risk API
  version: 0.1.0
tags:
- name: Risk
paths:
  /risk/stress:
    get:
      tags:
      - Risk
      summary: Global Stress
      description: 'The Global Pulse stress rating: one 0-100 rating per category, from

        stress_snapshots (signal-layers, hourly; the last run of a day is that

        day''s value). Rating = 70% load (the total weight of the category''s

        serious events) + 30% peak (its three heaviest events).


        Each category also carries its normal range over 90 days, the events

        that moved it this week, and a potential two-week range from the trend

        and the decisions due on its events.'
      operationId: global_stress_risk_stress_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 180
          minimum: 7
          description: History window for the trend line.
          default: 30
          title: Days
        description: History window for the trend line.
      - name: country
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            pattern: ^[A-Za-z]{2}$
          - type: 'null'
          description: 'Perspective: rate each category over the events this country''s perspectives cover (signed in).'
          title: Country
        description: 'Perspective: rate each category over the events this country''s perspectives cover (signed in).'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Global Stress Risk Stress Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /risk/stress/events/{event_id}:
    get:
      tags:
      - Risk
      summary: Event Stress
      description: 'The stress categories and fronts one event belongs to (relevance 40+,

        strongest first), each with the category''s current rating and how many

        active events share the front: the hook from an event page into the

        category pages (owner, 2026-10-26). Public, like the event page.'
      operationId: event_stress_risk_stress_events__event_id__get
      parameters:
      - name: event_id
        in: path
        required: true
        schema:
          type: string
          title: Event Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Event Stress Risk Stress Events  Event Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /risk/stress/{key}:
    get:
      tags:
      - Risk
      summary: Stress Category
      description: 'One stress category as a page: its rating block (as on /risk/stress,

        with 90 days of history), its FRONTS (the running situations inside it,

        named by extract-stress-tags: active events grouped, heaviest first),

        where it is felt (the load by perspective country), the decisions due on

        its events in the next 30 days, and the fronts that went quiet in the

        last 90 days.


        Anonymous callers get the block, the top fronts with three events each,

        four decisions and five quiet fronts, with ``gated: true``.'
      operationId: stress_category_risk_stress__key__get
      parameters:
      - name: key
        in: path
        required: true
        schema:
          type: string
          title: Key
      - name: country
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            pattern: ^[A-Za-z]{2}$
          - type: 'null'
          title: Country
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Stress Category Risk Stress  Key  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /risk/events/{event_id}/history:
    get:
      tags:
      - Risk
      summary: Event History
      description: 'Per-event time series — sparkline data for the event detail page.


        Returns one point per bucket (hour or day) showing the average score

        within that bucket. With hourly rollups, the daily bucket is the average

        across all snapshots that day — usually 24 points but tolerates gaps.'
      operationId: event_history_risk_events__event_id__history_get
      parameters:
      - name: event_id
        in: path
        required: true
        schema:
          type: string
          title: Event Id
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 750
          minimum: 1
          default: 14
          title: Days
      - name: bucket
        in: query
        required: false
        schema:
          type: string
          pattern: ^(hour|day)$
          default: day
          title: Bucket
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /risk/global/history:
    get:
      tags:
      - Risk
      summary: Global History
      description: 'Global aggregate — average risk/impact/signal across all events at each bucket.


        "Average across all active events" is a simple, intuitive metric that

        answers "is the world heating up?". For ranking-style insight (top events

        moving) the per-event histories are the better source.


        The 750-day ceiling supports the Insights cockpit''s "This Year" and

        "All Time" windows (the latter caps at 2 years for chart resolution).

        Hourly bucket should not be combined with year-scale windows in

        practice; the API doesn''t enforce that here but the UI clamps

        long-window calls to bucket=day.'
      operationId: global_history_risk_global_history_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 750
          minimum: 1
          default: 14
          title: Days
      - name: bucket
        in: query
        required: false
        schema:
          type: string
          pattern: ^(hour|day)$
          default: day
          title: Bucket
      - name: status
        in: query
        required: false
        schema:
          type: string
          description: Restrict to events of this status
          default: active
          title: Status
        description: Restrict to events of this status
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /risk/global/perspectives:
    get:
      tags:
      - Risk
      summary: Global Perspectives
      description: 'How many perspective reads were written in the last 24 hours.


        The front page''s Perspectives tile (owner, 2026-10-29). Public and

        aggregate-only: counts and country codes, never perspective text, so it

        sits outside the sign-in rule for the perspectives themselves. A read is

        one event seen from one country (a domestic pole counts under its own

        country); rewriting the same read twice in a day counts once.

        ``prior_24h`` is the same count for the 24 hours before.'
      operationId: global_perspectives_risk_global_perspectives_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /risk/categories/history:
    get:
      tags:
      - Risk
      summary: Categories History
      description: 'Per-category history series, ranked by recent average risk.


        Powers the "top categories" mini-chart row on /ops/risk. Returns

        ``{ "series_by_category": { "geopolitics": [{t, risk, ...}, ...], ... },

        "categories": [{key, label, avg_risk, ...}] }``.'
      operationId: categories_history_risk_categories_history_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 750
          minimum: 1
          default: 14
          title: Days
      - name: bucket
        in: query
        required: false
        schema:
          type: string
          pattern: ^(hour|day)$
          default: day
          title: Bucket
      - name: status
        in: query
        required: false
        schema:
          type: string
          default: active
          title: Status
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 24
          minimum: 1
          description: Top N categories by average risk
          default: 8
          title: Limit
        description: Top N categories by average risk
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /risk/countries/heat:
    get:
      tags:
      - Risk
      summary: Countries Heat
      description: 'Top countries by current avg risk over a window, with delta vs window start.


        Powers the "Country heat" panel on the Risk cockpit and (eventually) the

        Dashboard country-movers tile. We aggregate ``event_score_history`` rows

        through the country-perspective join so the figures match the per-country

        chart on Risk.


        Each row::


        {

        "iso2": "US",

        "label": "United States",

        "current_risk": 72.4,

        "previous_risk": 68.1,

        "delta_risk": 4.3,

        "current_impact": 65.0,

        "current_signal": 58.2,

        "event_count": 14

        }'
      operationId: countries_heat_risk_countries_heat_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          type: string
          pattern: ^(p24h|p7d|p14d|p30d|all)$
          default: p7d
          title: Window
      - name: status
        in: query
        required: false
        schema:
          type: string
          default: active
          title: Status
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Limit
      - name: metric
        in: query
        required: false
        schema:
          type: string
          pattern: ^(risk|impact|signal)$
          description: Which metric to rank countries by. Response always carries all three; this only changes the ORDER BY.
          default: risk
          title: Metric
        description: Which metric to rank countries by. Response always carries all three; this only changes the ORDER BY.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /risk/categories/heatmap:
    get:
      tags:
      - Risk
      summary: Categories Heatmap
      description: 'Category × Window heatmap of avg {metric}.


        Returns one row per primary category and one column per requested window,

        coloured by the chosen metric (risk by default). Used by the Risk

        cockpit; can also drive a more compact Dashboard heat strip.


        Output shape::


        {

        "metric": "risk",

        "windows": [{"key": "p24h", "label": "24h", "days": 1}, ...],

        "categories": [{"key": "geopolitics", "label": "Geopolitics"}, ...],

        "cells": { "geopolitics": { "p24h": 78.0, "p7d": 71.4, ... }, ... }

        }


        The four-window batch runs as four parallel SQL queries (PostgreSQL is

        happy to schedule them independently); we aggregate the results in

        Python rather than building a single SQL with multiple FILTER clauses

        because the latter complicates the LATERAL unnest.'
      operationId: categories_heatmap_risk_categories_heatmap_get
      parameters:
      - name: windows
        in: query
        required: false
        schema:
          type: string
          description: Comma-separated window keys (subset of p24h, p7d, p14d, p30d, all).
          default: p24h,p7d,p14d,p30d
          title: Windows
        description: Comma-separated window keys (subset of p24h, p7d, p14d, p30d, all).
      - name: status
        in: query
        required: false
        schema:
          type: string
          default: active
          title: Status
      - name: metric
        in: query
        required: false
        schema:
          type: string
          pattern: ^(risk|impact|signal)$
          description: Which score to average per cell.
          default: risk
          title: Metric
        description: Which score to average per cell.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /risk/correlations:
    get:
      tags:
      - Risk
      summary: Event Correlations
      description: 'Pairwise correlations across the top events by priority.


        Item 13 from docs/plans/data-visualization.md. Surfaces pairs of

        events whose priority (or risk / impact / signal) tends to co-move

        over the lookback window — operators see "X and Y are moving

        together" without having to scan every individual sparkline.


        Compute strategy (on-demand, no worker):

        1. Pull the top N events by priority that have ≥ min_points

        history rows in the window.

        2. Bucket each event''s history to daily means.

        3. For each pair, intersect their day sets; if the overlap has

        ≥ min_points samples, compute Pearson r.

        4. Filter to |r| ≥ min_abs_r, sort by |r| desc, cap at limit.


        Cost: ~1,800 pair calculations for the default pool size; runs in

        well under 100 ms even on the Render starter plan.'
      operationId: event_correlations_risk_correlations_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 365
          minimum: 7
          description: Lookback window in days.
          default: 14
          title: Days
        description: Lookback window in days.
      - name: metric
        in: query
        required: false
        schema:
          type: string
          description: 'Score field to correlate: priority / risk / impact / signal.'
          default: priority
          title: Metric
        description: 'Score field to correlate: priority / risk / impact / signal.'
      - name: min_points
        in: query
        required: false
        schema:
          type: integer
          maximum: 10
          minimum: 3
          description: Minimum overlapping daily points required to score a pair.
          default: 4
          title: Min Points
        description: Minimum overlapping daily points required to score a pair.
      - name: min_abs_r
        in: query
        required: false
        schema:
          type: number
          maximum: 1.0
          minimum: 0.0
          description: Minimum |Pearson r| to include in results.
          default: 0.7
          title: Min Abs R
        description: Minimum |Pearson r| to include in results.
      - name: top_events
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 10
          description: Pool size — top N events by priority to consider.
          default: 60
          title: Top Events
        description: Pool size — top N events by priority to consider.
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 5
          description: Max correlation pairs to return.
          default: 40
          title: Limit
        description: Max correlation pairs to return.
      - name: min_range
        in: query
        required: false
        schema:
          type: number
          maximum: 50
          minimum: 0
          description: Minimum spread (max - min) each event must move over the shared days. A near-flat series correlates with anything.
          default: 0
          title: Min Range
        description: Minimum spread (max - min) each event must move over the shared days. A near-flat series correlates with anything.
      - name: min_moves
        in: query
        required: false
        schema:
          type: integer
          maximum: 20
          minimum: 0
          description: Minimum day-to-day changes each event must show over the shared days. One step (flat, jump, flat) gives r = 1 with no story.
          default: 0
          title: Min Moves
        description: Minimum day-to-day changes each event must show over the shared days. One step (flat, jump, flat) gives r = 1 with no story.
      - name: require_shared
        in: query
        required: false
        schema:
          type: string
          pattern: ^(|any|entity)$
          description: '''any'' keeps only pairs sharing an actor or a category, ''entity'' only pairs sharing an actor. Many events move on the same decay and rollup schedule, so co-movement alone is mostly common-mode.'
          default: ''
          title: Require Shared
        description: '''any'' keeps only pairs sharing an actor or a category, ''entity'' only pairs sharing an actor. Many events move on the same decay and rollup schedule, so co-movement alone is mostly common-mode.'
      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