Fetch
Fetching Images by URL
Section titled “Fetching Images by URL”This method allows you to download an image from a specified URL and apply necessary transformations (such as resizing, optimization, and other parameters).
Specify the remote file URL and the required parameters in the request URL.
Request format:
GET /v1/image/fetch/{remote-file-url}Example
Section titled “Example”Suppose you need to fetch an image from https://hot-dogs.com/holy-pick.jpg and resize its width to 100 pixels. The request would look like this:
https://api.defaultuploader.com/v1/image/fetch/{CLIENT_TOKEN}/https://hot-dogs.com/holy-pick.jpg?w=100Limitations
Section titled “Limitations”Saving Fetched Files to S3 Coming soon
Section titled “Saving Fetched Files to S3 ”You can configure whether fetched files should be saved to S3 storage. There are two options:
- Enable auto-save in your account settings: All files fetched via
/fetchwill be automatically stored in your S3 storage. - Use a dedicated endpoint: If auto-save is disabled, you can explicitly save a specific file by using the
/fetch/keependpoint:
GET https://api.defaultuploader.com/v1/image/fetch/keep/{CLIENT_TOKEN}/https://hot-dogs.com/holy-pick.jpg?w=100This approach allows for flexible control over which files should be stored.