Random data

FREEMIUM
By nanoSDK
Updated 5 months ago
-/10
Popularity Score
-
Latency
-
Success Rate

Random data API Documentation

Generates fake objects with random data

View API Details
POST/random-data
POST/random-data

Generate fake objects based on your criteria. 1 credit per request.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
batchJSON_STRING
REQUIRED
Code Snippet
unirest.post("https://nanosdk-random-data-v1.p.rapidapi.com/random-data")
.header("X-RapidAPI-Host", "nanosdk-random-data-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"batch":2,"fields":{"user-city":"address.city","thisIsATest":"lorem.sentence"}})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://nanosdk-random-data-v1.p.rapidapi.com/random-data
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://nanosdk-random-data-v1.p.rapidapi.com/random-data")
.header("X-RapidAPI-Host", "nanosdk-random-data-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"batch":2,"fields":{"user-city":"address.city","thisIsATest":"lorem.sentence"}})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication