RapidAPI logo

Sign Up

Log In

Word Cloud

By Textvis
Updated 3 months ago
Popularity Score
Success Rate
braddwalker3 months ago
How to increase the size of the wordcloud?I'm having troubles getting the wordcloud to better fill the dimensions of the image. See here for an example, but there's lots of whitespace that I'd like to use to make the text larger and more readable. Is there any way to do this? Setting the scale doesn't seem to be working for me. https://imgur.com/a/sXXKZ0o
Hi Developer, feel free to post your answer:
Log inSign up

Install SDK for NodeJS


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

.header("X-RapidAPI-Host", "textvis-word-cloud-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("x-api-key", "qLn10OtYwY8MILjfYAIH11rx6yVWaGMOUNh0NZQh")
.header("Content-Type", "application/json")
.send({"text":"This is a test. I repeat, this is a test. We are only testing the functionality of this api, nothing else. End of test.","scale":0.5,"width":800,"height":800,"colors":["#375E97","#FB6542","#FFBB00","#3F681C"],"font":"Tahoma","use_stopwords":true,"language":"en","uppercase":false})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication