Back to APIs
AWS S3
Amazon S3 stores and retrieves any amount of data with 99.999999999% durability, used by millions of apps worldwide.
Base URL
https://s3.amazonaws.comobject storagebucketspresigned URLsCDNAWS
Endpoints
GET
/{bucket}?list-type=2List objects in an S3 bucket.
const response = await fetch("https://s3.amazonaws.com/my-bucket?list-type=2&max-keys=10", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
console.log(data);Response Preview
<?xml version="1.0" encoding="UTF-8"?>
<ListBucketResult>
<Name>my-bucket</Name>
<KeyCount>2</KeyCount>
<Contents>
<Key>images/photo.jpg</Key>
<Size>245678</Size>
<LastModified>2024-05-01T10:00:00Z</LastModified>
</Contents>
</ListBucketResult>