Capitol Words API
Common Parameters
- word:
- a string representation of a word
- legislator_id:
- Bioguide ID of Member of Congress
- 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>
- Example:
- http://capitolwords.org/api/word/iraq/2008/05/23/feed.json
-
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>
- Example:
- http://capitolwords.org/api/word/iraq/2008/05/feed.xml
-
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>
- Example:
- http://capitolwords.org/api/word/iraq/2008/feed.json
-
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> - Example:
- http://capitolwords.org/api/word/iraq/2008/04/23/2008/05/23/feed.xml
Word of the Day Methods
-
WordOfDay.latest(maxrows, format)
Top words for last day a word exists
- Format:
- http://capitolwords.org/api/wod/latest/top<maxrows>.<format>
- Example:
- http://capitolwords.org/api/wod/latest/top1.json, http://capitolwords.org/api/wod/latest/top10.json
-
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>
- Example:
- http://capitolwords.org/api/wod/2008/05/23/top5.xml
-
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>
- Example:
- http://capitolwords.org/api/wod/2008/05/top1.json
-
WordOfDay.byyear(year, maxrows, format)
Top words for each day in a calendar year
- Format:
- http://capitolwords.org/api/wod/<year>/top<maxrows>.<format>
- Example:
- http://capitolwords.org/api/wod/2008/top1.xml
-
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> - Example:
- http://capitolwords.org/api/wod/2008/04/23/2008/05/23/top1.json
Lawmaker Top Word Methods
-
LawmakerTopWords.latest(lawmaker_id, maxrows, format)
Top words for lawmaker for last day a word exists for lawmaker
- Format:
- http://capitolwords.org/api/lawmaker/<lawmaker_id>/latest/top<maxrows>.<format>
- Example:
- http://capitolwords.org/api/lawmaker/M000355/latest/top5.json
-
LawmakerTopWords.bydate(lawmaker_id, year, month, day, maxrows, format)
Top words for lawmaker for a specific date
- Format:
- http://capitolwords.org/api/lawmaker/<lawmaker_id>/<year>/<month>/<day>/top<maxrows>.<format>
- Example:
- http://capitolwords.org/api/lawmaker/M000355/2008/07/23/top5.xml
-
LawmakerTopWords.bymonth(lawmaker_id, year, month, maxrows, format)
Top words for lawmaker for a given month
- Format:
- http://capitolwords.org/api/lawmaker/<lawmaker_id>/<year>/<month>/top<maxrows>.<format>
- Example:
- http://capitolwords.org/api/lawmaker/M000355/2008/07/top5.json
-
LawmakerTopWords.byyear(lawmaker_id, year, maxrows, format)
Top words for lawmaker for a given year
- Format:
- http://capitolwords.org/api/lawmaker/<lawmaker_id>/<year>/top<maxrows>.<format>
- Example:
- http://capitolwords.org/api/lawmaker/M000355/2008/top5.xml
-
LawmakerTopWords.byrange(lawmaker_id, startyear, startmonth, startday, endyear, endmonth, endday, maxrows, format)
Top words for lawmaker for a given date range
- Format:
- http://capitolwords.org/api/lawmaker/<lawmaker_id>/<startyear>/<startmonth>/<startday>/<endyear>/<endmonth>/<endday>/
top<maxrows>.<format> - Example:
- http://capitolwords.org/api/lawmaker/M000355/2008/07/23/2008/09/16/top5.xml
Lawmakers
Heat Map of Vocal States
(last 60 days)
Click on a state below for more information.
Words of the Day
February 04, 2010
Click on a word below for more information.
- 100% 307 paygo
- 100% 293 budget
- 100% 258 business
- 100% 253 financial
- 100% 245 debt
- 100% 224 spending
- 100% 206 percent
- 100% 182 tax
- 100% 167 security
- 100% 153 health
- 100% 145 budgetary
- 100% 144 public
- 100% 143 effects
- 100% 140 programs
- 100% 131 service
- 100% 129 fiscal
- 100% 127 policy
- 100% 123 trillion
- 100% 120 country
- 100% 120 deficit