Historical Ratings Feeds
Get past ratings by ID
Past ratings reports can be accessed by a unique identifier assigned to each report. The XML feed below offers all past structured reports and organized them into four ratings groups: House, Senate, Governor, and President. For each report, there are five attributes offered: id, date, timestamp (unix), uri, and title. For example:
<rating id="4588" date="2021-01-01" timestamp="1609522200" uri="https://insideelections.com/api/xml/ratings/by-id/house/4588" title="2020 House Ratings (October 28, 2020)"/>
Accessing the provided URI will return that specific report in XML format.
Please take care with iterating through past ratings as some feeds may take some time to return.