API COMMAND: THUMB

Dan Wolfe/ March 8, 2018

Basic Information: THUMB

Get a thumbnail image of a URL.

Max and Min Defaults:

Some parameters have a minimum and/or maximum value. Setting values outside this scope will not effect the request, as the system will replace the value with the needed minimum or maximum value.

For example: if a value for cache is not set or below the minimum the system will replace the value to the minimum time. If an option has a maxium value and the passed value is greater, the system will replace that value with it’s maximum.

  • cache Min: 7 days
  • limits Max: 100 (for free accounts)
  • shared_limit Max: 1000 per day

GET Request:

Request Description
APIKEY Your API Key which can be found on your profile, if you need to change the KEY, edit the API SALT to something random.
whois The API Command
cache Cache Time in minutes. (Response cachetime is in seconds)
opt Comma separated options for this command.
GET URL Example: https://hostmozart.com/api.php?APIKEY=YOURAPIKEY&cache=900&cmd=thumb&opt=danwolfe.me

Server Reponse:

Key Value Meaning
TIMESTAMP 2018-03-05 18:05:41 Mysqli Timestamp Format of the first cached request.
valid OK Returns with OK if API Key is valid
Limit 1/100 Returns with the number of today’s API requests over this user’s 24 hour limit
cache true Returns true if this command and options have been cached, or is cached.
cachetime 18000 If present, the ammount of time in seconds this request will be cached.
cmd thumb The actual command that was used for this request
success true Returns true if the command is available
options_count 1 Returns the number of options that were passed with the GET request
opt_0 … danwolfe.me If applicable, returns opt_NUMBER of each option that was passed to the GET request, and the value of the option that was sent.
required_options 1 Returns the number of options that must be passed for this command.
options_test passed If options_count does not match required_options returns false.
imgurl  

Actual UEL to Image

 imgdata  ARRAY