-
Notifications
You must be signed in to change notification settings - Fork 2
SDMX 2.1
Rowan Winsemius edited this page Jun 17, 2019
·
5 revisions
- To get JSON add the following header to your request
"accept: application/vnd.sdmx.structure+json; version=1.0; charset=utf-8"
- setting to
"accept: application/json"
doesn't work
- SDMX Rest Spec and cheatsheet
- SDMX SDMX v2.1 pdf Spec
- Sample queries from the WorldBank
Used for reference codes etc
curl --header "accept: application/vnd.sdmx.structure+json; version=1.0; charset=utf-8" https://stats.spc.int/SeptemberDisseminateNSIService/Rest/codelist/spc
curl --header "accept: application/vnd.sdmx.structure+json; version=1.0; charset=utf-8" https://stats.spc.int/SeptemberDisseminateNSIService/Rest/dataflow
curl --header "accept: application/vnd.sdmx.structure+json; version=1.0; charset=utf-8" https://stats.spc.int/SeptemberDisseminateNSIService/Rest/datastructure
curl --header "accept: application/vnd.sdmx.structure+json; version=1.0; charset=utf-8" https://stats.spc.int/SeptemberDisseminateNSIService/Rest/dataflow/SPC/DF_POCKET/1.0/?references=all&detail=referencepartial
This comes from the
-
DF_POCKET
dataflow (stands for SPC Pocket Summary) -
1.0
is the version of the dataflow (seems to be 1.0 by default) -
A
is annual frequency -
GOV_EXP
is the indicator
curl https://stats.spc.int/SeptemberDisseminateNSIService/Rest/data/SPC,DF_POCKET,1.0/GOV_EXP.A.CK./?startPeriod=2012&endPeriod=2018&format=jsondata