Historical Data
By default, all RotoWire news and feed endpoints return data for the current day. Using the hours or date parameters, you can look back up to 2 weeks of historical data. Access beyond 2 weeks requires a custom arrangement — contact your RotoWire sales representative for details.
How It Works
RotoWire feed endpoints (News, Injuries, Updates, etc.) support two parameters for retrieving historical data:
| Parameter | Format | Example |
|---|---|---|
| hours | Integer | &hours=48 |
| date | MMDDYYYY | &date=05102026 |
hours Parameter
Use hours to look back a set number of hours from now. You can set hours to any value, but data will always cut off at 2 weeks regardless of how large the number is.
Example: https://api.rotowire.com/Baseball/MLB/News.php?key={key}&format=json&hours=48
Setting hours=8760 will still only return the last 2 weeks of data.
date Parameter
Use date to retrieve data from a specific calendar day using the format MMDDYYYY. Requesting a date older than 2 weeks will return data from the 2-week cutoff — it does not return an error.
Example: https://api.rotowire.com/Baseball/MLB/News.php?key={key}&format=json&date=05102026
Requesting an old date like date=01012026 silently clamps to the 2-week limit.
The 2-Week Limit
| Scenario | Result |
|---|---|
| hours=48 | Returns last 48 hours |
| hours=336 | Returns last 2 weeks (336 hrs = 14 days) |
| hours=8760 | Capped at 2 weeks |
| date=05102026 (within 2 weeks) | Returns that days data |
| date=01012026 (older than 2 weeks) | Returns data from the 2-week cutoff |
Extended Historical Access
If your use case requires data older than 2 weeks, RotoWire offers extended historical access as a custom arrangement. Contact your RotoWire sales representative to discuss options.
Updated 4 days ago