Your request for the AAPL options actually returns 2482 contract details. The whole lot is returned within a second or two. You should be able to easily verify this from the API log.
?
See attached screenshot.
?
I can’t speculate as to why your code doesn’t receive them, but the fault is certainly not in the IBKR API code.