Web3 Storage API
Overview
Web3 Storage (now operating as Storacha) lets you upload files to a decentralized storage network built on IPFS and Filecoin, receiving a content-addressed CID for each upload. Files are permanently retrievable via any IPFS gateway using their CID, making this ideal for NFT metadata, open datasets, or any content that must be publicly verifiable. The free tier provides up to 5 GB of storage with no egress fees.
Beginner Tip
After uploading, you can immediately access your file at `https://YOUR_CID.ipfs.w3s.link/` — no extra steps needed. Copy the CID from the upload response and paste it into that URL pattern to confirm the file is live.
Available Data
Example Response
{
"file_id": "f_abc123",
"filename": "document.pdf",
"size_bytes": 1048576,
"mime_type": "application/pdf",
"download_url": "https://example.com/files/f_abc123",
"created_at": "2025-01-15T10:00:00Z"
} Field Reference
cid Content identifier (CID) for the uploaded file — use this to retrieve the file from any IPFS gateway. size Size of the uploaded content in bytes. created Timestamp when the upload was recorded. type MIME type of the uploaded content as detected or declared. name Filename associated with the upload, if provided. Implementation Example
const url = "https://web3.storage/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →ddownload
ddownload is a file hosting and sharing service that exposes an API for uploading files, checking account stats, and managing stored files programmatically.
Filestack
Filestack is a file handling API that lets you upload, transform, and deliver files from any source — local disk, URL, cloud storage, or social network.
GoFile
⭐ Beginner's PickGoFile is a free file hosting API that lets you upload files of any size without an account and receive a generated download link in return.
Gyazo
Gyazo is a screenshot hosting API that accepts an image upload and returns a permanent shareable URL with associated metadata like capture time and application info.
Imgbb
⭐ Beginner's PickImgbb is a free image hosting API that accepts an image via URL, base64 string, or multipart upload and returns a permanent hosted link along with thumbnail variants.