{"id":24486007,"url":"https://github.com/stephenbnicar/imfdata.jl","last_synced_at":"2025-09-10T18:40:29.803Z","repository":{"id":52250180,"uuid":"123031327","full_name":"stephenbnicar/IMFData.jl","owner":"stephenbnicar","description":"A Julia interface for retrieving data from the International Monetary Fund (IMF).","archived":false,"fork":false,"pushed_at":"2024-05-23T20:29:08.000Z","size":38,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T10:12:09.683Z","etag":null,"topics":["econometrics","economic-data","economics","julia","julia-package"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stephenbnicar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-26T21:14:02.000Z","updated_at":"2024-05-23T20:29:11.000Z","dependencies_parsed_at":"2022-08-30T22:52:05.337Z","dependency_job_id":null,"html_url":"https://github.com/stephenbnicar/IMFData.jl","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenbnicar%2FIMFData.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenbnicar%2FIMFData.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenbnicar%2FIMFData.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenbnicar%2FIMFData.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephenbnicar","download_url":"https://codeload.github.com/stephenbnicar/IMFData.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248768172,"owners_count":21158593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["econometrics","economic-data","economics","julia","julia-package"],"created_at":"2025-01-21T14:31:27.753Z","updated_at":"2025-04-13T19:33:12.655Z","avatar_url":"https://github.com/stephenbnicar.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IMFData\n\n*A Julia interface for retrieving data from the International Monetary Fund (IMF).*\n\n[![][ci-img]][ci-url]\n\n## Installation\n\n```julia\n    (v1.x) pkg\u003e add IMFData\n```\n\n## Usage\n\n**Get a list of datasets accessible from the API:**\n\n```julia\n    get_imf_datasets()\n```\n\u003e **Note:** While this function returns a list of all available datasets, currently the module only supports data requests from the International Financial Statistics (IFS) dataset.\n\n\n**Get the list of parameters (\"dimensions\") for a dataset and their values:**\n\n```julia\n    get_imf_datastructure(database_id::String)\n```\n\nExample:\n```julia\n    julia\u003e ifs_structure = get_imf_datastructure(\"IFS\")\n    Dict{String,Any} with 2 entries:\n      \"Parameter Names\"  =\u003e 5×2 DataFrames.DataFrame\n      \"Parameter Values\" =\u003e Dict Any → Any with 5 entries\n```\n\n**Retrieve data from the IFS dataset**\n```julia\n    get_ifs_data(area, indicator, frequency, startyear, endyear)\n```\n* `area` and `indicator` must be `String`s or `Array`s of `String`s (to request multiple series with one call).\n* `frequency` is limited to annual (\"A\"), quarterly (\"Q\"), or monthly (\"M\").\n* `startyear` and `endyear` must be `Int`s.\n\nThe function returns an `IfsSeries` object; the data (if available) is in the `series` field.\n\nExample:\n```julia\n    julia\u003e us_gdp = get_ifs_data(\"US\", \"NGDP_SA_XDC\", \"Q\", 2015, 2016)\n    IMF Data Series\n    Database: IFS\n    Area: US\n    Indicator: NGDP_SA_XDC\n    Description:\n    Frequency: Q\n    Time Period: 2015 to 2016\n    Data: 8 x 2 DataFrame\n\n    julia\u003e us_gdp.series\n    8×2 DataFrames.DataFrame\n    │ Row │ date       │ value     │\n    ├─────┼────────────┼───────────┤\n    │ 1   │ 2015-03-01 │ 1.78747e7 │\n    │ 2   │ 2015-06-01 │ 1.80932e7 │\n    │ 3   │ 2015-09-01 │ 1.82277e7 │\n    │ 4   │ 2015-12-01 │ 1.82872e7 │\n    │ 5   │ 2016-03-01 │ 1.83252e7 │\n    │ 6   │ 2016-06-01 │ 1.8538e7  │\n    │ 7   │ 2016-09-01 │ 1.87291e7 │\n    │ 8   │ 2016-12-01 │ 1.89055e7 │\n```\nWith multiple requests:\n```julia\n    julia\u003e us_ca_gdp = get_ifs_data([\"US\",\"CA\"], \"NGDP_SA_XDC\", \"Q\", 2015, 2016)\n    2-element Array{IMFData.IMFSeries,1}:\n     IMF Data Series\n    Database: IFS\n    Area: US\n    Indicator: NGDP_SA_XDC\n    Description:\n    Frequency: Q\n    Time Period: 2015 to 2016\n    Data: 8 x 2 DataFrame\n\n     IMF Data Series\n    Database: IFS\n    Area: CA\n    Indicator: NGDP_SA_XDC\n    Description:\n    Frequency: Q\n    Time Period: 2015 to 2016\n    Data: 8 x 2 DataFrame\n```\n## Disclaimer\nIMFData.jl is not affiliated with, officially maintained, or otherwise supported by the International Monetary Fund.\n\n\n[repo-img]: http://www.repostatus.org/badges/latest/inactive.svg\n[repo-url]: http://www.repostatus.org/#inactive\n\n[ci-img]: https://github.com/stephenbnicar/IMFData.jl/workflows/CI/badge.svg\n[ci-url]: https://github.com/stephenbnicar/IMFData.jl/actions?workflow=CI\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenbnicar%2Fimfdata.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephenbnicar%2Fimfdata.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenbnicar%2Fimfdata.jl/lists"}