Here's how to retrieve all historical data points for a Fundamentals value.
If you want to retrieve all historical data points for a Fundamentals value, such as PE Ratio, here's how to do it via the Intrinio API.
You can use a high page size to retrieve basically all the historical values for a data tag. Try:
https://api-v2.intrinio.com/companies/AAPL/historical_data/pricetoearnings?page_size=10000
Using a high page size is limited by the Bulk Request limit explained here.
Another option would be to get a bulk download of US Fundamentals, which includes large CSV files with full history. Ongoing bulk downloads may be available with your existing API subscription; if you're not sure, please reach out to support@intrinio.com.