Skip to main content
GET
/
api
/
reddit-sentiment
{
  "sentiment": [
    {
      "date": "2025-03-28",
      "stress_score": 0.42,
      "post_count": 187
    }
  ]
}

Authentication

Requires a valid JWT token in the Authorization header.
Authorization: Bearer <your-jwt-token>

Query Parameters

limit
number
default:"90"
Number of daily observations to return. Maximum 365.

Response

sentiment
array
Array of daily sentiment observations.
cURL
curl "https://api.consumersignals.io/api/reddit-sentiment?limit=90" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
Python
import requests

response = requests.get(
    "https://api.consumersignals.io/api/reddit-sentiment",
    params={"limit": 90},
    headers={"Authorization": "Bearer YOUR_JWT_TOKEN"}
)
data = response.json()
TypeScript
const response = await fetch(
  "https://api.consumersignals.io/api/reddit-sentiment?limit=90",
  {
    headers: {
      Authorization: "Bearer YOUR_JWT_TOKEN",
    },
  }
);
const data = await response.json();
{
  "sentiment": [
    {
      "date": "2025-03-28",
      "stress_score": 0.42,
      "post_count": 187
    }
  ]
}