A Project of Sunlight Foundation

CapitolWords has decided to take summer recess a bit early as we update the database that powers it. It will resume updating you with the congressional word of the day soon. Thanks for your patience.

Capitol Words API

Common Parameters
word: a string representation of a word
year: four digit year
month: one or two digit month
day: one or two digit day of month
maxrows: used in word of day methods, the number of words to return for each day
format: format to return (json and xml currently supported)
Word Methods
Word.dailysum.bydate(word, year, month, day, format)
Daily totals of word on a specific date
Format:
http://capitolwords.org/api/word/<word>/<year>/<month>/<day>/feed.<format>
Word.dailysum.bymonth(word, year, month, format)
Daily totals of word for in a calendar month
Format:
http://capitolwords.org/api/word/<word>/<year>/<month>/feed.<format>
Word.dailysum.byyear(word, year, format)
Daily totals of word for in a calendar year
Format:
http://capitolwords.org/api/word/<word>/<year>/feed.<format>
Word.dailysum.byrange(word, startyear, startmonth, startday, endyear, endmonth, endday, format)
Daily totals of word in a date range
Format:
http://capitolwords.org/api/word/<word>/<startyear>/<startmonth>/<startday>/<endyear>/<endmonth>/<endday>/feed.<format>
Word of Day Methods
WordOfDay.latest(maxrows, format)
Top words for last day a word exists
Format:
http://capitolwords.org/api/wod/latest/top<maxrows>.<format>
WordOfDay.bydate(year, month, day, maxrows, format)
Top words for a specific date
Format:
http://capitolwords.org/api/wod/<year>/<month>/<day>/top<maxrows>.<format>
WordOfDay.bymonth(year, month, maxrows, format)
Top words for each day in a calendar month
Format:
http://capitolwords.org/api/wod/<year>/<month>/top<maxrows>.<format>
WordOfDay.byyear(year, maxrows, format)
Top words for each day in a calendar year
Format:
http://capitolwords.org/api/wod/<year>/top<maxrows>.<format>
WordOfDay.byrange(startyear, startmonth, startday, endyear, endmonth, endday, maxrows, format)
Top words for each day in a date range
Format:
http://capitolwords.org/api/wod/<startyear>/<startmonth>/<startday>/<endyear>/<endmonth>/<endday>/top<maxrows>.<format>