Internal — apply a CPI index row to Tango
curl --request POST \
--url https://www.bls.gov/cpi/fetch \
--header 'Content-Type: application/json' \
--data '
{
"INDEX_NAME": "CPI – All Urban Consumers – Midwest Region",
"INDEX_CODE": "CUUR0200SA0",
"INDEX_AS_OF": "02/11/2020",
"INDEX_NEW": 101,
"COUNTRY": "USA",
"CREATION_DATE": "<string>",
"CREATED_BY": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
INDEX_NAME: 'CPI – All Urban Consumers – Midwest Region',
INDEX_CODE: 'CUUR0200SA0',
INDEX_AS_OF: '02/11/2020',
INDEX_NEW: 101,
COUNTRY: 'USA',
CREATION_DATE: '<string>',
CREATED_BY: '<string>'
})
};
fetch('https://www.bls.gov/cpi/fetch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.bls.gov/cpi/fetch"
payload = {
"INDEX_NAME": "CPI – All Urban Consumers – Midwest Region",
"INDEX_CODE": "CUUR0200SA0",
"INDEX_AS_OF": "02/11/2020",
"INDEX_NEW": 101,
"COUNTRY": "USA",
"CREATION_DATE": "<string>",
"CREATED_BY": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)CPI Indices
Internal — apply a CPI index row to Tango
Virtual operation representing one row of CPI index data being inserted or updated into Tango’s index tables. Source-side endpoints differ per provider; this models the post-fetch row shape.
POST
/
cpi
/
fetch
Internal — apply a CPI index row to Tango
curl --request POST \
--url https://www.bls.gov/cpi/fetch \
--header 'Content-Type: application/json' \
--data '
{
"INDEX_NAME": "CPI – All Urban Consumers – Midwest Region",
"INDEX_CODE": "CUUR0200SA0",
"INDEX_AS_OF": "02/11/2020",
"INDEX_NEW": 101,
"COUNTRY": "USA",
"CREATION_DATE": "<string>",
"CREATED_BY": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
INDEX_NAME: 'CPI – All Urban Consumers – Midwest Region',
INDEX_CODE: 'CUUR0200SA0',
INDEX_AS_OF: '02/11/2020',
INDEX_NEW: 101,
COUNTRY: 'USA',
CREATION_DATE: '<string>',
CREATED_BY: '<string>'
})
};
fetch('https://www.bls.gov/cpi/fetch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.bls.gov/cpi/fetch"
payload = {
"INDEX_NAME": "CPI – All Urban Consumers – Midwest Region",
"INDEX_CODE": "CUUR0200SA0",
"INDEX_AS_OF": "02/11/2020",
"INDEX_NEW": 101,
"COUNTRY": "USA",
"CREATION_DATE": "<string>",
"CREATED_BY": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
Human-readable index name.
Example:
"CPI – All Urban Consumers – Midwest Region"
Source-specific code identifying the index.
Example:
"CUUR0200SA0"
Index 'as of' date in MM/DD/YYYY.
Example:
"02/11/2020"
Current period index value.
Example:
101
ISO 3166-1 alpha-3 country code.
Example:
"USA"
MM/DD/YYYY.
Defaults to integration for automated rows.
Response
200
Index row applied to Tango.

