ttl
PRO

Type: string|number
Default: 1h
It establishes the maximum quantity of time a resource served from cache layer is considered as valid.
microlink-api https://microlink.io&ttl=1d
The value provided need to be at least 1 minute and not higher than 31 days, being supported the following formats:
  • as number in milliseconds (e.g., 86400000).
  • as humanized representation of the number (e.g., 24h).
The following humanized number variations are supported:
https://microlink.io&ttl=1d      // 86400000
https://microlink.io&ttl=1day    // 86400000
https://microlink.io&ttl=1days   // 86400000
https://microlink.io&ttl=1h      // 3600000
https://microlink.io&ttl=1hour   // 3600000
https://microlink.io&ttl=1hours  // 3600000
Additionally, we provide min and max aliases:
https://microlink.io&ttl=min     // equivalent to `1m`
https://microlink.io&ttl=max     // equivalent to `31d`
The purpose of this API parameter is to adapt our caching layer based on your necessities:
  • If you are targetting an URL that changes very often and response time is not critical for you, a small value will work better.
  • If you are targetting an URL that doesn't change too much or you want to maximize cache hits, getting faster response time, a higher value works better.
The value provided will reflected as x-cache-ttl as part of the response headers
curl -I -s -X GET https://microlink.io?url=https://www.twitter.com/microlinkhq | grep -i "x-cache-ttl"

ttl
PRO

Type: string|number
Default: 1h
It establishes the maximum quantity of time a resource served from cache layer is considered as valid.
microlink-api https://microlink.io&ttl=1d
The value provided need to be at least 1 minute and not higher than 31 days, being supported the following formats:
  • as number in milliseconds (e.g., 86400000).
  • as humanized representation of the number (e.g., 24h).
The following humanized number variations are supported:
https://microlink.io&ttl=1d      // 86400000
https://microlink.io&ttl=1day    // 86400000
https://microlink.io&ttl=1days   // 86400000
https://microlink.io&ttl=1h      // 3600000
https://microlink.io&ttl=1hour   // 3600000
https://microlink.io&ttl=1hours  // 3600000
Additionally, we provide min and max aliases:
https://microlink.io&ttl=min     // equivalent to `1m`
https://microlink.io&ttl=max     // equivalent to `31d`
The purpose of this API parameter is to adapt our caching layer based on your necessities:
  • If you are targetting an URL that changes very often and response time is not critical for you, a small value will work better.
  • If you are targetting an URL that doesn't change too much or you want to maximize cache hits, getting faster response time, a higher value works better.
The value provided will reflected as x-cache-ttl as part of the response headers
curl -I -s -X GET https://microlink.io?url=https://www.twitter.com/microlinkhq | grep -i "x-cache-ttl"

By using this website you agree to ourprivacy.