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
June 26, 2009
Click on a word below for more information.
- 100% 2,971 energy
- 100% 1,102 administrator
- 100% 887 allowances
- 100% 830 gas
- 100% 787 emissions
- 100% 763 climate
- 100% 675 greenhouse
- 100% 651 change
- 100% 635 percent
- 100% 601 carbon
- 100% 592 term
- 100% 591 clean
- 100% 567 emission
- 100% 562 jobs
- 100% 551 efficiency
- 100% 535 offset
- 100% 534 requirements
- 100% 526 project
- 100% 520 standards
- 100% 509 electricity