PasteHTML API

Make a POST request to http://pastehtml.com/upload/create?input_type=txt&result=address and send a param named txt with your actual text.

input_type=txt can be txt or html.

result=address can be address (returns the address of newly published page) or redirect (redirects you to that page).

Example

curl -s -S --data-urlencode "txt=My text to publish" "http://pastehtml.com/upload/create?input_type=txt&result=address"

Just copy it to your console and run right now. You will get an URL as a result. Open it and see your text.

Existing tools

Visit code.google.com/p/pastehtml and download a bash script. It allows you to do nice things:

  • dmesg | ./pastehtml.sh
  • ls -la | ./pastehtml.sh
  • ps axf | ./pastehtml.sh

Output of these commands will be immediately published to web with no registration, login or whatever.

More APIs

Kristopher Ives has implemented PasteHTML API in Java. Code is available via Bazaar repository at http://santiance.com/bzr/tabletop inside the 'com.santiance.internest.PasteHTML.java' source.

Jef Claes created a PasteHTML API for .NET.

We have also a handy bookmarklet