Fetch URL

POST /v2/files/fetch
api

Description

Use this API method to fetch a file from a URL via HTTP and save it to your Sirv account. This can be any URL, either public or private (via HTTP authentication). In the url parameter, enter the full URL of the remote file. In the filename parameter, enter the folder path and filename where it should be saved e.g. /path/to/folder/new-filename.jpg.

CORS

Origin
maxAge
86400
headers
  • Accept
  • Authorization
  • Content-Type
  • If-None-Match
additionalHeaders
  • Content-Length
  • User-Agent
exposedHeaders
  • *
Credentials
false
Override
  • Request Parameters

    Query Parameters

    Denied

    Payload Parameters

    Response Parameters

    •  
      Max
      20
      [
      • Any of:
        • {
          • filename
            string
          • success
            boolean
          • attempted
            boolean
          • retryAfter
            date
          • attempts
            [
            • Any of:
              • {
                • url
                  string
                • initiator
                  {
                    }
                  • statusCode
                    number
                  • headers
                    {
                      }
                    • timing
                      {
                        }
                      • error
                        {
                          }
                        • date
                          date
                        }
                    ]
                  }
              ]

          Looking for file management?

          The S3 API let's you upload / download / query / delete / modify / move files.

          S3 API documentation

          Need Help?