How to Retrieve Indices Using the API Interface

The API provides a set of commands that can be used to retrieve the list of subjects of the indices, and an additional set of commands that enables retrieval of the indices' data.

Update

Notes- The Dwellings Price Index

General Parameters

Parameters that can be added generally to the API queries in order to define the format, language, and number of objects, among other things, on the page.

Parameter Type Explanation Default Required parameter
langhe/enLanguage types (Hebrew/English)he
formatxml/json/csv/xlsFormat typeDepends on type of browser; defining the desired format is recommendedDesired
downloadtrue/falseDefines whether the data will be downloaded as a physical file (true) or shown in the browser (false)Depends on format and type of browser; defining the desired characteristic is recommendedDesired
pagenumberNumber of current page (current_page)1
pagesizenumberNumber of objects that will appear on the page (page_size); maximum: 1,000100


Notes- The Dwellings Price Index

1. The Dwellings Price Index is a bi-monthly index. Thus, the index published on the 15th of a particular month (t) is based on comparing transactions conducted two and three months ago (i.e., t-2 and t-3) to transactions conducted three and four months ago (i.e., t-3 and t 4). For example, when the calculator is used for a date during the period between July 16 and August 15, the latest published index is based on transactions conducted in April–May compared to transactions conducted in March–April.

2. In contrast to the other indices published in this series, the last three indices of the Dwellings Price Index are provisional and might be revised as further transactions are reported during those months. Therefore, indexation to a period when the index is still provisional is not recommended.

Table of Contents
Retrieving index subjects

Retrieving index data

Index linkage calculator

Retrieving primary indices

Retrieving all the indices by various bases

Retrieving the Index Subjects

Complete list of subjects

List of subjects by level

Complete List of Subjects

Template

https://api.cbs.gov.il/index/catalog/tree

Parameters

Parameter Type Explanation Default Required parameter
periodM/Q/MQ/QMFrequency of updating the data (M–monthly/Q–quarterly/MQ–monthly + quarterly)MQX
qstringText to search forX
string_match_typebegins_with/contains/equalsSearch conditions (begins with/contains/equals)contains 

 

Examples

To retrieve index subjects – name and code for each index in XML format https://api.cbs.gov.il/index/catalog/tree?format=xml&download=false&lang=en
To retrieve the indices and their codes for indices that contain specific wording https://api.cbs.gov.il/index/catalog/tree?format=json&download=false&q=manufacturing&lang=en
To retrieve the index subjects that are updated monthly https://api.cbs.gov.il/index/catalog/tree?format=xml&download=false&period=M&lang=en


List of Subjects by Level

List of Chapters

List of Subjects by Chapter

List of Codes by Subject

List of Chapters

Template

https://api.cbs.gov.il/index/catalog/catalog

Example

Retrieving sections(chapters) list from the price indices https://api.cbs.gov.il/index/catalog/catalog? format=xml&download=false&lang=en

 

List of Subjects by Chapter

Template

https://api.cbs.gov.il/index/catalog/chapter

Parameter Type Explanation Default Required parameter
idstringSection codeV

 

Example

Retrieving subjects of a specific section from the price indices https://api.cbs.gov.il/index/catalog/chapter?id=a&format=xml&download=false&lang=en

 

List of codes by subject

Template

https://api.cbs.gov.il/index/catalog/subject

Parameters

Parameter Type Explanation Default Required parameter
idnumberTopic numberV
qstringText to search forX
string_match_typebegins_with/contains/equalssearch conditions (begins with/contains/equals)containsX

 

Examples

Retrieving the codes of the index series by specific subject https://api.cbs.gov.il/index/catalog/subject?id=37&format=xml&download=false&lang=en
Retrieving the codes of the index series by specific subject and description that contains specific text https://api.cbs.gov.il/index/catalog/subject?q=fruit&id=37&format=xml&download=false&lang=en

 

Retrieving data of the indices

Template

https://api.cbs.gov.il/index/data/price

Parameters

Parameter Type Explanation Default Required parameter
idnumberIndex codeV
startPeriodmm-yyyyFrom date01-1900X
endPeriodmm-yyyyTo date01-2100X
lastnumber>0Number of objects to retrieve from one or more series, starting with the most updated and onwardallX
coeftrue/falseadding a coefficienttrueX

 

Examples

