Skip to content

SDMX 2.1

Rowan Winsemius edited this page Jun 13, 2019 · 5 revisions

General Notes

  • 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

Specific Requests

Get codelist

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

Get available dataflows

curl --header "accept: application/vnd.sdmx.structure+json; version=1.0; charset=utf-8" https://stats.spc.int/SeptemberDisseminateNSIService/Rest/dataflow

Get available data structures

curl --header "accept: application/vnd.sdmx.structure+json; version=1.0; charset=utf-8" https://stats.spc.int/SeptemberDisseminateNSIService/Rest/datastructure

Find out about a particular dataflow

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

Get the Gov Expenditure (GOV_EXP) for Cook Islands (CK)

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
Clone this wiki locally