Like I said before - you cannot decide how much data you get from an API unless it is possible via that same API- what you can do is decide how much you process from that API response.
getting first 10k elements of data depends on the amount of overall data since you can use regular loop, pandas, numpy, dask etc... to process this data.
the easiest answer - slice it