How we get shop's first order id and all orders with any status?

How do we get the shops’ first order details?

$url = [email removed]
from this API I am getting 250 data with any status and get page_info for further orders.

$url = [email removed]
From this, I am getting the next order data. Using this API, I am getting limited data like I have 3000 data with a different status but I am getting only 500 data. If I am using status=‘any’ with this URL then I am getting the error message “status cannot be passed when page_info is present”.

I have read_all_order Permission.

So how can I get all orders with any status in Shopify?
Or
How do we get the first order id?