Retrieving data of a specific index by index code https://api.cbs.gov.il/index/data/price?id=120010&format=xml&download=false&lang=en
Retrieving data of a specific index by specific dates https://api.cbs.gov.il/index/data/price?id=120010&format=xml&download=false&startPeriod=01-2000&endPeriod=12-2019&lang=en
Retrieving the most recent values of a specific index, including chaining coefficients https://api.cbs.gov.il/index/data/price?id=120010&format=xml&download=false&last=2&coef=true&lang=en

 

Index Linkage Calculator

Template

https://api.cbs.gov.il/index/data/calculator/{id}

Parameters

Parameter Type Explanation Default Required parameter
idnumberIndex codeV
valuenumber>0Linkage amountV
datemm-dd-yyyy/yyyy-mm-ddFrom dateV
toDatemm-dd-yyyy/yyyy-mm-ddTo dateV
currencynew_sheqel/old_sheqel/liraType of currencynew_sheqelX

 

Examples

Calculation of the index https://api.cbs.gov.il/index/data/calculator/120010?value=100&date=01-01-2018&toDate=01-01-2019&format=xml&download=false&lang=en
Calculation of the index by values of the lira https://api.cbs.gov.il/index/data/calculator/120010?value=100&date=01-01-2000&toDate=12-01-2019&currency=lira&format=xml&download=false&lang=en


Retrieving Main Indices:

Retrieving main indices by various bases

Retrieving main indices

Retrieving main indices by periods


Retrieving Main Indices by Various Bases

Template

https://api.cbs.gov.il/index/data/price_selected

Parameter Type Explanation Default Required parameter
oldformat*true/falseCorrections to match the old format mainly regarding Hebrew, spaces, order of presentation in basefalseX

* Presently, support is only in XML format

Default:  format=xml&download=false&chapter=&oldformat=false

Examples

Retrieving the main indices by various bases https://api.cbs.gov.il/index/data/price_selected?format=xml&download=false&lang=en

Retrieving the main indices by various bases In the old format

https://api.cbs.gov.il/index/data/price_selected?lang=en&oldformat=true&format=xml&download=false


Retrieving Main Indices

Template

https://api.cbs.gov.il/index/data/price_selected_b

Example*

Retrieving main indices https://api.cbs.gov.il/index/data/price_selected_b

* Presently, support is only in XML format


Retrieving Main Indices by Periods

Template

https://api.cbs.gov.il/index/data/price_selected_b

Parameters

Parameter Type Explanation Default Required parameter
StartDateyyyymmFrom date199701
(Minimum)
V
EndDateyyyymmUntil date---V

 

Example*

Retrieving main indices from 01/1997 until 03/2021 https://api.cbs.gov.il/index/data/price_selected_b?StartDate=199701&EndDate=202103

* Presently, support is only in XML format

 

Retrieving All the Indices by Various Bases

Template

https://api.cbs.gov.il/index/data/price_all

Type Explanation Default Required parameter
true/falseCorrections to match the old format mainly regarding Hebrew, spaces, order of presentation in basefalseX
string

Ability to filter by specific chapter

The list of chapters can be found at:

https://api.cbs.gov.il/Index/Catalog/Catalog?lang=en

chapter=chaptereid  *

ChapterDescription
aConsumer Prices Index
aaAverage Housing Indices and Prices
bProducer Price Indices - Manufacturing Output for the Domestic Market
baProducer Price Indices of Manufacturing| Mining and Quarrying Output for Exports
bbProducer Price Indices for Services (SPPI)
cPrices Indices of Input in Residential Building
caPrice Index of Input in Commercial and Office Building
dPrice Indices of Input in Road Construction and Bridging
ePrice Indices of Input in Agriculture
fPrice Indices of Input in Buses
faPrice Indices of Input in Public Van Services

""

All chapters

X

* Presently, support is only in XML format

Default:  format=xml&download=false&chapter=&oldformat=false

Examples

Retrieving the indices in various bases
https://api.cbs.gov.il/index/data/price_all?lang=en&format=xml&download=false

Retrieving the indices in various bases in old format 

https://api.cbs.gov.il/index/data/price_all?lang=en&format=xml&download=false&oldformat=true

Retrieving the indices in various bases for Chapter a:

Consumer Prices Index

https://api.cbs.gov.il/index/data/price_all?lang=en&chapter=a