Summary card: listing 100,000 keys takes 1,000 requests at 100 per page, 200 at 500 and 100 at 1,000

A bucket with 100,000 keys cannot be listed in one call: S3 returns at most 1,000 keys per ListObjectsV2 response. So a full listing is at least 100 requests, and clients differ in how they ask. We counted the requests four clients send for the same 100,000 keys at 100, 500 and 1,000 keys per page, and what that costs when you list on a schedule.

What we tested, and what it can and cannot tell you

  • A local mock S3 endpoint, not our service. A small Python server on the same machine holds 100,000 synthetic keys (logs/0000/00/obj-000000.json and on, 100 bytes each, sorted) and answers ListObjectsV2 and ListObjects v1 with max-keys, start-after, continuation-token and marker, capped at 1,000 keys per page like S3. It logs every request.
  • Why a mock: putting 100,000 real objects into any shared endpoint takes hours at polite request rates, and the request count does not depend on where the keys live. It is fully determined by the page size and by how each client asks.
  • So: request counts are the finding. Times are not network times (loopback, no TLS, no latency); they are client overhead only, and they were taken on a busy machine, so read them as rough.
  • Clients: boto3 1.44.9 (paginator and a hand-written StartAfter loop), AWS CLI 2.25.4 (s3api list-objects-v2 and s3 ls --recursive) and rclone 1.76.0 (lsf -R). Each configuration was run three times; the request count was identical every time.

The result: 100,000 keys, requests per page size

Client and settingPage size sentRequestsKeys returnedMedian seconds (3 runs)
boto3 paginator, no setting1,000100100,00020.2
boto3 paginator, PageSize=1001001,000100,00022.6
boto3 paginator, PageSize=500500200100,00020.0
boto3 paginator, PageSize=10001,000100100,00018.4
boto3 StartAfter loop, MaxKeys=1001001,000100,00021.2
boto3 StartAfter loop, MaxKeys=500500200100,00021.5
boto3 StartAfter loop, MaxKeys=10001,000100100,00033.5
aws s3api list-objects-v2, no flag1,000100100,00020.0
aws s3api list-objects-v2 --page-size 1001001,000100,00024.1
aws s3api list-objects-v2 --page-size 500500200100,00026.6
aws s3api list-objects-v2 --page-size 10001,000100100,00034.2
aws s3 ls --recursive, no flag1,000100100,00049.2
aws s3 ls --recursive --page-size 1001001,000100,00039.7
aws s3 ls --recursive --page-size 500500200100,00037.3
rclone lsf -R, no flag1,000100100,0001.2
rclone lsf -R --s3-list-chunk 1001001,000100,0001.6
rclone lsf -R --s3-list-chunk 500500200100,0001.2
rclone lsf -R --s3-list-chunk 10001,000100100,0001.2

The rule is plain arithmetic: requests = 100,000 divided by the page size, rounded up. Every client lists all 100,000 keys with no gaps and no repeats, and every client defaults to 1,000 keys per page, so the default is already the cheapest setting. Asking for less only adds requests.

The seconds column is not a ranking. The mock answers in well under a millisecond per page, so what you see is how long each program takes to start, parse the XML and print: the Go program rclone takes about 1.2 seconds, the Python-based clients 18 to 49. The runs shared the machine with other work and the order within the Python rows is noise. The one comparison that holds up is rclone at 100 per page against 1,000 per page: 1.6 s against 1.2 s for 900 extra requests, which is about 0.4 ms each on loopback. Over a real connection each request costs a round trip, so the extra requests would dominate.

How each client asks

The first two requests of each client, taken from the mock's log (query strings only, page size 100 where the client was told so):

