Online font converter

FREEMIUM
By warting
Updated 4 months ago
Tools
8.8/10
Popularity Score
1747ms
Latency
77%
Success Rate

Online font converter API Documentation

Convert fonts from one format to another

View API Details
POSTDirectConvertFont
GET/status
POSTDirectConvertFont

the returned binary file is a .tar.gz

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
fileBINARY
REQUIREDThe font file to convert. Can be any of: [afm, bin, cff, dfont, eot, otf, pdf, pfa, pfb, pfm, ps, pt3, suit, svg, t11, t42, tfm, ttc, ttf, woff, woff2] We will try our best to recognize the format even without extension. woff2 extension is required to convert those
formatSTRING
REQUIREDCan be any of: [afm, bin, cff, dfont, eot, otf, pfa, pfb, pfm, ps, pt3, suit, svg, t11, t42, tfm, ttc, ttf, woff, woff2, ufo] PRO users can use comma separated eg: "svg, eot, woff, woff2" or use the fields multiple times (useful for <select multiple>) eg: "format=woff format=woff2"
Optional Parameters
outputSTRING
OPTIONALPRO only; The output format can be [zip, tar, tar.gz] Default is tar.gz
Code Snippet
unirest.post("https://ofc.p.rapidapi.com/directConvert/")
.header("X-RapidAPI-Host", "ofc.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("output=tar.gz")
.send("format=woff")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://ofc.p.rapidapi.com/directConvert/
Request Method: POST
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.post("https://ofc.p.rapidapi.com/directConvert/")
.header("X-RapidAPI-Host", "ofc.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("output=tar.gz")
.send("format=woff")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication