Ridgital ARMID Explorer API

The ARMID data API gives read-only access to Armenia In Data: tens of thousands of time series on Armenia - economy, trade, agriculture, finance, climate, energy, population and more - organized in ARMID's own category tree. Browse the categories, list the time series in one, and download any series' observations as JSON, CSV or GeoJSON - or read the same data through the standard SDMX 2.1 API, with any SDMX client. It is the same data the Data tab of ARMID Explorer shows.

Getting Started

Published data, dashboards and SDMX are public. Browse or download them directly, without an account, API key or Explorer grant. Only published series are exposed; administrative collector and data management endpoints remain protected.

Authentication

No authentication is required for the data or SDMX endpoints below. They support cross-origin browser reads and are rate limited by client address (300 requests/minute by default; see Retry-After on 429).

Only ARMID Lab requires a customer API key with active Lab access. Lab reads and runs work with a read key; creating or changing Problems, Workbooks and Artifacts additionally requires Lab write on the key. Lab requests use Authorization: Bearer rdg_<your_api_key>. Missing or unusable keys return 401; missing or expired Lab access returns 403.

Base URL

https://ridgital.com/api/v1/armid/data

Quick start

# 1. The category tree
curl https://ridgital.com/api/v1/armid/data/categories

# 2. Find a category
curl "https://ridgital.com/api/v1/armid/data/categories/search?q=inflation"

# 3. The time series in it
curl "https://ridgital.com/api/v1/armid/data/categories/{id}/series?pageSize=50"

# 4. A series' observations, as CSV ({id} is the series key from step 3, e.g. M.AM.IHB2Q7K3MZ4XA)
curl "https://ridgital.com/api/v1/armid/data/series/{id}/observations?limit=all&format=csv" -o series.csv

# Or search every series at once, by words or by meaning
curl "https://ridgital.com/api/v1/armid/data/series?q=average+wage+Yerevan"

# And the series that move with one
curl "https://ridgital.com/api/v1/armid/data/series/{id}/related"

Conventions

SDMX

Every category with data is also an SDMX dataflow, so any SDMX 2.1 client - sdmx1/pandasdmx in Python, rsdmx in R, .Stat, the SDMX Excel add-ins - can browse and download ARMID. The base URL is https://ridgital.com/api/v1/armid/sdmx, without an API key.

QueryReturns
GET /dataflowEvery dataflow: DF_ and the category, e.g. DF_FOOD_MARKET_PRICES.
GET /categoryscheme/RIDGITAL/ARMID_TOPICS/latest?references=parentsandsiblingsThe category tree, with each dataflow filed under its category.
GET /datastructure/RIDGITAL/DSD_ARMID/latest?references=childrenThe data structure, its concepts and codelists (CL_FREQ, CL_AREA).
GET /data/DF_FOOD_MARKET_PRICES/M.AM...?startPeriod=2024-01Observations.

Structures are SDMX-ML 2.1. Data is SDMX-ML 2.1 Generic by default; add format=jsondata for SDMX-JSON 1.0 or format=csvdata for SDMX-CSV 1.0 (or send the matching Accept header).

