Fastupload.Netbeta

API Version 1.0

Our API enables programmatic file uploads, allowing you to seamlessly integrate our uploading functionality into your own applications.

Request Method

API v1 calls can be done using the POST or GET request methods but since GET request are limited by the maximum allowed length of an URL you should prefer the POST request method.

POST request method is recommended.

Request URL

https://api.fastupload.net/v1/upload

Parameters

Parameter Description
key (required) The API key.
image (required) A binary file, base64 data, or a URL for an image. (up to 1 GB)
name (optional) The name of the file. This is automatically detected if uploading a file with a POST and multipart/form-data.
expiration (optional) Enable this if you want uploads to be auto-deleted after a certain time (in seconds, range: 60–15552000).

Example Call

curl --location --request POST "https://api.fastupload.net/v1/upload?expiration=600&key=YOUR_CLIENT_API_KEY" --form "image=@path/to/your/image.jpg"
Note: Always use POST when uploading local files. Url encoding may alter the base64 source due to encoded characters or just by URL request length limit due to GET request.

API Response

API v1 responses display all the image uploaded information in JSON format.

JSON the response will have headers status codes to allow you to easily notice if the request was OK or not. It will also output the status properties.

Example Response (JSON)

{
  "success": true,
  "status": 200,
  "data": {
    "id": "1",
    "owner": "Test",
    "title": "rJAjJhFC",
    "url_viewer": "https://preview.fastupload.net/sMDNfoRV",
    "url": "https://beta.fastupload.net/uploaded/UuJbnjzJgucWmAgVqgbNKGHybgCRXtUHN",
    "display_url": "https://i.fastupload.net/rJAjJhFC.png",
    "size": 42,
    "time": 1552042565,
    "expiration": 0,
    "image": {
      "filename": "rJAjJhFC.png",
      "name": "rJAjJhFC",
      "mime": "image/png",
      "extension": "png",
      "url": "https://beta.fastupload.net/uploaded/UuJbnjzJgucWmAgVqgbNKGHybgCRXtUHN"
    },
    "delete_url": "https://api.fastupload.net/delete/rJAjJhFC.png?token=xyz456"
  }
}