VoidBin API


Node.JS Example:

const nodefetch = require('node-fetch')
  nodefetch(`https://voidbin.cc/api/new`, {
    method: 'POST',
    body: JSON.stringify({
      title: "YOUR TITLE HERE",
      content: "YOUR CONTENT HERE",
      code_language: "LANGUAGE",
      paste_expiration: 'TIME',
      view_destroy: true
    }),
    headers: { 'Content-Type': 'application/json' }
  }).then(c => c.json()).then(c => console.log(c)).catch(err => console.log(err))


API Structure - Create


Field Type Description
title String The title of the post.
content String The content of the post.
code_language String Highlight code with the specified language.
paste_expiration String A simple timestamp. (One of following: '1h', '1d', '1w', '2w', '1mo', '6mo', '1y')
view_destroy ? Boolean Delete the post after someone views it.
Hover over me Tooltip text


ShareX Configuration

bn n//

If you want to use our service with ShareX you can use our premade configuration!

  Download Configuration

Use: If you already have ShareX installed you need to click download above then open the file with ShareX!