Unofficial API for Fedstat (Rosstat EMISS System) for Automatic and Efficient Data Queries
Overview
An API for automatic data queries to the fedstat https://www.fedstat.ru, using a small set of functions with a common interface.
Breaking changes
- Unspecified filter fields with multiple possible values now produce an informative error instead of silently selecting all values. Use
"*"to explicitly select all values for a filter field. Single-value-only filters are still auto-selected. The error message lists all unspecified fields with an example of how to fix them. - Minimum R version raised from 2.10 to 3.5.0 (required by serialized data format).
Bug fixes
- EMISS moved data download endpoint from
/indicator/data.doto/indicator/downloadData.do. All download functions updated automatically -- no user code changes required. - Fixed pre-existing typo
ObsValues->ObsValueinfedstat_parse_sdmx_to_table()that caused the numeric parsing safety check to silently never fire.
New features
fedstat_data_load_with_filters()now automatically retries the full download pipeline (GET + filter + POST) on transient failures, re-fetching a fresh CSRF token on each attempt.- CSRF token is automatically extracted from the indicator page during
fedstat_get_data_ids()and passed through the pipe chain via data.frame attributes. - HTTP session (cookies) are now persisted between the page GET and data POST via
httr::handle(), also passed as a data.frame attribute. - Improved error messages: specific diagnostics for HTTP 302 (rejected filters), 403 (anti-bot), 503 (overloaded), HTML-instead-of-data responses, and CSRF token failures.
fedstat_parse_sdmx_to_table()now detects HTML error pages before attempting XML parsing, giving clearer error messages.
Show all changes in 1.1.0Hide the rest of the changes in 1.1.0
Other changes
- Honest User-Agent header (
fedstatAPIr/1.1.0) is now set by default. Users can override via...arguments orhttr::set_config(). fedstat_post_data_ids_filtered()no longer retries POST requests internally (CSRF tokens are single-use). Use the wrapperfedstat_data_load_with_filters()for automatic retries, or re-run fromfedstat_get_data_ids()when using individual functions.- Refreshed
fedstat_indicators_names_database(5224 indicators, new schema: department, group, id, title, hidden).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 11 (2 internal)includes a package overview page
- Examples that run
- 0%6 never run
- Exported functions with examples
- 86%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 35
- Median days to close, 50 most recently updated closed PRs
- 31
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/denchpokepon/fedstatapir on 2026-10-22.
Dependencies
Installing fedstatAPIr adds 15 packages (13 with compiled code, 12 MB of source tarballs). Heaviest: data.table 5.7 MB, Rcpp 1.8 MB, openssl 1.1 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.1.0Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.0.32023-03-30 · diff ↗
- 1.0.02023-03-10 · diff ↗ ·
removed 3 exports
fedstat_check_data_update, fedstat_get_data_ids_special_cases_handle, fedstat_prepare_reference_data_for_check_data_updateadded 1 export
fedstat_indicator_info - RR 4.2.0 released · 2022-04-22
- 0.2.02022-01-14 · diff ↗ ·
added 2 exports
fedstat_check_data_update, fedstat_prepare_reference_data_for_check_data_update - 0.12021-07-19
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-07-19
- Total releases
- 5 / 5 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 93 KB / 1 file
- Download size
- 121 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("fedstatAPIr")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.