# Does historical options data starts from 2024 or my script is wrong?

**URL:** <https://forum.alpaca.markets/t/does-historical-options-data-starts-from-2024-or-my-script-is-wrong/13976>\
**Category:** Getting Started with Alpaca\
**Created:** [April 1, 2024, 11:09pm UTC](https://forum.alpaca.markets/t/does-historical-options-data-starts-from-2024-or-my-script-is-wrong/13976 "2024-04-01T23:09:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cainiaocome](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@cainiaocome](https://forum.alpaca.markets/u/cainiaocome)\
**Post date:** [April 1, 2024, 11:09pm UTC](https://forum.alpaca.markets/t/does-historical-options-data-starts-from-2024-or-my-script-is-wrong/13976/1 "2024-04-01T23:09:28Z")

</div>

Hi there, I am trying to download historical options data, example attached below and I use Python. But the resulted dates starts from 2024-01-05. Is my script not correct or alpaca’s historical options data starts from 2024? Thanks

```auto
    trading_client = MyTradingClient()

    apple = trading_client.get_asset('AAPL')

    apple_option_req = GetOptionContractsRequest(
        status=AssetStatus.INACTIVE,
        underlying_symbol='AAPL',
        expiration_date_lte='2024-04-01',
        limit=10000, page=1)

    apple_options = trading_client.get_option_contracts(apple_option_req)
    contracts = apple_options.option_contracts
    dates = set([x.expiration_date for x in contracts])
    print(dates)

```

dates result:

 ![截屏2024-04-01 20.40.53](https://us1.discourse-cdn.com/flex020/uploads/alp/original/2X/1/1d1abd77df8d19b0cd9588f9bf3aecbc2064a32c.png)

---

<div class="post-metadata">

**Author:** ![Michael\_Reyeros](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/michael_reyeros/32/6603_2.png) [@Michael\_Reyeros](https://forum.alpaca.markets/u/Michael_Reyeros)\
**Post date:** [October 16, 2024, 8:41pm UTC](https://forum.alpaca.markets/t/does-historical-options-data-starts-from-2024-or-my-script-is-wrong/13976/2 "2024-10-16T20:41:48Z")

</div>

Based on the [documentation](https://docs.alpaca.markets/docs/historical-option-data), historical option data is only available since February 2024. If you don’t mind me asking, what python library are you using for hitting the Alpaca API?
