Skip to content

fedstatAPIr

1.1.0Package record

Unofficial API for Fedstat (Rosstat EMISS System) for Automatic and Efficient Data Queries

0packages depend
3.1Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

An API for automatic data queries to the fedstat https://www.fedstat.ru, using a small set of functions with a common interface.

Changes in 1.1.0

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.do to /indicator/downloadData.do. All download functions updated automatically -- no user code changes required.
  • Fixed pre-existing typo ObsValues -> ObsValue in fedstat_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 or httr::set_config().
  • fedstat_post_data_ids_filtered() no longer retries POST requests internally (CSRF tokens are single-use). Use the wrapper fedstat_data_load_with_filters() for automatic retries, or re-run from fedstat_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

CRAN checks
13OK
Slowest check: 55 s · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.1.0
READMEYes · 1,024 wordsVignettesNoNEWSYes · 100% structured · mentions 1.1.0Citation fileNoWebsitenot declared in DESCRIPTION
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

3.1K
CRAN downloads in the past year
Rank #11,923 · ~9/day · ~261/mo
Daily download trend is not available in this view yet.
31830 days
92390 days
3.1K1 year
Compare downloads with other packages →
Also on82 r2u6 autocran

Repository

29Stars
2Forks
0Open issues
0Open PRs
5Releases
48Commits
2Commit identities
api-wrapperapidata
48 commits · Last activity 2026-09-04 · +3.6% stars, 30d
Responsiveness
How these are sampled
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

2025-06-10 · 262026-10-23 · 29
PracticesBeta

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.

Docs source (1)
README.Rmd
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 0.1 (2021)
Author · added in 1.0.0
Releases (5)

Pick two releases to compare their code metrics.

  • 1.1.0Latest
    record
    2026-09-04 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.3
    record
    2023-03-30 · diff ↗
  • 1.0.0
    record
    2023-03-10 · diff ↗ ·
    removed 3 exports
    fedstat_check_data_update, fedstat_get_data_ids_special_cases_handle, fedstat_prepare_reference_data_for_check_data_update
    added 1 export
    fedstat_indicator_info
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.0
    record
    2022-01-14 · diff ↗ ·
    added 2 exports
    fedstat_check_data_update, fedstat_prepare_reference_data_for_check_data_update
  • 0.1
    record
    2021-07-19
  • R
    R 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")
Krylov, D., & Kibalnikov, D. (2026). fedstatAPIr: Unofficial API for Fedstat (Rosstat EMISS System) for Automatic and Efficient Data Queries (Version 1.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for fedstatAPIr version 1.1.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy