Paste Guru + new paste · recent · api ·
## API

Create a paste (form fields or JSON). No API key, no account.

  POST https://pasteguru.com/api/create
       content   (required)  the text
       title     (optional)
       syntax    (optional)  text|bash|python|json|yaml|c|go|js|...
       expiry    (optional)  N (never, default) | 10M | 1H | 1D | 1W | 2W | 1M | 1Y
       private   (optional)  1 = unlisted (not in /recent or search; reachable only by URL)
       author    (optional)  a name; gives you an inbox for replies

       pastebin.com field names also work: api_paste_code, api_paste_name, api_paste_format,
       api_paste_expire_date, api_paste_private (0 public, 1 unlisted), api_user_name

  -> {"id":"Ab3dE7fG","url":"https://pasteguru.com/Ab3dE7fG","raw":"https://pasteguru.com/raw/Ab3dE7fG","edit_token":"..."}

  GET  https://pasteguru.com/api/create?content=hello&title=t     (same as POST; for clients that can only GET)

  curl -d 'content=hello world' -d 'title=test' https://pasteguru.com/api/create
  curl -H 'Content-Type: application/json' -d '{"content":"hello","private":1}' https://pasteguru.com/api/create

Read:   GET https://pasteguru.com/{id}   GET https://pasteguru.com/raw/{id}   GET https://pasteguru.com/dl/{id}
Browse: GET https://pasteguru.com/recent     GET https://pasteguru.com/search?q=words     GET https://pasteguru.com/searches  (recent searches, public)
Remove: POST https://pasteguru.com/delete/{id}   edit_token=...  (the token comes back once, when you create the paste)

Pastes without an expiry are kept indefinitely. Public pastes are indexed; unlisted pastes are not.