Pastebin

FREE
By dimas
Updated 5 months ago
Tools
4/10
Popularity Score
199ms
Latency
100%
Success Rate

Pastebin API Documentation

Paste and share source code snippets for code reviews

View API Details
POSTcreateApiUserKey
POSTcreatePaste
POSTdeleteUserPaste
POSTgetSinglePasteRaw
POSTgetTrendingPastes
POSTgetUser
POSTgetUserPastes
POSTgetUserPastesRaw
POSTcreateApiUserKey

Creating An apiUserKey

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
apiDevKeyCREDENTIALS
REQUIREDThis is your API Developer Key
userPassSTRING
REQUIREDThis is the password of the user you want to login
userNameSTRING
REQUIREDThis is the username of the user you want to login
Code Snippet
unirest.post("https://PastebindimasV1.p.rapidapi.com/createApiUserKey")
.header("X-RapidAPI-Host", "PastebindimasV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://PastebindimasV1.p.rapidapi.com/createApiUserKey
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://PastebindimasV1.p.rapidapi.com/createApiUserKey")
.header("X-RapidAPI-Host", "PastebindimasV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication