Pastebin.cz API
To insert a new post, send a POST request to http://www.pastebin.cz/remote with the following parameters:
Required:
- service_id - Use number 2. This is a part of the remote system I'm still working on.
- service_adapter - Use remote_adapter. Same as above.
- user_api_key - Every remote post has to be authenticated with user API key. This key is also used to associate post with the user account.
- text - The post text itself.
Optional:
- title - The post title.
- comment - The post comment.
- author - The post author.
- expiration - The post expiration. Default is a month.
- 1 - A day.
- 2 - A week.
- 3 - A month.
- 4 - A year.
- private - Indicates whether the post is private or not. Values 1/0.
- language - See the table below. Default is plain text.
| Plain text | text | Plain text (no wrap) | text_n | Bash | bash | C | c |
| C++ | cpp | HTML | html4strict | Java | java | Javascript | javascript |
| Perl | perl | PHP | php | Python | python | Ruby | ruby |
| ABAP | abap | ActionScript | actionscript | ActionScript 3 | actionscript3 | Ada | ada |
| Apache Log File | apache | AppleScript | applescript | ASM (NASM based) | asm | ASP | asp |
| AutoIT | autoit | BlitzBasic | blitzbasic | Backus-Naur form | bnf | Basic4GL | basic4gl |
| C for Macs | c_mac | CAD DCL | caddcl | CAD Lisp | cadlisp | CFDG | cfdg |
| ColdFusion | cfm | C++/QT | cpp-q | C# | csharp | CSS | css |
| D | d | Delphi | delphi | Diff | diff | DIV | div |
| DOS | dos | Dot | dot | Eiffel | eiffel | Fortran | fortran |
| FreeBasic | freebasic | Genero (4GL) | genero | Gettext .po/.pot | gettext | glSlang | glsl |
| GML | gml | Groovy | groovy | Haskell | haskell | Uno IDL | idl |
| Inno | inno | IO | io | KiXtart | kixtart | LaTeX | latex |
| Lisp | lisp | Lotus Notes @Formulas | lotusformulas | LotusScript | lotusscript | Lua | lua |
| Matlab | matlab | mIRC | mirc | Motorola 68k Assembler | m68k | MPASM | mpasm |
| MXML | mxml | MySQL | mysql | NullSoft Installer | nsis | Objective C | objc |
| OCaml | ocaml | Openoffice.org BASIC | oobas | Oracle 8 | oracle8 | Pascal | pascal |
| Per (4GL) | per | PL/SQL | plsql | QBasic/QuickBASIC | qbasic | Rails | rails |
| Windows Registry | reg | robots.txt | robots | SAS | sas | Scala | scala |
| Scheme | scheme | SDLBasic | sdlbasic | Smalltalk | smalltalk | Smarty | smarty |
| SQL | sql | TCL | tcl | thinBasic | thinbasic | T-SQL | tsql |
| VB.NET | vbnet | Verilog | verilog | VHDL | vhdl | VisualBasic | vb |
| VisualFoxPro | visualfoxpro | Winbatch | winbatch | XML | xml | X++ | xpp |
| Z80 Assembler | z80 |
The server responds with appropriete HTTP code. If something goes wrong the server returns 404, if everything is ok, the server returns 201 and the post link. Every code comes with text explanation.

