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
Lawmakers
Heat Map of Vocal States
(last 60 days)
Click on a state below for more information.
Words of the Day
December 16, 2008
Click on a word below for more information.