Statistical Centre of Iran
v0.2.3Read-only Statistical Centre of Iran (amar.org.ir): CPI inflation, unemployment, census, any table.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
am_search Search statistical releases
Search the Statistical Centre of Iran (amar.org.ir) catalog of releases: tables, time series, reports. No filters lists the newest. Each result has an id for am_release (files) or am_table (Excel). Inflation, labour, population, GDP, PPI and macro indicators have their own tools.
| Parameter | Type | Description |
|---|---|---|
category | Top-level topic (population = demographic and social) | |
data_type | The portal's data type | |
kind | Publication type | |
page | integer | Page of 25 results |
period | Publishing frequency | |
query | Persian title words, e.g. 'نرخ بیکاری' | |
source | Which Centre system holds it | |
year | Jalali year, e.g. 1404 |
am_release Get one release
Get one statistical release from amar.org.ir: title, topic path, period and its downloadable files. Use after am_search. Read Excel files with am_table (same id); PDF and Word are links only.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Release id from am_search |
am_calendar Release calendar
Get the Statistical Centre of Iran's publishing calendar: which statistics come out on which day of a month. Use it for "when is the next inflation (or labour, GDP...) release". Items: product, office, month, day, period covered; `id` appears once published (pass to am_release). Jalali dates; planned dates can shift.
| Parameter | Type | Description |
|---|---|---|
month | Month 1-12 or Persian name; omit for the year | |
query | Persian product-name words, all must match, e.g. 'مصرفی' | |
year | integer | Jalali year |
am_news News and press releases
List the latest news and press releases of the Statistical Centre of Iran, or read one item. Without `id`: newest items (id, title, summary, GMT time, url), filtered by `query`. With `id`: the item's date, categories and text (cut at 4000 characters). For announcements; numbers are in the data tools.
| Parameter | Type | Description |
|---|---|---|
count | integer | How many latest items for the list |
id | News id from the list, to read its text | |
query | Persian words that must all appear in title or summary (list mode) |
am_inflation Inflation (CPI)
Get Iran's official consumer price index (CPI) and inflation from the Statistical Centre of Iran, latest first. Per month: index, monthly_pct, point_to_point_pct (year-on-year, the headline figure) and twelve_month_avg_pct ("annual inflation"). `group` or `region` for breakdowns; `province` gives one province (no index, no groups). `newer_report` appears when the portal has a later month as PDF only.
| Parameter | Type | Description |
|---|---|---|
group | CPI group: Persian name part ('مسکن', 'خوراک') or 2-digit code ('04'); omit for all items. List: am_inflation_groups | |
months | integer | Latest months |
province | Province name (e.g. 'تهران'): that province's all-items inflation instead | |
region | string | Households: all of Iran, urban or rural |
am_inflation_groups Inflation by CPI group
Compare official inflation across CPI groups (food, housing, transport, health...) for one month. Per main group: index, monthly_pct, point_to_point_pct, twelve_month_avg_pct. For one group's history use am_inflation with `group`.
| Parameter | Type | Description |
|---|---|---|
period | Jalali YYYY-MM (e.g. '1405-06'); omit for latest | |
region | string | Households: all of Iran, urban or rural |
am_labour_force Labour force
Get Iran's official unemployment and labour-force participation rates by quarter, latest first. Percent, for the whole country, urban and rural. The newest quarter lags 2-3 months. Other labour tables (employment by sector, hours, wages): am_search.
| Parameter | Type | Description |
|---|---|---|
measure | string | unemployment (15+), participation, youth_unemployment (15-24); all = first two |
quarters | integer | Latest quarters |
am_population Population of provinces and counties
Get population and households by province, or by county within one province, from Iran's 1395 census. Latest published census (1395 = 2016): total, urban, rural, male, female, households. The 1405 census is not published. Projections or age groups: am_search and am_table.
| Parameter | Type | Description |
|---|---|---|
province | Province name (e.g. 'فارس'): lists its counties instead of all provinces |
am_table Read an Excel table
Read an Excel table of a statistical release as compact rows (works for any release with an xlsx/xls file). Call with just the id for the sheet list, then `sheet`; rows are [excel_row_number, cell...]. `find` picks rows, `offset` pages, `col_offset` shifts wide series (newest values are usually at the right end; see `cols`).
| Parameter | Type | Description |
|---|---|---|
id * | integer | Release id from am_search |
col_offset | integer | Columns to skip on the left (wide series) |
file | integer | Excel file number (1-based, see am_release) |
find | Only rows with this text in any cell | |
max_cols | integer | Columns |
max_rows | integer | Rows |
offset | integer | Matching rows to skip (paging) |
sheet | Sheet name or 1-based number; omit to list sheets |
am_indicators Macro indicators
Read the Centre's monthly macro-indicators workbook: trade, housing, money, budget, prices by decile and more. About 100 small tables on 12 subjects. No arguments lists topics; `topic` lists its tables; `topic` plus `table` gives data (rows are [label, values...]; placeholders are null). Data end dates differ per table (housing price stops at 1400, trade at 1404). No id needed.
| Parameter | Type | Description |
|---|---|---|
col_offset | integer | Columns to skip on the left |
find | Only rows whose first cell has this text (year, province...) | |
last | integer | Rows: latest in a time table, else first |
max_cols | integer | Columns |
table | Table number from the topic's list, or Persian title words ('اجاره') | |
topic | Subject sheet: population (and labour, education), household (income, expenditure, Gini, deciles), accounts, prices (CPI by decile or province, PPI, food), money, budget, trade, stock, energy, industr… |
am_gdp GDP growth (quarterly)
Get Iran's official GDP growth by quarter or year, with the main sectors, latest first. Base year 1400. growth_pct is year-on-year at constant prices; gdp_ex_oil_pct leaves out oil and gas; sector growth for agriculture, industry, services. Levels in billion rials. Full tables: am_table with `source.release`.
| Parameter | Type | Description |
|---|---|---|
frequency | string | Quarterly or yearly |
periods | integer | Latest quarters (or years) |
am_ppi Producer price index
Get Iran's producer price index (PPI, factory-gate prices) by quarter and sector, latest first. Per quarter: index (100 = 1400), quarterly_pct, point_to_point_pct, annual_pct (4-quarter average). Detailed PPI series are separate releases: am_search('شاخص قیمت تولید کننده') then am_table.
| Parameter | Type | Description |
|---|---|---|
quarters | integer | How many latest quarters |
sector | Persian name part: 'كل' (default), 'كشاورزي', 'معدن', 'صنعت', 'برق', 'خدمات' |