Storywrangler
Navigation

Term Series

get /reddit/term-series

Per-date time series for a single n-gram term.

Returns counts and rank for each date. Entity is optional — when omitted, queries across all entities.

Query Parameters

type string required

The n-gram term to look up. Case-sensitive.

entity

Entity ID (optional). When omitted, no entity filtering is applied.

date

End date (YYYY-MM-DD). Defaults to latest available.

window integer

Number of days to look back from date. 0 = full history.

granularity string

Hive granularity: daily | weekly | monthly

n integer

N-gram size (1 = unigrams, 2 = bigrams)

Response

type string

The n-gram term that was looked up (echoed back).

latest_available_date string

Most recent date with data for this entity.

series array

Time series entries, one per date, sorted chronologically.

curl -X GET http://localhost:8000/reddit/term-series \