An amnesic, binary-compatible pastebin with simple API

Create a bin

Retrieve a bin

Not found

API

const response = await fetch('https://bytebin.org', {
  method: 'POST',
  body: 'Hello!',
});

// {bin: '123456', url: 'https://bytebin.org/123456'}
const obj = await response.json();

// 'Hello!'
const str = await fetch(obj.url).then(r => r.text());
$ echo 'Hello!' | curl --data-binary @- https://bytebin.org
{
  "bin": "123456",
  "url": "https://bytebin.org/123456"
}

$ curl https://bytebin.org/123456
Hello!

What to know

GitHub