I'm on a paid plan but I only get results from the last 30 days
Access to historical data is included in every paid plan, but it is disabled by default. You need to enable it once:
- Open your dashboard: https://newsapi.ai/dashboard
- Scroll down to the Data access section.
- Check the option that enables access to historical data.
Until this is enabled, all searches are limited to the last 30 days and cost 1 token, even if you set an older date range. The sandbox shows the message "Based on your configuration in the settings, your results will be limited to the last 30 days." Setting allowUseOfArchive=True in the Python SDK is not enough on its own - the dashboard setting is required.
Why is it disabled by default? Scripts written during the free trial often have no date limits. If they suddenly ran on the whole archive after subscribing, they would use many more tokens (see "Why did my queries use so many tokens?"). You can disable the setting again after you download the historical data you need. This is also explained in the welcome email you receive when you subscribe.