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

Streams an upload of up to 10MB and reports its size, hash and timing

POSThttps://api.testingapis.com/api/bodies/largeSign in to see this endpoint's URL

Any Content-Type is accepted. The body is hashed while it streams, so it is never held in memory.

Request body

Optional. application/octet-stream. Up to 10 MB; larger returns 413.

Example body
<raw bytes>

Responses

200
Size, human-readable size, SHA-256 and duration.
413
Upload larger than 10MB.

Example

Request
curl -X POST "https://api.testingapis.com/api/bodies/large" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @file.bin \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "size": 24,
  "sizeHuman": "0.02 KB",
  "sha256": "9d908ecfb6b256def8b49a7c504e6c889c4b0e41fe6ce3e01863dd7b61a20aa0",
  "durationMs": 3,
  "limitBytes": 10485760
}

Sign in to see the details

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