STOCK INFORMATION DATABASE
Stock List \ Services \ Data Products \ Manage \ Latest Advice


Restful Services - APIs

Adding type=xml to the URL returns XML. The default is JSON.

Most Recent Stock Key

This service returns the most recent Stock Key based on input: Stock Key.
https://sid.ices.dk/services/stockkey/136481?type=xml

All of the following services return a dataset of published stocks and attributes filtered by the relevant parameter(s). If year is not specified, then all years are included in the dataset.

Advice Drafting Group

All published stocks for 2015, with ADGBBI as the ADG, in XML format.
https://sid.ices.dk/services/adg/adgbbi/2015?type=xml

Stock Key Label

All published herring stocks for 2015.
https://sid.ices.dk/services/stockkeylabel/her/2015
All published herring stocks, for all years, in XML format.
https://sid.ices.dk/services/stockkeylabel/her?type=xml

Data Category

All published stocks for 2015 with Data Category 1.x.
https://sid.ices.dk/services/datacategory/1/2015

Expert Group

All published stocks for all years with WGDEEP as the EG.
https://sid.ices.dk/services/eg/wgdeep

Species

All published stocks for 2015, with greater in species description, in XML format.
https://sid.ices.dk/services/species/greater/2015?type=xml

Year

All published stocks for 2015.
https://sid.ices.dk/services/year/2015
All published stocks for all years.
https://sid.ices.dk/services/year


OData V3 Service - API

https://sid.ices.dk/services/odata3/StockListDWs3

Return type is specified by adding the following to the URL (the default is JSONLight) : -
  • type=jsonlight
  • type=jsonfull
  • type=atomxml

OData V3 services provide multiple query options. Here are a few examples : -

All published stocks with active year 2015 ( %20 is a space character).
https://sid.ices.dk/services/odata3/StockListDWs3?$filter=ActiveYear%20eq%202015
All stock codes, that contain her, in ATOMXML format.
https://sid.ices.dk/services/odata3/StockListDWs3?$filter=substringof('her',StockKeyLabel)&type=atomxml


OData V4 Service - API

https://sid.ices.dk/services/odata4/StockListDWs4

As with OData V3 services, OData V4 services provide multiple query options.