ClientFirst requestSecond request
boto3 paginatorlist-type=2&max-keys=100&encoding-type=urllist-type=2&max-keys=100&continuation-token=<last key>&encoding-type=url
boto3 StartAfter looplist-type=2&max-keys=100&start-after=<key>&encoding-type=urlsame, with start-after set to the last key of page one
aws s3api list-objects-v2list-type=2&max-keys=100&encoding-type=urlcontinuation-token as boto3 (same library underneath)
aws s3 ls --recursivelist-type=2&prefix=&max-keys=100&encoding-type=urlcontinuation-token added
rclone lsf -R (provider Other)max-keys=1000&prefix= (ListObjects v1)marker=<last key>&max-keys=1000&prefix=
rclone lsf -R --s3-list-version 2list-type=2&max-keys=1000&prefix=continuation-token=<last key>&list-type=2&...
  • The continuation token is the last key here, but it is opaque. Our mock chose that; on a real service treat the token as an opaque string and send it back unchanged. StartAfter is different: it is a key you choose, which is why it works for resuming after a crash.
  • StartAfter and a continuation token give the same page count. The manual StartAfter loop needed exactly as many requests as the paginator at every page size. Use it when you want to restart from a known key, not to save requests.
  • rclone against a generic endpoint starts with the older ListObjects v1 call (marker, no list-type=2) unless you set --s3-list-version 2. Request counts are the same either way. It matters if an endpoint only implements one of the two: we first ran rclone against our mock without v1 support and it asked for the same page forever, never finishing. If rclone hangs or repeats keys on a new endpoint, set the list version explicitly.

What a listing costs in requests, with AWS's list price

A LIST request is billed like a write on Amazon S3: the published S3 Standard price is $0.005 per 1,000 LIST requests in US East (N. Virginia), the rate AWS applies to LIST requests (checked 2026-11-22, also quoted in 2026 pricing guides). Other regions and services differ, so treat this as the worked example it is, with that rate:

Page sizeRequests per full listing of 100,000 keysCost of one listing at $0.005 per 1,000Listing every hour for 30 days (720 listings): requestsSame, cost
1001,000$0.005720,000$3.60
500200$0.001144,000$0.72
1,000100$0.000572,000$0.36

Scale it to your own bucket: 1 million keys is 1,000 requests at the default page size, 10 million is 10,000. One listing is cheap; a monitoring job that lists every few minutes is not. If you only need to know whether something changed, list a narrower prefix, or keep a manifest and compare (see <a href="https://tport.space/articles/reconcile-bucket-against-manifest-100000-keys-sorted-merge-hash-set-measured">reconciling a bucket against a manifest</a>).

Rules we took from the counts

  • Leave the page size alone. 1,000 is the maximum S3 returns, and the clients already use it. Lower values are for memory-tight scripts or for testing pagination logic.
  • Never write a loop that assumes one page. Without a paginator, check IsTruncated and carry the token; a bucket that has 900 keys today will have 1,100 one day.
  • Resume with StartAfter, not from the top. Store the last key you processed; a crashed job then repeats at most one page.
  • Budget listings like writes. Multiply requests by how often you run, not by how often you think about it.
  • Design keys so you rarely list everything. Prefixes make a partial listing possible: see key design that stays searchable at 10,000 files.

S3-compatible buckets with no egress fees, usable from boto3, the AWS CLI and rclone with just an endpoint and a key.

Explore tport.space

Test record and sources

  • Run 2026-11-22 on Windows 11 against a local mock endpoint (Python 3.13, 100,000 synthetic keys, path-style addressing, no TLS). Clients: boto3 1.44.9, AWS CLI 2.25.4, rclone 1.76.0 with --s3-provider Other. Three runs per configuration, median seconds, request counts identical on every run.
  • rclone's lsf -R prints directory lines as well as files; the key counts above use --files-only and always equal 100,000.
  • Not measured: real network latency, TLS, throttling, or what any real service returns above 1,000 keys per request (the AWS API reference states a maximum of 1,000).
  • Sources: AWS, ListObjectsV2 API reference (MaxKeys, ContinuationToken, StartAfter); AWS, Amazon S3 pricing, Requests and data retrievals (LIST price, US East N. Virginia, checked 2026-11-22); rclone documentation, S3 backend options --s3-list-chunk and --s3-list-version.