TestingAPIs is still being built. If something breaks, email support@testingapis.com.

File downloads

File download testing: attachments vs inline, deterministic binary blobs, HTTP Range requests and large streamed downloads. All content is hardcoded or generated deterministically.

Your account unlocks these endpoints. Try it on each endpoint's page sends your key for you; from your own code, send a key from your API keys page in the X-TestingApis-Key header.

These endpoints need a free account. Create one or sign in to see their details and try them here.

Example request

List the downloadable sample files with their size and SHA-256. Full reference and a Send button.

cURL
curl -X GET "https://api.testingapis.com/api/files" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response · 200 OK
[
  {
    "name": "sample.txt",
    "contentType": "text/plain; charset=utf-8",
    "size": 184,
    "sha256": "23125fa5f44a3be386c2954e4735fdabfd16085e051998625af844ce7c9a0d49",
    "download": "/api/files/sample.txt",
    "inline": "/api/files/sample.txt/inline"
  },
  {
    "name": "sample.csv",
    "contentType": "text/csv; charset=utf-8",
    "size": 311,
    "sha256": "c6bf07b23b626e60e9863a66c4c93a6193b4c5c85d9d3cb4a5e4b2d09b0b96cb",
… (5 more lines)

Sign in to see the details

The parameters, request and response examples and the live Try it panel for these endpoints are for signed-in members. Accounts are free and take a few seconds to create.