Imaging

FREE
By redbuffer
Updated 4 months ago
Tools
1.9/10
Popularity Score
58613ms
Latency
-
Success Rate

Imaging API Documentation

Red Buffer Imaging API provides a simple solution to resize your images in no time by simply providing parameters of url to picture, new width, new height to the API end point and telling it where to save the new photo with your desired name. With a simple call to this API, the hassle to resize image in your code is made simpler and quicker.

An example to resize your photo using curl is : curl --data "url=http://dopa.mn/images/gabe-zichermann-2011-400x400-02.jpg&width=100&height=100" -H 'X-Mashape-Key: HauGMXlww8mshshEBY4eewckDY3vp14XXXXjsXXzrpqdYDdJkm' -X GET https://redbuffer-imaging-v1.p.mashape.com/imaging >resized_photo.jpg

View API Details
GET/imaging
GET/imaging

Get your pictures resized using the simplest every photo resizing API

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
urlSTRING
REQUIREDThe URL of the image to be resized
widthSTRING
REQUIREDThe new width of the image
heightSTRING
REQUIREDThe new height of the image
Code Snippet
unirest.get("https://redbuffer-imaging-v1.p.rapidapi.com/imaging")
.header("X-RapidAPI-Host", "redbuffer-imaging-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://redbuffer-imaging-v1.p.rapidapi.com/imaging
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://redbuffer-imaging-v1.p.rapidapi.com/imaging")
.header("X-RapidAPI-Host", "redbuffer-imaging-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication