Python (SDK)
from datetime import date
from finance_dev import FinanceDev, models
with FinanceDev(
security=models.Security(
client_id="<YOUR_CLIENT_ID_HERE>",
client_secret="<YOUR_CLIENT_SECRET_HERE>",
),
) as fd_client:
res = fd_client.economy.get_inflation(date_=date.fromisoformat("2024-01-15"), dates="2024-01-15,2024-01-16", date_from=date.fromisoformat("2024-01-01"), date_to=date.fromisoformat("2024-01-31"), date_after=date.fromisoformat("2024-01-01"), date_before=date.fromisoformat("2024-01-31"), limit=100)
while res is not None:
# Handle items
res = res.next()import { FinanceDev } from "@ariesdotcom/finance-dev";
const financeDev = new FinanceDev({
security: {
clientID: "<YOUR_CLIENT_ID_HERE>",
clientSecret: "<YOUR_CLIENT_SECRET_HERE>",
},
});
async function run() {
const result = await financeDev.economy.getInflation({
date: new Date("2024-01-15"),
dates: "2024-01-15,2024-01-16",
dateFrom: new Date("2024-01-01"),
dateTo: new Date("2024-01-31"),
dateAfter: new Date("2024-01-01"),
dateBefore: new Date("2024-01-31"),
limit: 100,
});
for await (const page of result) {
console.log(page);
}
}
run();curl --request GET \
--url https://api.aries.com/v1/economy/inflation \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aries.com/v1/economy/inflation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aries.com/v1/economy/inflation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aries.com/v1/economy/inflation"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aries.com/v1/economy/inflation")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aries.com/v1/economy/inflation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"nextUrl": "https://api.aries.com/v1/economy/inflation?next=...",
"requestId": "6f5e44c7321c4947a7702654d2d3e0fa",
"results": [
{
"cpi": 324.368,
"cpiCore": 330.542,
"date": "2025-09-01",
"pce": 127.625,
"pceCore": 126.954,
"pceSpending": 21152.2
},
{
"cpi": 316.449,
"cpiCore": 322.619,
"cpiYearOverYear": 2.74938,
"date": "2024-11-01",
"pce": 124.637,
"pceCore": 123.962,
"pceSpending": 20313.6
}
],
"status": "OK"
}Economy
Latest Inflation Data
Retrieve the most recent consumer price index (CPI) and inflation rate data. Monitor economic health and inflationary pressures for investment decisions.
Use Case: Show current inflation rate on an economic dashboard to assess purchasing power trends.
GET
/
v1
/
economy
/
inflation
Python (SDK)
from datetime import date
from finance_dev import FinanceDev, models
with FinanceDev(
security=models.Security(
client_id="<YOUR_CLIENT_ID_HERE>",
client_secret="<YOUR_CLIENT_SECRET_HERE>",
),
) as fd_client:
res = fd_client.economy.get_inflation(date_=date.fromisoformat("2024-01-15"), dates="2024-01-15,2024-01-16", date_from=date.fromisoformat("2024-01-01"), date_to=date.fromisoformat("2024-01-31"), date_after=date.fromisoformat("2024-01-01"), date_before=date.fromisoformat("2024-01-31"), limit=100)
while res is not None:
# Handle items
res = res.next()import { FinanceDev } from "@ariesdotcom/finance-dev";
const financeDev = new FinanceDev({
security: {
clientID: "<YOUR_CLIENT_ID_HERE>",
clientSecret: "<YOUR_CLIENT_SECRET_HERE>",
},
});
async function run() {
const result = await financeDev.economy.getInflation({
date: new Date("2024-01-15"),
dates: "2024-01-15,2024-01-16",
dateFrom: new Date("2024-01-01"),
dateTo: new Date("2024-01-31"),
dateAfter: new Date("2024-01-01"),
dateBefore: new Date("2024-01-31"),
limit: 100,
});
for await (const page of result) {
console.log(page);
}
}
run();curl --request GET \
--url https://api.aries.com/v1/economy/inflation \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aries.com/v1/economy/inflation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aries.com/v1/economy/inflation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aries.com/v1/economy/inflation"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aries.com/v1/economy/inflation")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aries.com/v1/economy/inflation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"nextUrl": "https://api.aries.com/v1/economy/inflation?next=...",
"requestId": "6f5e44c7321c4947a7702654d2d3e0fa",
"results": [
{
"cpi": 324.368,
"cpiCore": 330.542,
"date": "2025-09-01",
"pce": 127.625,
"pceCore": 126.954,
"pceSpending": 21152.2
},
{
"cpi": 316.449,
"cpiCore": 322.619,
"cpiYearOverYear": 2.74938,
"date": "2024-11-01",
"pce": 124.637,
"pceCore": 123.962,
"pceSpending": 20313.6
}
],
"status": "OK"
}Authorizations
Query Parameters
Response
Successful response
Paginated response containing inflation data (CPI and PCE) from the upstream data provider.
Was this page helpful?