Get Social Data

GEThttps://v2.api.altindex.com/api/social/{platform}/{ticker}

Retrieve time-series social media metrics for a company across 8 major platforms.

Authentication

All endpoints require X-API-Key header authentication. See Getting Started for details.

Scope required: social:{platform} or social:* wildcard.

Path Parameters

ParameterTypeDescription
platformstringOne of: x, instagram, threads, tiktok, pinterest, youtube, facebook, reddit
tickerstringStock ticker symbol (e.g., AAPL, TSLA)

Query Parameters

ParameterTypeDefaultDescription
from_datedate365 days agoStart date (format: YYYY-MM-DD)
to_datedatetodayEnd date (format: YYYY-MM-DD)

Response

Returns a SocialSeriesResponse object. Only relevant metrics are included -- fields with null values are omitted.

SocialDataPoint

A single data point in the time series.

FieldTypeRequiredDescription
datedateYesDate of the data point (YYYY-MM-DD)
followersintegerNoFollower count (all platforms use this key)
mentionsintegerNoMention count (X, Reddit)
sentimentintegerNoSentiment score (0-100)

SocialSeriesResponse

Complete response for a social metrics request.

FieldTypeRequiredDescription
tickerstringYesEntity ticker symbol
platformstringYesPlatform name
handlestring | nullNoPlatform-specific handle/username
from_datedateYesStart of date range
to_datedateYesEnd of date range
dataSocialDataPoint[]YesArray of daily data points

For detailed definitions of each metric and platform-specific behavior, see Social Followers and Mentions & Sentiment in the Data Dictionary.

Error Responses

StatusCodeDescription
401MISSING_API_KEYNo API key provided in the X-API-Key header
403INVALID_API_KEYAPI key is invalid or has been revoked
403INSUFFICIENT_SCOPEAPI key does not have the required platform scope
404ENTITY_NOT_FOUNDThe requested ticker does not exist
429RATE_LIMIT_EXCEEDEDDaily request limit exceeded

For the full error envelope format, see Error Handling.

GET/api/social/{platform}/{ticker}
cURL
curl -X GET "https://v2.api.altindex.com/api/social/x/AAPL?from_date=2025-01-01&to_date=2026-02-04" \
  -H "X-API-Key: your_api_key_here"
200Retrieved
{
  "ticker": "AAPL",
  "platform": "x",
  "handle": "apple",
  "from_date": "2025-01-01",
  "to_date": "2026-02-04",
  "data": [
    {
      "date": "2026-02-04",
      "followers": 9939698,
      "mentions": 655,
      "sentiment": 72
    },
    {
      "date": "2026-02-03",
      "followers": 9939683,
      "mentions": 245,
      "sentiment": 64
    },
    {
      "date": "2026-02-02",
      "followers": 9939922,
      "mentions": 785,
      "sentiment": 73
    }
  ]
}