Skip to content

url

required
Type: <string>
The target URL for getting information based on the content.

Interactive Code Editor

Test API requests with multiple programming languages. Edit code, execute requests, and view responses in real-time.

The url parameter is the only required parameter for any Microlink API request.

URL requirements

The URL provided must be:
  • Publicly reachable by the service (no localhost or private IPs)
  • Well-formed following the standard
  • Including protocol (http:// or https://)
If you want to extract content behind a login panel, the URL provided should contain the authentication step as part of the query string, or provide the authentication credentials using headers.

URL encoding

If the URL provided has query string parameters, they should be properly escaped to not interfere with the Microlink API query parameters.

Interactive Code Editor

Test API requests with multiple programming languages. Edit code, execute requests, and view responses in real-time.

URLs with query parameters are automatically encoded.
Using MQL or Microlink CLI will escape the URL properly. Otherwise, you need to escape it using or equivalent.

Protocol handling

The protocol matters: If the target URL has relative URLs inside (e.g., images or videos), then the URL provided will be used to resolve relative URLs into absolute.
This means that if you provide HTTPS, then all relative URLs will be resolved under SSL.

Common URL patterns

Here are examples of different URL types you can process:
Standard websites

Interactive Code Editor

Test API requests with multiple programming languages. Edit code, execute requests, and view responses in real-time.

URLs with fragments

Interactive Code Editor

Test API requests with multiple programming languages. Edit code, execute requests, and view responses in real-time.

Internationalized domain names

Interactive Code Editor

Test API requests with multiple programming languages. Edit code, execute requests, and view responses in real-time.

Error handling

If the URL cannot be processed, you'll receive one of these error codes:
  • EINVALURL: The URL format is invalid
  • EFORBIDDENURL: The URL resolves to a forbidden IP range
  • EMAXREDIRECTS: Too many redirects (more than 10 hops)
  • ETIMEOUT: The URL took too long to respond
See error codes for the complete list.