Overview

ReSmush.it is a free image optimization API that compresses photos to reduce file size without visibly losing quality. You simply pass an image URL and receive a smaller, web-ready version in return. No API key is required, making it one of the easiest image APIs to get started with.

Beginner Tip

Use the qlty parameter (0-100) to control compression strength; a value of 82 is a good default that balances quality and file size.

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

image URLs in multiple sizes
photographer credit
image dimensions
download link
color data
Use case: Integrate photo optimization data into web and mobile applications

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "id": "Dwu85P9SOIk",
  "urls": {
    "full": "https://images.unsplash.com/photo-...",
    "regular": "https://images.unsplash.com/photo-...?w=1080",
    "thumb": "https://images.unsplash.com/photo-...?w=200"
  },
  "width": 4000,
  "height": 3000,
  "user": {
    "name": "John Doe",
    "username": "johndoe"
  }
}

Field Reference

src URL of the original uncompressed image you submitted.
dest URL of the optimized image ready for download.
src_size File size of the original image in bytes.
dest_size File size of the optimized image in bytes.
percent Percentage of size reduction achieved by the optimization.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.resmush.it/ws.php?img=https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/PNG_transparency_demonstration_1.png/280px-PNG_transparency_demonstration_1.png&qlty=82";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

Error: Unable to open source file The image URL provided is not publicly accessible or the server returned an error.
Make sure the image URL is publicly reachable and returns a valid image content type.
Response shows no size reduction The image was already highly compressed or the quality setting was set too high (close to 100).
Lower the qlty value (try 75-85) for more aggressive compression.
Empty or invalid JSON response The API may be temporarily unavailable or the request timed out on a large image.
Retry the request and consider using smaller images (under 5 MB) for reliable results.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth No Auth
HTTPS NO
CORS UNKNOWN
Category Photography
Difficulty Beginner
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →