Skip to main content
GET
/
api
/
spending
{
  "spending": [
    {
      "date": "2025-02-01",
      "series_key": "SERIES_A",
      "value": 16.2
    },
    {
      "date": "2025-02-01",
      "series_key": "SERIES_B",
      "value": 308542
    }
  ]
}

Authentication

No authentication required.

Query Parameters

months
number
default:"36"
Number of months of historical data to return. Maximum 120.

Response

spending
array
Array of spending data observations.
cURL
curl "https://api.consumersignals.io/api/spending?months=36"
Python
import requests

response = requests.get(
    "https://api.consumersignals.io/api/spending",
    params={"months": 36}
)
data = response.json()
TypeScript
const response = await fetch(
  "https://api.consumersignals.io/api/spending?months=36"
);
const data = await response.json();
{
  "spending": [
    {
      "date": "2025-02-01",
      "series_key": "SERIES_A",
      "value": 16.2
    },
    {
      "date": "2025-02-01",
      "series_key": "SERIES_B",
      "value": 308542
    }
  ]
}