Series key: FREQ.REF_AREA.INDICATOR.BREAKDOWN.MEASURE. The first three are the series key of the data API. BREAKDOWN tells apart the values a series breaks down by sex, age, partner country and so on (_Z when it does not; the series attribute BREAKDOWN_LABEL says what a code stands for) - for located events such as fire detections, each location is its own breakdown, so simultaneous events at different places all come through, and MEASURE the several values some series record per date, such as daily climate variables (_Z for the series' own value). Leave a dimension empty for every value, join several with +, or use all for the whole dataflow.

Parameters: startPeriod/endPeriod (2024, 2024-S1, 2024-Q1, 2024-01, 2024-01-15), firstNObservations/lastNObservations, and detail (full, dataonly, serieskeysonly, nodata). A response holds at most 200,000 observations; a larger query answers 413 - narrow the key or the period.

Frequencies (CL_FREQ): A annual, S half-yearly, Q quarterly, M monthly, W weekly, D10 dekadal, D daily, H hourly, I irregular (events such as earthquakes, with the time of day in TIME_PERIOD), U undetermined.

import io, pandas as pd, requests

r = requests.get(
    "https://ridgital.com/api/v1/armid/sdmx/data/DF_FOOD_MARKET_PRICES/M.AM...",
    params={"format": "csvdata", "startPeriod": "2024-01"},
    headers={"Authorization": "Bearer rdg_<your_api_key>"},
)
df = pd.read_csv(io.StringIO(r.text))  # one row per observation

AI agents

AI assistants that speak the Model Context Protocol - Claude, ChatGPT, Codex, Gemini, Grok and others - can search and read ARMID and run ARMID Lab workbooks through Ridgital's MCP server at https://ridgital.com/mcp, with the same API key as a bearer token, or by signing in with the key when the assistant asks.

Categories

ARMID's category tree, category search and one category.

Category tree

GET /api/v1/armid/data/categories

Every category with data, top-level categories first, each with its subcategories. seriesCount counts the time series with data in a category and everything under it, each series once.

Search categories

GET /api/v1/armid/data/categories/search

Categories whose name contains every word of q (case-insensitive), each with its path from the top-level category.

  • q (query, required): Search words, at least 2 characters

One category

GET /api/v1/armid/data/categories/{id}

A category with its path from the top-level category and the categories directly under it.

  • id (path, required): Category id

Time series

The time series in a category, and one series' description and newest value.

Time series in a category

GET /api/v1/armid/data/categories/{id}/series

The time series with data in a category and every category under it, by name. q narrows them to names containing every word of it.

  • id (path, required): Category id
  • q (query): Search words
  • page (query): Page, from 1
  • pageSize (query): Series per page, ≤ 100

Search time series

GET /api/v1/armid/data/series

Published time series across every category. mode=keyword matches series whose name or place contains every word of q; mode=semantic ranks series by meaning, closest first (at most 100); mode=auto, the default, is semantic when the server offers it and it finds something, keyword otherwise. X-Search-Mode says which one answered. country narrows to one country (ISO 3166-1 alpha-2).

  • q (query, required): Search words, at least 2 characters
  • mode (query): auto, keyword or semantic
  • country (query): Country code, e.g. AM
  • page (query): Page, from 1
  • pageSize (query): Series per page, ≤ 100

One time series

GET /api/v1/armid/data/series/{id}

A time series' description, its newest value and the categories it belongs to.

  • id (path, required): Series key

Related time series

GET /api/v1/armid/data/series/{id}/related

The published series whose values move with this one's, strongest first: one coefficient per pair, from the method that best describes the relationship. Only pairs within one category are computed. A correlation says two series move together, not that one causes the other.

  • id (path, required): Series key
  • limit (query): How many, ≤ 100
  • minAbs (query): Only coefficients at least this strong, 0 to 1

Observations

A time series' values as JSON, CSV or GeoJSON.

Observations of a time series

GET /api/v1/armid/data/series/{id}/observations

The newest observations of a series (1,000 by default, limit=all for every one, at most 200,000), returned oldest first. format=csv returns a CSV file with one column per dimension and metric; format=geojson returns a GeoJSON FeatureCollection of the observations that have a location. Every format carries X-Total-Count (observations matching start/end), X-Returned-Count and X-Truncated (true when the limit cut the answer short) headers; JSON also has them in the body.

  • id (path, required): Series key
  • limit (query): How many of the newest observations: a number or all
  • start (query): Earliest date, YYYY-MM-DD or RFC 3339
  • end (query): Latest date, YYYY-MM-DD or RFC 3339
  • format (query): json, csv or geojson

SDMX structures

The same data as SDMX 2.1: dataflows, data structure, codelists, concepts and the category scheme, in SDMX-ML.

SDMX structure

GET /api/v1/armid/sdmx/{resource}/{agencyID}/{resourceID}/{version}

An SDMX 2.1 structure query, answered in SDMX-ML 2.1: dataflow, datastructure, codelist, conceptscheme, categoryscheme or categorisation. agencyID is RIDGITAL or all, resourceID an id or all, version 1.0, latest or all. references=children (or descendants/all) adds what a dataflow or data structure uses; references=parentsandsiblings on a category scheme adds the categorisations and dataflows filed under it.

  • resource (path, required): dataflow, datastructure, codelist, conceptscheme, categoryscheme or categorisation
  • agencyID (path, required): RIDGITAL or all
  • resourceID (path, required): An id or all
  • version (path, required): 1.0, latest or all
  • references (query): none, children, descendants, parentsandsiblings or all

SDMX data

Observations of a dataflow as SDMX-ML Generic, SDMX-JSON or SDMX-CSV.

SDMX data

GET /api/v1/armid/sdmx/data/{flowRef}/{key}

An SDMX 2.1 data query on one dataflow. key is FREQ.REF_AREA. INDICATOR.BREAKDOWN.MEASURE: leave a dimension empty for every value, join several with +, or use all. The response is SDMX-ML 2.1 Generic data by default; format=jsondata or format=csvdata (or the matching Accept header) return SDMX-JSON 1.0 or SDMX-CSV 1.0. At most 200,000 observations per response.

  • flowRef (path, required): Dataflow: DF_ID, RIDGITAL,DF_ID or RIDGITAL,DF_ID,1.0
  • key (path, required): Series key, or all
  • startPeriod (query): Earliest period: 2020, 2020-S1, 2020-Q1, 2020-01 or 2020-01-15
  • endPeriod (query): Latest period, same forms
  • firstNObservations (query): Only the first n observations of each series
  • lastNObservations (query): Only the last n observations of each series
  • detail (query): full, dataonly, serieskeysonly or nodata
  • format (query): genericdata, jsondata or csvdata

armid-explorer

List geographic codes

GET /api/v1/armid/data/regions

Stable ARMID marz, district, community and grid cell codes. Public, paged independently of Lab runs.

  • level (query): marz (default), district, community or cell
  • area (query): For cells: AM (default) or AM01
  • limit (query): Rows per page, 1-2000 (default 200)
  • offset (query): Row offset (default 0)