pastebin.club

API documentation

API Documentation

Endpoint: https://pastebin.club/createPaste/api

Method: POST

The paste content is the request body.

The paste name (optional) is a URL parameter.

Example using cURL:

$ curl -X POST 'https://pastebin.club/createPaste/api?name=test123' -d "Hello, World!"

Example using Axios within Node.JS:

const axios = require('axios').default
    
async function createPaste(content, name) {
  const response = await axios.post(`https://pastebin.club/createPaste/api?name=${name}`, content)
  console.log(response.data)
}
    
createPaste('Hello, World!', 'test123')

Example Result:

{
    "status": "success",
    "url": "https://pastebin.club/1OeIi/test123"
}

Limitations: