V³ Aware Map API
The map API from V³ Aware, for map.
The map API from V³ Aware, for map.
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/v3-news:v3-news-map-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: V³ News API v3 Map API
version: 0.1.0
tags:
- name: Map
paths:
/map/countries/insights:
get:
tags:
- Map
summary: Countries Insights
description: 'Corpus-level readings the per-country list cannot give you.
Three questions a reader has after looking at the choropleth:
1. Reach. How much of the world V³ is actually carrying right now.
The map answers this visually but dishonestly: an uncoloured country
reads as "quiet" when it usually means "not covered".
2. Desk provenance. Across everything in the window, how much is written
from a national desk versus from outside. This is the perspective
claim made measurable, and it is the most genuinely new number here.
3. Regions. Where the covered countries sit, so a Europe-heavy or
Middle-East-heavy window is visible as a shape rather than inferred
from scrolling the list.
Gating matches the rest of ``/map/events*``: no subscription gate (T5 left
the country map on the Free tier), but ``/map`` is not on the public
whitelist in ``app/main.py``, so a signed-in member is required when
REQUIRE_AUTH is on. The web route is behind Clerk middleware to match.'
operationId: countries_insights_map_countries_insights_get
parameters:
- name: window
in: query
required: false
schema:
type: string
pattern: ^(p24h|p7d|p30d|all)$
default: p7d
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'
/map/events/by-country:
get:
tags:
- Map
summary: Events By Country
description: 'Per-country rollup for the choropleth and the country cards under it.
The original version returned five fields (count, avg risk, avg impact,
max priority), which is why the page could only ever say "42 events, risk
56". Everything added here is already in the corpus and answers a question
a reader actually has about a country:
* ``own_desk_events`` / ``outside_desk_events`` / ``unattributed_events``
— ``events.desk_origin``. Whether this country''s file is written from
a national desk or from outside it. Real spread in production: 0% for
a dozen countries, ~55% for Serbia, Albania and Kosovo.
* ``emerging_events`` / ``active_events`` / ``cooling_events`` —
``events.lifecycle_state``, so a country reads as building or fading
rather than as a flat count.
* ``max_importance`` — authored ``editorial_importance``, the baseline
the feed now orders on.
* ``top_event_*`` — the most important event in the window, so each card
carries something concrete.
* ``brief_at`` — whether a Chief of Staff brief exists for this country.
* ``region`` — for the region filter and the rail''s region shape.
``max_priority`` is kept for backwards compatibility with any caller
reading the old shape.'
operationId: events_by_country_map_events_by_country_get
parameters:
- name: window
in: query
required: false
schema:
type: string
pattern: ^(p24h|p7d|p30d|all)$
description: Time window for last_update_time filter
default: p7d
title: Window
description: Time window for last_update_time filter
- name: status
in: query
required: false
schema:
type: string
description: Event status filter
default: active
title: Status
description: Event status filter
- name: category
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Filter to events tagged with this category slug
title: Category
description: Filter to events tagged with this category slug
- name: region
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Filter to one countries.region bucket
title: Region
description: Filter to one countries.region bucket
- name: q
in: query
required: false
schema:
anyOf:
- type: string
maxLength: 64
- type: 'null'
description: Case-insensitive match on country name or ISO2
title: Q
description: Case-insensitive match on country name or ISO2
- name: sort
in: query
required: false
schema:
type: string
pattern: ^(events|risk|importance|own_desk|recent|name)$
description: Ranking. The map always colours by event_count regardless.
default: events
title: Sort
description: Ranking. The map always colours by event_count regardless.
- name: limit
in: query
required: false
schema:
type: integer
maximum: 300
minimum: 1
default: 250
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/map/locations/with-coords:
get:
tags:
- Map
summary: Locations With Coords
description: 'Geocoded Location entities with at least ``min_events`` active events.
Powers /ops/map/locations — each row becomes a pin on the map. We pre-filter
to entities with active events to avoid drawing thousands of irrelevant pins
(e.g. one-off historical mentions that haven''t surfaced in current events).'
operationId: locations_with_coords_map_locations_with_coords_get
parameters:
- name: min_events
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 0
description: Minimum distinct active events mentioning the location
default: 1
title: Min Events
description: Minimum distinct active events mentioning the location
- name: limit
in: query
required: false
schema:
type: integer
maximum: 2000
minimum: 1
default: 500
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/map/locations/{entity_id}/events:
get:
tags:
- Map
summary: Location Events
description: 'Top events anchored to one Location entity, ranked by priority.
Used by the side panel that opens when a pin is clicked.'
operationId: location_events_map_locations__entity_id__events_get
parameters:
- name: entity_id
in: path
required: true
schema:
type: string
title: Entity Id
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 25
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/map/events/by-country/{iso2}:
get:
tags:
- Map
summary: Country Event Drilldown
description: 'Top events for a single country within the window.
Ranked by authored ``editorial_importance`` first (the baseline the feed
orders on) and by ``priority_score`` as the tie-break, so the panel agrees
with the ordering a reader sees everywhere else.
Used by the panel that opens when a country is selected on the map.'
operationId: country_event_drilldown_map_events_by_country__iso2__get
parameters:
- name: iso2
in: path
required: true
schema:
type: string
title: Iso2
- name: window
in: query
required: false
schema:
type: string
pattern: ^(p24h|p7d|p30d|all)$
default: p7d
title: Window
- name: status
in: query
required: false
schema:
type: string
default: active
title: Status
- name: category
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Category
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 25
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/map/event-flows:
get:
tags:
- Map
summary: Event Flows
description: 'Directional ACTOR → TARGET flows aggregated to country pairs.
Item 12 from docs/plans/data-visualization.md. The frontend draws
arrows on a Mapbox layer between the country centroids, sized by
``count``. Operators see at a glance "the US is acting on Iran 33
times this month" etc.
Resolution strategy:
1. Pull every (event, role, entity_name) tuple where role ∈
{ACTOR, TARGET, AFFECTED_PARTY, VICTIM} and the event was
updated within the window.
2. For each entity_name, try to resolve to ISO2 via the
``country_resolver`` alias map (handles "Russian", "U.S.",
"Türkiye"). Falls back to the ``countries`` table for
direct-name matches that aren''t in the alias table.
3. Per event, build the cross-product of ACTOR ISOs × TARGET
ISOs (excluding self-flows), increment per-pair counts.
4. Filter to flows ≥ min_events; sort by count DESC, cap at
limit.
Response shape::
{
"items": [
{ "from_iso": "US", "to_iso": "IR", "count": 33,
"sample_event_ids": ["abc...", ...] },
...
],
"days": 30, "min_events": 1, "limit": 80,
"total_flows": 128, "events_covered": 926
}'
operationId: event_flows_map_event_flows_get
parameters:
- name: days
in: query
required: false
schema:
type: integer
maximum: 365
minimum: 1
description: Lookback window in days.
default: 30
title: Days
description: Lookback window in days.
- name: min_events
in: query
required: false
schema:
type: integer
maximum: 20
minimum: 1
description: Minimum events per flow to include.
default: 1
title: Min Events
description: Minimum events per flow to include.
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 10
description: Max flows to return.
default: 80
title: Limit
description: Max flows to return.
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