I would not recommend to use the Yahoo or Google apis to get option prices. Some of the bid/ask prices are completly wrong and some expiration dates are missing. I created an option scanner as a side project and found about this bad data quality the hard way.
iVolatility told me it would be ~$1000 for EOD chains + IV & Greeks since 1990 - just for SPX. CBOE is partners with iVolatility so I imagine their data is decent, but I can't bring myself to drop that much on it for a simple personal project.
Since CBOE is the exchange itself, I'd assume the quality of the data is at least the same as iVolatility, if not better.
Ditto for TDAmeritrade but their forums are not very active. http://apiforums.tdameritrade.com/
For stocks (not options), they took it to the next level, and you can stream price/volume data in psuedo realtime. I think you can also pull EOD data on stocks (not options) going back pretty far.
Also note that Yahoo's data is somewhat unreliable [0, 2].
Unfortunately options data is just hard to get access to due to the agreements forced on providers by the exchanges. If you want to build a trading system on it without an institutional budget, the best options I've found so far are QuantConnect [3], which has paid for it and lets you build your system on their platform and OptionWorks [4], which you can pay $150 for and download all the data. You should be able to get a live feed from your broker after that. If you want it for academic research, many universities and colleges have access to much higher quality data.
This should be fine for personal use though.
[0]: https://meumobi.github.io/stocks%20apis/2016/03/13/get-realt...
[1]: https://policies.yahoo.com/us/en/yahoo/terms/product-atos/ap...
[2]: https://seekingalpha.com/instablog/6052771-kevin-wrotenbery/...
[3]: https://quantconnect.com
[4]: https://www.quandl.com/databases/OWCS