Pastecard Lab

API

Pastecard has a simple API for reading the contents of a card or writing new text to it.

Read (GET)

https://pastecard.net/api/db/{ID}.txt

Write (POST)

https://pastecard.net/api/write.php?user={ID}&text={text}

Append (POST)

https://pastecard.net/api/append.php?user={ID}&text={text}

Source

View the source code for the Pastecard web app and iPhone app.

Browser Bookmarklet

Type your ID into the field below to generate a bookmarklet, and then drag it to your bookmarks bar.

Save to Pastecard

When you invoke the bookmarklet, the current page’s URL will be appended to the bottom of your Pastecard. If any text is selected on the page, the text will be appended instead. Any additions over Pastecard’s character limit of 1034 will be truncated.

Blog