Top Ngrams
Top types by count for any registered types-counts dataset.
The generic form of the per-domain /{domain}/top-ngrams endpoints: the
dataset is selected by query params and filter dimensions are passed by
their registered column names — ?ngram_size=1&granularity=daily for
wikimedia, ?n=1&lang=en for reddit, ?sex=M for babynames. Discover
them via GET /registry/{domain}/{dataset_id}; missing partition dims
get the dataset's registered defaults.
With dates2, returns two systems keyed by date range for a temporal
comparison (same shape as the per-domain endpoints). mongodb pass-through
datasets accept single dates only.
Query Parameters
string Domain owning the dataset
string Dataset ID within the domain
Date/year range for system 1. Single value '2024-10-01' or range '2024-10-01,2024-10-31'. Omit to load all time (datasets without a time dimension take no dates; mongodb datasets require a single date).
Optional second range for a temporal comparison.
Global entity ID (e.g. 'wikidata:Q30') or local ID. Omit for datasets without entity_mapping.
Count measure — one of the dataset's endpoint_schema.count_column entries. Defaults to the first registered measure. One of: count | articles | papers. Defaults to count.
integer Max types per system (0 = no limit). manifest.availability's types gives the vocabulary ceiling.
Available Datasets
Pass these as additional query parameters using the actual column names from each dataset.
babynames/ngrams
Baby names by popularity, year, and location with entity mappings
No filter dimensions.
bluesky/ngrams
Date-first ngram distributions for Bluesky — all count measures per (ngram, date), by language and ngram size, bundled one ISO week per file under year/month for single-date distribution and rank-divergence queries. Includes repost/quote attention-weighted measures (count_all). Companion to the hash-bucketed bluesky/sparklines per-term time series.
n default: 1 · 1, 2lang default: en · af, als, am, an, ar …and 172 morereddit/ngrams
Reddit ngrams
n default: 1 · 1, 2lang default: af · af, als, am, an, ar …and 162 morestorywrangler/american-stories
American Stories (Dell et al., 2023): 367M OCR'd articles from 3,592 US newspapers in Chronicling America, 1770-1964. Lowercased 1- and 2-grams by fastText language; no minimum-count filter, so OCR noise is included. Measures: count (occurrences), articles (articles containing the n-gram), papers (distinct newspapers containing it). Daily resolution; `date` is the issue date. Ranked n-gram distributions per date, with the top 10 contributing newspapers (top_publications) and states (top_states) per n-gram.
n default: 1 · 1, 2lang default: en · af, als, am, an, ar …and 147 morestorywrangler/american-stories-monthly
American Stories (Dell et al., 2023): 367M OCR'd articles from 3,592 US newspapers in Chronicling America, 1770-1964. Lowercased 1- and 2-grams by fastText language; no minimum-count filter, so OCR noise is included. Measures: count (occurrences), articles (articles containing the n-gram), papers (distinct newspapers containing it). Monthly resolution; `date` is the first day of the month. Ranked n-gram distributions per date, with the top 10 contributing newspapers (top_publications) and states (top_states) per n-gram.
n default: 1 · 1, 2lang default: en · af, als, am, an, ar …and 147 morestorywrangler/american-stories-yearly
American Stories (Dell et al., 2023): 367M OCR'd articles from 3,592 US newspapers in Chronicling America, 1770-1964. Lowercased 1- and 2-grams by fastText language; no minimum-count filter, so OCR noise is included. Measures: count (occurrences), articles (articles containing the n-gram), papers (distinct newspapers containing it). Yearly resolution; `date` is January 1 of the year. Ranked n-gram distributions per date, with the top 10 contributing newspapers (top_publications) and states (top_states) per n-gram.
n default: 1 · 1, 2lang default: en · af, als, am, an, ar …and 147 moretwitter/ngrams
Storywrangler Twitter n-grams (1/2/3-grams across 169 languages), served from MongoDB. One document per (word, day) with with-RT and no-RT counts, ranks, and frequencies.
No filter dimensions.
vt-zoning-atlas/ngrams
Vermont zoning bylaw word frequencies by town.
No filter dimensions.
wikimedia/ngrams
Wikipedia n-grams by frequency, date, and location with entity mappings and ranks
ngram_size default: 1 · 1, 2granularity default: daily · daily, monthly, weeklyResponse
arrayType/count entries sorted by count descending. With dates2, replaced by two arrays keyed by each date range (e.g. '2024-10-01_2024-10-07').
objectRequest metadata echoed back
curl -X GET https://api.storywrangler.uvm.edu/storywrangler/top-ngrams \