vpsFree.cz


API description

All commands have these parameters:

format
json or plain; optional, defaults to plain
api_key
API key generated in account details, required if anonymouse access is disabled

Create a new snippet

POST https://paste.vpsfree.cz/api/paste/

Parameters

All parameters except content are optional.

title
title of snippet
file_name
file name, including extension
language

language, defaults to plain text

Possible values: as, as3, ada, apacheconf, autodetect, awk, bash, console, bat, bbcode, brainfuck, c, csharp, aspx-cs, cpp, cmake, cobol, coffeescript, lisp, css, cuda, d, delphi, diff, dtd, erlang, erl, fsharp, fortran, glsl, gnuplot, go, haml, haskell, html, http, ini, java, js, lighttpd, lua, make, matlab, mysql, nginx, obj-c, perl, perl6, php, plpgsql, text, postgres, psql, postscript, powershell, prolog, puppet, python, python3, py3tb, pycon, pytb, qml, spec, ruby, irb, scala, scaml, scheme, smalltalk, sql, sqlite, tcl, tex, ts, vala, vbnet, aspx-vb, xml, yaml

content
the snippet itself
accessibility
0 - public, 1 - unlisted, 2 - logged users only, 3 - private; defaults to unlisted
expiration
timestamp, defaults to now + 30 minutes

Return value

URL to the new snippet.

List languages

GET https://paste.vpsfree.cz/api/languages/

Detect language

POST https://paste.vpsfree.cz/api/detect-language/

Parameters

At least one parameter is required.

file_name
filename to be identified
text
text to be identified

Return value

The name of detected language