data

this endpoint is for getting various simple data.

get a language by name

GET

/data/language?name={language}

get the language information for a specific language, returns a 404 status if the language couldn't be found. note that the language name must be percent encoded.

field type description optional?
name string language name no
mode string language mode to be used in the editor no
mimes string array list of mimes used by the language no
ext string array list of extensions used by the language yes
color string color representing the language yes
{
  "ext": [
    "d"
  ],
  "name": "D",
  "color": "#ba595e",
  "mode": "d",
  "mimes": [
    "text/x-d"
  ]
}

get a language by extension

GET

/data/languageExt?extension={extension}

get the language information for a specific language found by the extension, returns a 404 status if the language couldn't be found.

returns the same object as getting the language by name.

get the number of currently active pastes

GET

/data/numPastes

returns the number of currently active pastes.

field type
numPastes ulong