Pasting Text

POST a JSON to /api in json or string format. With a content key whose value is equal to the text you wanna paste.

{
  "content": "Your Content goes here"
}

Set custom header by heading key.

{
  "content": "Your text goes here",
  "heading": "This is heading"
}

Enable RAW via raw key.

{
  "content": "Your text goes here",
  "heading": "This is heading",
  "raw": true
}

Similarly disable/enable code and watermark by code and footer key respectively.

{
  "content": "Your text goes here",
  "heading": "This is heading",
  "raw": true,
  "code": false,
  "footer": true
}

Set custom key or path via key.

{
  "content": "Your text goes here",
  "heading": "This is heading",
  "raw": true,
  "code": false,
  "footer": true,
  "key": "customURL"
}

Returns - Key of the paste. e.g.

cwgc3bgg4w67

Example

import requests
url = "https://pasting.ga/api"
data_json = {"content":"Text goes here"}
resp = requests.post(url, json=data_json)
print(resp.content)

Getting Text

Note - You can only get the text if raw is set to true.

Send a GET request to https://pasting.ga/raw/ + ReturnedPath and it will return the text in text format.

e.g.
GET https://pasting.ga/raw/cwgc3bgg4w67

Example

import requests
url = "https://pasting.ga/raw/cwgc3bgg4w67"
resp = requests.get(url)
print(resp.content)


• For Help Contact In - Viper Community