DavG25-Lab API Documentation

Warning: all the Lab APIs up to version 4K are deprecated (only critical updates will be released), everything will continue to work but the main stable branch will move here

Version 4

[API permalink] [Docs permalink] Try v4K

Latest version will always be on davg25.com/lab/api/
Latest docs will always be on davg25.com/lab/api/docs/

Older versions will be on davg25.com/lab/api/v<version number>/ [EG: davg25.com/lab/api/v2/]
Older docs will be on davg25.com/lab/api/v<version number>/docs/ [EG: davg25.com/lab/api/v2/docs/]


API Usage

STATIC POST/GET/COOKIE [String]: auth
STATIC POST/GET/COOKIE [String]: request
Forwards the specified request using your Auth Key [Always required]
REQUEST: version Returns the current API version [Static] [Does not require an Auth Key]
REQUEST: set
POST/GET/COOKIE [String]: item
POST/GET/COOKIE [String]: value
Sets the specified item to the specified value
REQUEST: get
POST/GET/COOKIE [String]: item
Returns the specified item value
REQUEST: delete
POST/GET/COOKIE [String]: item
Deletes the specified item and its value
REQUEST: encrypt
POST/GET/COOKIE [String]: text
POST/GET/COOKIE [String]: key
Encrypts the specified text using the specified key and returns the encrypted text
REQUEST: decrypt
POST/GET/COOKIE [String]: text
POST/GET/COOKIE [String]: key
Decrypts the specified text using the specified key and returns the decrypted text
REQUEST: shortener
POST/GET/COOKIE [String]: url
OPTIONAL POST/GET/COOKIE [Bool]: expire-after-use
OPTIONAL POST/GET/COOKIE [Bool]: no-check
Shortens the specified URL and returns the short link
REQUEST: preview
POST/GET/COOKIE [String]: url
OPTIONAL POST/GET/COOKIE [Bool]: lang
OPTIONAL POST/GET/COOKIE [Int]: width
OPTIONAL POST/GET/COOKIE [Int]: height
OPTIONAL POST/GET/COOKIE [Bool]: crop
OPTIONAL POST/GET/COOKIE [Int]: delay
OPTIONAL POST/GET/COOKIE [String]: user-agent
OPTIONAL POST/GET/COOKIE [String]: username
OPTIONAL POST/GET/COOKIE [String]: password
Generates a preview image of the given URL and returns the image link [Disabled] [Deprecated]
REQUEST: tts
POST/GET/COOKIE [String]: text
POST/GET/COOKIE [String]: lang
Transforms the given text in text-to-speech and returns the MP3 link
REQUEST: dynamic
NEXT POST/GET/COOKIE [String]: header
NEXT POST/GET/COOKIE [String]: content
Returns the URL to use for the dynamic file [Beta]
REQUEST: sendmail
POST/GET/COOKIE [String]: receiver
POST/GET/COOKIE [String]: subject
POST/GET/COOKIE [String]: message
POST/GET/COOKIE [String]: sender
POST/GET/COOKIE [String]: devkey
Sends an email to the specified contact with the specified values [Reserved]
REQUEST: register
POST/GET/COOKIE [String]: email
OPTIONAL POST/GET/COOKIE [Bool]: anonymous-registration
Registers a new Auth Key and sends it to the specified email [Does not require an Auth Key]
You can also use this page to register your Auth Key


General informations

- The Lab API will accept both HTTP and HTTPS connections
- The items and their values will last forever
- Starting from Version 3, you will need a personal API Auth Key to send any request
- Starting from Version 4, you will need to specify your request name using POST/GET/COOKIE
- The Auth Key should never be shared and should be used only by yourself




For further support, please use this contact: lab-api@davg25.com