azstat
v0.1.0Official Azerbaijani statistics: search State Statistical Committee tables and read their data.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_topics List Topics
The Committee's statistical topics (demography, labour market, education and so on).
| Parameter | Type | Description |
|---|---|---|
lang | string | Language of the topic names. |
search_tables Search Tables
Search the Committee's statistical tables (about 1,800). Titles with the query words rank first. Use describe_table on a result to see what it holds. Without a query, the tables of the topic are listed.
| Parameter | Type | Description |
|---|---|---|
lang | string | Language of titles and of the words searched. |
limit | integer | Tables to return. |
offset | integer | Tables to skip, for paging. |
query | Words to find in a table's title or description; all must appear. | |
topic | A topic id or part of a topic name, from list_topics. |
describe_table Describe Table
What a table holds: its description, periods, units and each dimension's categories. Reads the whole table once (cached), so a big table takes a moment. Use the category names it shows in the where filter of get_table_data.
| Parameter | Type | Description |
|---|---|---|
table_id * | string | A table id from search_tables, such as DT_AA_001. |
category_query | Words to look for in category names, to find the exact ones to filter. | |
lang | string | Language of names and categories. |
get_table_data Get Table Data
Rows of one statistical table in long format, filtered by period and category. `columns` names the cells of each row: the period, one column per dimension, the value, and symbol and unit when the rows have them. A null value with a symbol means the Committee published the symbol instead of a number. Use describe_table first to see the dimensions and the exact category names.
| Parameter | Type | Description |
|---|---|---|
table_id * | string | A table id from search_tables, such as DT_AA_001. |
lang | string | Language of names and categories. |
limit | integer | Rows to return. |
offset | integer | Rows to skip, for paging. |
period_from | First period to include: a year such as 2015, or 2025-03 for a month. | |
period_to | Last period to include, written like period_from. | |
where | Category filters, for example {"Indicator": "Total population"}. A key is a dimension name or its number (1, 2, ...); a value is words that must appear in the category name. Every filter must match. |